Repository navigation
Conversation
…e repo The engineering references in docs/ are what an evaluator or contributor reads before installing anything, and they were reachable only as raw markdown on GitHub. A second copy on the site would drift, so this does for docs what build_blog.py does for posts: pre-render from the source, commit the output, and fail CI when it lags. docs/factsheets.json names what is published: slug, source, kicker and the 140-160 character description the page and its card carry. References only; a dated record is frozen on its date and would read as current, and docs/guides carries third-party licences. scripts/build_docs.py renders a markdown reference into site/docs/<slug>.html in the site's chrome, from a Markdown subset that refuses anything outside it rather than rendering it wrong. A self-contained HTML doc (the architecture map) is copied verbatim to site/docs/embed/<slug>.html with a noindex tag and framed by a page carrying the head checklist, so it is never restyled or maintained twice. The embed has its own folder because a page sharing a name with a directory served a directory listing on the dev server. Relative links become the published page when the target is another fact sheet and the file on GitHub otherwise; a link to a missing path fails the build. The builder also fails until each page is in the sitemap and llms.txt, the same listing rule the blog holds. build_docs.py --check runs in make check-site and site.yml, which now also triggers on docs/** so a PR editing a published reference cannot skip it. The footer gains a Docs link, which regenerates the two blog pages that inline it and adds two strings to the site catalogues. Closes #254 Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
…s.py Uncommitted edits from the MacBook Air worktree (2026-09-28): a tweak to scripts/build_docs.py and the eight pages it regenerates.
This was referenced Nov 30, 2026
Owner
Author
|
Closing in favour of #621, which ports this onto current main instead of rebasing 792 commits. The differences from this branch are listed in #621's description. The branch stays as a record. Generated by Claude Code |
5hirish
added a commit
that referenced
this pull request
Dec 3, 2026
The engineering references in docs/ (data model, agent ports and events, credential storage, agent evaluation, the architecture map) are what an evaluator or contributor reads before installing, and they were reachable only as raw markdown on GitHub. scripts/build_docs.py pre-renders each source named in docs/factsheets.json into site/docs/ the way build_blog.py renders posts: the output is committed, --check fails CI when it lags, and a relative link that resolves nowhere fails the build. Ported from the stale #575 rather than rebased, because main had moved underneath it: GTM is added at the edge now and check-pages rejects a page that loads it itself; the nav reuses nav-blog.html with its label swapped instead of a second partial that had already drifted; the builder imports build_blog.py's helpers; and since every path now refuses framing, a /docs/embed/* rule in _headers allows same-origin framing for the architecture map only. The eight OG cards are September's renders, copied as placeholders, because sharp and Georgia are not available where this was built. Closes #254 Claude-Session: https://claude.ai/code/session_016C6UbnBeepKvyazWkPkqLr Co-authored-by: Claude <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Work in progress: publish the repo's
docs/fact sheets on the site at/docs, generated from the repo so they never drift.What it does
scripts/build_docs.pyturns the docs into site pages undersite/docs/./docs.State: from 2026-09-28, never opened as a PR. It conflicts with main (site workflow, Makefile, site/AGENTS.md, blog pages). The last commit holds uncommitted edits saved from the old MacBook Air during the move to the new Mac. Rebase or re-generate before review.