diff --git a/README.en.md b/README.en.md index 42450bb..6d6e2e1 100644 --- a/README.en.md +++ b/README.en.md @@ -9,7 +9,7 @@ Turns your local git repositories and their GitHub issues into static HTML, and - **Read every repo in one place**: your local repos listed by root, with the code highlighted - **All issues in one place too**: open issues from every repo in a single list - **Multiple GitHub accounts**: pull issues from separate accounts, such as personal and work, and keep them apart -- **Light on a phone**: static HTML with no JavaScript, so it opens quickly while you're away +- **Light on a phone**: static HTML that reads without JavaScript, so it opens quickly while you're away - **Extensible**: a single Python module can add your own pages or an issue source. A bundled example shows Claude Code session history ([Extensions](#extensions))

@@ -50,6 +50,8 @@ codeview build # generate ./public/ and ./functions/ codeview serve # check it at http://localhost:8787 ``` +`codeview build --incremental` rebuilds only the repositories whose inputs changed since the last `--incremental` run. The output is the same as a full rebuild, and if nothing changed it writes nothing. The record of the last inputs is kept in `.codeview-build.json` next to `public/`. + No server is needed: open `public/index.html` in a browser and it reads as is (links are relative). Links in pages an extension writes in `build()` are the extension's responsibility. That is enough to read locally. To read over the internet, continue to [Publishing](#publishing) below. @@ -146,7 +148,7 @@ flowchart TD ### Publish ```sh -codeview publish # build and push to the deploy branch +codeview publish # build --incremental and push to the deploy branch codeview publish --dry-run # create the commit without pushing codeview publish --if-changed # do nothing if nothing changed since the last run (for scheduled runs) ``` @@ -176,7 +178,7 @@ Prerequisites: ## Scope - Only each repository's HEAD is read. Uncommitted changes, history, branches, tags and diffs are not shown -- Files over 512 KiB and binary files are not shown +- Files over 512 KiB and binary files are not shown, except images up to 5 MiB - Only Cloudflare Pages + Access is assumed as the host. The output is static files and can go elsewhere, but `cf-setup` and `_middleware.js` are for Cloudflare - Cloudflare Pages allows 20,000 files per deployment. build warns when over it, and `publish` stops without pushing - Up to two accounts diff --git a/README.md b/README.md index 9c207b6..074e141 100644 --- a/README.md +++ b/README.md @@ -9,7 +9,7 @@ - **全リポを1か所で読める**: 手元のリポを置き場ごとに並べ、コードをハイライトして読める - **Issue も1か所にまとまる**: 全リポの未消化の Issue を1つの一覧にする - **GitHub の複数アカウントに対応**: 個人用と仕事用のように、別々のアカウントの Issue を分けて取り込める -- **スマホで軽い**: JavaScript なしの静的 HTML なので、外出先でもすぐ開ける +- **スマホで軽い**: JavaScript なしでも読める静的 HTML なので、外出先でもすぐ開ける - **拡張でページを足せる**: Python のモジュール1つで、自前のページや Issue の取り込み元を足せる。実例として、Claude Code のセッション履歴を載せる拡張を同梱している([Extensions](#extensions))

@@ -50,6 +50,8 @@ codeview build # ./public/ と ./functions/ を生成 codeview serve # http://localhost:8787 で確認する ``` +`codeview build --incremental` は前回の `--incremental` の実行から入力の変わったリポだけを作り直す。出力は全体を作り直したときと同じで、何も変わっていなければ何も書かない。前回の入力の記録は `public/` の隣の `.codeview-build.json` に置く。 + サーバーが無くても、`public/index.html` をブラウザで開けばそのまま読める(リンクは相対パス)。拡張が `build()` で書くページのリンクは拡張側の責任で、相対パスにするかどうかは拡張が決める。 手元で見るだけならここまでで足りる。インターネット越しに読むには、下の [Publishing](#publishing) へ進む。 @@ -146,7 +148,7 @@ flowchart TD ### 配信する ```sh -codeview publish # build して deploy ブランチへ push する +codeview publish # build --incremental して deploy ブランチへ push する codeview publish --dry-run # コミットを作るだけで push しない codeview publish --if-changed # 前回から変化が無ければ何もしない(定期実行向け) ``` @@ -176,7 +178,7 @@ codeview cf-status # プロジェクトと直近のデ ## Scope - 見るのは各リポの HEAD だけ。未コミットの変更・履歴・ブランチ・タグ・差分は出ない -- 512 KiB を超えるファイルとバイナリは中身を出さない +- 512 KiB を超えるファイルとバイナリは中身を出さない。画像は 5 MiB まで表示する - 配信先は Cloudflare Pages + Access だけを想定する。生成物は静的ファイルなので他にも置けるが、`cf-setup` と `_middleware.js` は Cloudflare 向け - Cloudflare Pages の上限は 1 デプロイ 20,000 ファイル。build は超えたら警告し、`publish` は push せずに止まる - アカウントは2つまで