k9bookshelfのテーマやコンテンツ、サブツールの管理レポジトリ。
- Go 1.26
- Node.js 20.9 以降 / Yarn(テーマのビルドと lint)
- Theme Kit は
make bin/themeでbin/themeに取得される(チェックサム検証あり)
$ make testmake 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