Skip to content

docs(zeronym): publish The Zeronym Book to GitHub Pages - #31

Merged
aphelionz merged 1 commit into
mainfrom
claude/zeronym-book-pages
Aug 14, 2026
Merged

docs(zeronym): publish The Zeronym Book to GitHub Pages#31
aphelionz merged 1 commit into
mainfrom
claude/zeronym-book-pages

Conversation

@aphelionz

Copy link
Copy Markdown
Member

Publishes The Zeronym Book at https://shieldedlabs.github.io/zero/zeronym/.

.github/workflows/zeronym-book.yml builds the mdBook on every push to main that touches zeronym/book/**, and deploys it to GitHub Pages. Pull requests build but do not deploy, so a book that stops compiling blocks the merge instead of the publish.

Layout

The book is staged into a zeronym/ subdirectory of the Pages artifact rather than at its root: a repo gets exactly one Pages site, and this one should not be spent entirely on one book. The site root gets a redirect into the book, to be replaced with a real index when Zero publishes a second one. book.toml gains a matching site-url, which only 404.html consumes (every other page links relatively) but which sends every not-found visitor nowhere if the two disagree.

The mermaid step is not optional

The build runs mdbook-mermaid install before mdbook build. book.toml already lists mermaid.min.js and mermaid-init.js in additional-js, both are generated files that .gitignore excludes, and skipping the step fails silently: the pages render, reference two scripts that do not exist, and show the three architecture diagrams as raw code blocks.

Tool versions are pinned to what the book was written against (mdbook 0.5.4, mdbook-mermaid 0.17.0). Bump them here and in the local toolchain together.

Verified locally

  • Full mdbook build: all 9 chapters render, 3 mermaid diagrams emit class="mermaid" blocks with both scripts wired.
  • 404.html emits href="/zero/zeronym/"; no other page references an absolute path.
  • The staging step was dry-run against a fixture: _site/index.html + _site/zeronym/.

Pages is enabled on the repo with source GitHub Actions; the site 404s until this merges and the first deploy runs.

🤖 Generated with Claude Code

Renders zeronym/book/ on every push to main that touches it and deploys to
https://shieldedlabs.github.io/zero/zeronym/, with pull requests building but
not deploying so a book that stops compiling blocks the merge.

The book is staged into a zeronym/ subdirectory of the Pages artifact rather
than at its root: a repo gets one Pages site, and this one should not be spent
entirely on one book. book.toml gains a matching site-url, which only 404.html
consumes (every other page links relatively) but which sends every not-found
visitor nowhere if the two disagree.

The build must run `mdbook-mermaid install` before `mdbook build`. book.toml
already lists mermaid.min.js and mermaid-init.js in additional-js, both are
generated and gitignored, and skipping the step fails silently: the pages
render, reference two scripts that do not exist, and show the three
architecture diagrams as raw code blocks.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
@aphelionz
aphelionz merged commit b174d78 into main Aug 14, 2026
11 checks passed
@aphelionz
aphelionz deleted the claude/zeronym-book-pages branch August 14, 2026 02:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant