From eff459b5989a709be0f41378b3891692a37e2806 Mon Sep 17 00:00:00 2001 From: yktsnet Date: Tue, 3 Nov 2026 14:35:49 +0900 Subject: [PATCH 1/2] =?UTF-8?q?docs:=20README=20=E3=81=AB=20build=20--incr?= =?UTF-8?q?emental=20=E3=81=A8=E3=80=81publish=20=E3=81=8C=E3=81=9D?= =?UTF-8?q?=E3=82=8C=E3=81=A7=E7=94=9F=E6=88=90=E3=81=99=E3=82=8B=E3=81=93?= =?UTF-8?q?=E3=81=A8=E3=82=92=E6=9B=B8=E3=81=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.en.md | 4 +++- README.md | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/README.en.md b/README.en.md index 42450bb..649019d 100644 --- a/README.en.md +++ b/README.en.md @@ -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. + 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) ``` diff --git a/README.md b/README.md index 9c207b6..ee3a453 100644 --- a/README.md +++ b/README.md @@ -50,6 +50,8 @@ codeview build # ./public/ と ./functions/ を生成 codeview serve # http://localhost:8787 で確認する ``` +`codeview build --incremental` は前回の `--incremental` から入力の変わったリポだけを作り直す。出力は全体を作り直したときと同じで、何も変わっていなければ何も書かない。 + サーバーが無くても、`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 # 前回から変化が無ければ何もしない(定期実行向け) ``` From 2fdfaa05104f9e05b9416dd95ec724042f25592b Mon Sep 17 00:00:00 2001 From: yktsnet Date: Tue, 3 Nov 2026 14:37:00 +0900 Subject: [PATCH 2/2] =?UTF-8?q?docs:=20README=20=E3=81=AE=20JavaScript=20?= =?UTF-8?q?=E3=81=A8=E7=94=BB=E5=83=8F=E3=81=AE=E8=A8=98=E8=BF=B0=E3=82=92?= =?UTF-8?q?=E5=AE=9F=E9=9A=9B=E3=81=AE=E6=8C=AF=E3=82=8B=E8=88=9E=E3=81=84?= =?UTF-8?q?=E3=81=AB=E5=90=88=E3=82=8F=E3=81=9B=E3=80=81--incremental=20?= =?UTF-8?q?=E3=81=AE=E8=A8=98=E9=8C=B2=E3=81=AE=E7=BD=AE=E3=81=8D=E5=A0=B4?= =?UTF-8?q?=E6=89=80=E3=82=92=E6=9B=B8=E3=81=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.en.md | 6 +++--- README.md | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/README.en.md b/README.en.md index 649019d..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,7 +50,7 @@ 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. +`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. @@ -178,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 ee3a453..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,7 +50,7 @@ codeview build # ./public/ と ./functions/ を生成 codeview serve # http://localhost:8787 で確認する ``` -`codeview build --incremental` は前回の `--incremental` から入力の変わったリポだけを作り直す。出力は全体を作り直したときと同じで、何も変わっていなければ何も書かない。 +`codeview build --incremental` は前回の `--incremental` の実行から入力の変わったリポだけを作り直す。出力は全体を作り直したときと同じで、何も変わっていなければ何も書かない。前回の入力の記録は `public/` の隣の `.codeview-build.json` に置く。 サーバーが無くても、`public/index.html` をブラウザで開けばそのまま読める(リンクは相対パス)。拡張が `build()` で書くページのリンクは拡張側の責任で、相対パスにするかどうかは拡張が決める。 @@ -178,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つまで