Skip to content

About

No description, website, or topics provided.

Resources

Stars

4 stars

Watchers

1 watching

Forks

Repository files navigation

k9bookshelfのテーマやコンテンツ、サブツールの管理レポジトリ。

必要なもの

  • Go 1.26
  • Node.js 20.9 以降 / Yarn(テーマのビルドと lint)
  • Theme Kit は make bin/theme で bin/theme に取得される(チェックサム検証あり)

テスト

$ make test

make test は contents/ の各ファイルを検証し、contents/ から生成した HTML を content/testdata/rendered/ の golden ファイルと比較します。contents/ や変換処理を変えたら golden ファイルを更新して、差分を確認してからコミットしてください。

$ make golden

テーマのビルドと lint だけを行う(デプロイしない)場合:

$ make check/theme

テーマの更新

$ make deploy/theme

商品本文、ページ、ブログの更新

$ make deploy/contents

商品情報のインポート

$ make ONIX_FILE=20201208.onix import

# dry-run writes snapshot json to onix/snapshots
$ make ONIX_FILE=20201208.onix import/dry

About

No description, website, or topics provided.

Resources

Stars

4 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages