Repository navigation
feat(site): publish the docs/ fact sheets at /docs - #621
Merged
Merged
Conversation
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 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_016C6UbnBeepKvyazWkPkqLr
5hirish
marked this pull request as ready for review
December 3, 2026 22:24
Deploying duct with
|
| Latest commit: |
8d11aa7
|
| Status: | ✅ Deploy successful! |
| Preview URL: | https://c1472d64.duct.pages.dev |
| Branch Preview URL: | https://feat-site-docs-port.duct.pages.dev |
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.
Merged with placeholder social images, on the maintainer's call (2026-12-03): the eight docs OG cards in
site/assets/og/are September's renders, and two show old titles (docs-credential-storage.jpg,docs-agent-evaluation.jpg). Follow-up: runnode scripts/build_og_images.mjson a Mac (it needssharpand Georgia) and push the cards. Main was merged in first and every site check re-run on the result.What and why
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. They were reachable only as raw markdown on GitHub. This change publishes them at getduct.ai/docs the same way the blog is published:scripts/build_docs.pypre-renders each source named indocs/factsheets.jsonintosite/docs/.build_docs.py --checkfails CI when it lags behind the source.site.ymlnow also runs ondocs/**andscripts/build_blog.py.site/docs/embed/and shown in an iframe.This is a port of the stale #575 (792 commits behind) onto current main, not a rebase. Main had moved underneath it:
check-pages.pyrejects a page that loads it itself, so the GTM noscript tag is gone.nav-docs.htmlpartial. The builder reusesnav-blog.htmland swaps its label, and fails loudly if the label moves. The old partial was a one-word copy that had already drifted, so the 5 translated nav copies are gone too.build_blog.py's helpers (escaping, JSON-LD, partials, inline and table patterns). The block renderer stays separate, because the docs wrap list items at 80 columns and open with their own h1 and byline./docs/embed/*rule insite/_headersremoves the global pair and allows same-origin framing for that path only.Closes #254
Area
backend/— FastAPI / Pythonapp/— Next.jsdesktop/— Tauri shell / sidecarsite/— static marketing siteLaunch
Launch: changelog only, because it is reference material for evaluators and contributors, reachable from the footer and
llms.txt.Verification
e2e: the full suite passed 80 and failed 16. All 16 failures are in
consent.spec.js, becauselocaltest.medoes not resolve in the sandbox it ran in.Browser: pages at 375 and 1366 px had no horizontal overflow and no failed requests, and the architecture iframe rendered.
Links: every in-page and cross-doc link points at an id that exists.
Not run:
build_media_variants.mjs --check(nosharp) andmake check-security(nobetterleaks).Translations: the "Docs" label was translated by hand (
fill.py --provider manual), because no model key was available: Dokumentation, Documentación, ドキュメント, Documentação, 文档.I ran the checks for the areas I touched (see CONTRIBUTING.md)
I added or updated tests covering the behaviour that changed
I read the
AGENTS.mdfor each directory I editedI read my own diff back looking for the reason to reject it, and read it against the code around it (STYLE.md)
Things that need a second look
CLAUDE.md:site/AGENTS.mdupdated (the generated-trees table, a Docs pages section, the framing exception)site/_headers:/docs/embed/*uses Cloudflare's! Headerto remove the globalX-Frame-Optionsand CSP, then setsSAMEORIGINandframe-ancestors 'self'. Neitherdev_servernor e2e applies_headers, so check it on a deploy.site.yml. It merges green, and the push to main then fails the site build on the dead link.AI assistance
Generated by Claude Code