You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[codex] validate GitHub Pages docs payload in CI (#96)
* fix(ci): validate pages docs payload
* feat(docs): wire mdbook-admonish preprocessor for mdbook 0.5 compatibility
- Add [preprocessor.admonish] to book/book.toml via mdbook-admonish install
- Refresh mdbook-admonish.css to v1.20.0 assets
- Install mdbook-admonish from padamson/mdbook-admonish@feat/mdbook-0.5-compat
(tommilligan/mdbook-admonish#235) in CI and docs workflows — released v1.20.0
was built against mdbook 0.4.x and fails on 0.5's null config fields
- Add admonish presence check and install instructions to Justfile docgen recipe
- Add smoke-test admonish blocks (note/warning/tip) to book/src/intro.md
TODO: pin to a released version once #235 merges upstream
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
* fix(ci): rename MDBOOK_* env vars to TOOL_ prefix to avoid mdbook config injection
mdbook 0.5 reads MDBOOK_* env vars as config key overrides (strips prefix,
lowercases, replaces _ with -). MDBOOK_MERMAID_VERSION was being injected as
the unknown config key `mermaid-version`, causing `ERROR invalid key` on every
docs build. MDBOOK_VERSION had the same risk with `version`.
Renaming to TOOL_MDBOOK_VERSION / TOOL_MDBOOK_MERMAID_VERSION avoids the prefix
match entirely.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
* fix(docker): add kani-proofs to planner and builder COPY stages
cargo chef prepare failed because kani-proofs was a workspace member
but was not copied into the Docker context before the planner stage ran.
Adds COPY to both planner (before cargo chef prepare) and builder.
Adds wrkflw-ci-build.yml workflow and `just build` recipe to prove the
fix locally without Docker: runs cargo chef prepare + ledgerr-mcp build
via wrkflw emulation mode, asserting kani-proofs appears in the recipe.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
* fix(release): remove unknown cog field ignore_fixup_commits
Field was rejected by cocogitto at runtime, blocking cog bump.
Removed; merge-commit skipping is handled by ignore_merge_commits.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
* fix(ci): resolve workflow validation failures on every push
Two workflows were failing GitHub's parse-time validation on every push:
- publish.yml: secrets context is not available during job-level `if:`
evaluation. Moved CRATES_IO_TOKEN/PYPI_API_TOKEN to job-level env vars
and gated each step with `if: ${{ env.TOKEN != '' }}` instead.
- wrkflw-docgen.yml: `runner.temp` is a job-execution context, not
available in workflow-level `env:` blocks. Replaced with `/tmp/sccache`
(always correct in emulation mode where wrkflw runs on the host).
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
---------
Co-authored-by: Claude Sonnet (coordinator) <coordinator@promptexecution.com.au>
Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
# TODO: switch to a released version once tommilligan/mdbook-admonish#235 merges
436
438
docgen:
437
439
@if [ ! -x ~/.cargo/bin/mdbook ]; then echo "error: mdbook not found — run: cargo install mdbook mdbook-mermaid"; exit 1; fi
438
440
@if [ ! -x ~/.cargo/bin/mdbook-mermaid ]; then echo "error: mdbook-mermaid not found — run: cargo install mdbook-mermaid"; exit 1; fi
441
+
@if [ ! -x ~/.cargo/bin/mdbook-admonish ]; then echo "error: mdbook-admonish not found — see comment above docgen recipe in Justfile"; exit 1; fi
439
442
@if [ ! -x ~/.cargo/bin/mdbook-rhai-mermaid ]; then cargo install --path crates/mdbook-rhai-mermaid --quiet; fi
440
443
PATH="$HOME/.cargo/bin:$PATH" ~/.cargo/bin/mdbook build book
441
444
@echo "Docs built in book/book/ — serve with: npx serve book/book"
@@ -475,9 +478,19 @@ docgen-check:
475
478
@echo "Running live-editor unit tests..."
476
479
@node --test book/theme/rhai-live-core.test.js
477
480
@echo "Checking iso-pipeline-objects.html has at least 5 mermaid blocks..."
478
-
@count=$$(grep -c 'class="mermaid"' book/book/iso-pipeline-objects.html); echo "Found $$count mermaid blocks in iso-pipeline-objects.html"; if [ "$$count" -lt 5 ]; then echo "error: expected at least 5 mermaid blocks, found $$count"; exit 1; fi; echo "✓ iso-pipeline-objects.html has $$count mermaid blocks (>= 5)"
481
+
@count=$(grep -c 'class="mermaid"' book/book/iso-pipeline-objects.html||true); echo "Found $count mermaid blocks in iso-pipeline-objects.html"; if [ "$count" -lt 5 ]; then echo "error: expected at least 5 mermaid blocks, found $count"; exit 1; fi; echo "✓ iso-pipeline-objects.html has $count mermaid blocks, expected at least 5"
479
482
@echo "All documentation diagrams validated!"
480
483
484
+
# Verify the exact mdBook output directory published to GitHub Pages.
Copy file name to clipboardExpand all lines: book/src/intro.md
+17-3Lines changed: 17 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,8 +1,9 @@
1
1
# Introduction
2
2
3
-
```admonish info
4
-
**l3dg3rr** is designed for US expats who need to reconcile complex financial histories across multiple jurisdictions (US, AU, UK) without compromising privacy.
5
-
```
3
+
<divclass="admonition info">
4
+
<divclass="admonition-title">Info</div>
5
+
<p><strong>l3dg3rr</strong> is designed for US expats who need to reconcile complex financial histories across multiple jurisdictions (US, AU, UK) without compromising privacy.</p>
6
+
</div>
6
7
7
8
`l3dg3rr` is a local-first financial document intelligence system
8
9
for retroactive U.S. expat tax preparation. It ingests raw statements, classifies transactions with editable rules, verifies hard constraints, and exports an accountant-usable Excel workbook with audit history.
@@ -53,3 +54,16 @@ The visualization chapters document the live mdBook diagram system. They are imp
53
54
-[Workbook & Audit](./workbook-audit.md)
54
55
-[Theory of Operation](./theory.md)
55
56
-[Graph Data Model](./graph.md)
57
+
58
+
<!-- mdbook-admonish smoke-test: remove once verified rendering works -->
59
+
```admonish note title="Local-first by design"
60
+
All processing runs on your machine — no private financial data leaves the host.
61
+
```
62
+
63
+
```admonish warning
64
+
PDF ingestion rewrites the workbook in-place. Back up `tax-ledger.xlsx` before running a full re-ingest.
65
+
```
66
+
67
+
```admonish tip title="CPA handoff"
68
+
Export the workbook after every classification pass so your accountant always has the latest reconciled state.
0 commit comments