Skip to content

wip(site): publish the docs/ fact sheets at /docs - #575

Closed
5hirish wants to merge 2 commits into
mainfrom
feat/site-docs
Closed

5hirish wants to merge 2 commits into
mainfrom
feat/site-docs

Conversation

@5hirish

@5hirish 5hirish commented Nov 13, 2026

Copy link
Copy Markdown
Owner

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.py turns the docs into site pages under site/docs/.
  • The site links them and serves them at /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.

5hirish and others added 2 commits September 28, 2026 13:35
…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.
@github-actions github-actions Bot added documentation Improvements or additions to documentation site Static marketing site ci Workflows, scripts and repo hygiene agents Agent instructions and skills labels Nov 13, 2026

5hirish commented Nov 30, 2026

Copy link
Copy Markdown
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 5hirish closed this Nov 30, 2026
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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

agents Agent instructions and skills ci Workflows, scripts and repo hygiene documentation Improvements or additions to documentation site Static marketing site

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant