Repository navigation
Description
Generate three LLM-facing documentation artifacts for doc.typhondb.io so coding agents (and their users) working against the Typhon NuGet package get clean, canonical, version-pinned grounding: an llms.txt index, an llms-full.txt corpus, and per-page Markdown (<page>.html.md).
Why
The XML docs shipped inside the NuGet package already ground API signatures on the consumer's disk. This Feature adds the conceptual / how-to layer (guide, in-depth overview, key concepts, feature catalog) at a canonical URL that agents auto-probe (/llms.txt) — complementing, not duplicating the on-disk XML docs. Effect: fewer hallucinated APIs and idiomatic-on-first-try code against a library no model has in its training data.
Scope (decided)
- Full — per-page
.mdfor all ~328 conceptual pages, including the 256-page feature catalog. API reference (~397 pages) excluded — already covered by the on-disk XML docs. llms-full.txt= Guide + In-Depth Overview + Key Concepts concatenated (~0.55 MB / ~150K tokens). Excludes the catalog and the API reference (too large / catalog-shaped).- ~330 generated files total (328
.md+llms.txt+llms-full.txt).
Approach — source-transform, reuse DocFX's own build artifacts (no HTML scraping)
doc/_site/manifest.json→ authoritative source→output map (328 Conceptual entries).doc/_site/xrefmap.yml→ uid→href; resolves the 700+<xref:>links the raw source can't.- Frontmatter (
title/description, present on 326/328 pages) harvested forllms.txtlink descriptions — the curation already exists.
Placement (host-root vs /latest/)
The docs deploy under /latest/; the deploy job already assembles a host-root tree (_publish/ holds CNAME, root redirect, robots.txt).
/llms.txt→ host root (_publish/llms.txt), because agents probe the domain root.- per-page
.md+llms-full.txt→ under/latest/(emitted intodoc/_site). - All internal links absolute
https://doc.typhondb.io/latest/…(version-pinned).
Acceptance criteria
doc.typhondb.io/llms.txtresolves at host root, valid per the llmstxt.org spec (H1, blockquote, H2 file-lists,## Optional).llms-full.txtresolves; contains Guide + Overview + Key Concepts; zero residual frontmatter or unresolvedxref:/~/tokens.- Every link in
llms.txtresolves (build fails otherwise — mirrors the existingInvalidFileLink/UidNotFoundgate). - Per-page
.mdexists at<page>.html.mdfor all in-scope pages; no frontmatter, no unresolvedxref:/~/; internal links absolute/latest/. - Generation runs inside
scripts/build-docs.sh; a clean build produces all artifacts with zero manual steps; artifacts are not committed (pure build output — no--checkstaleness gate needed). - Docs build stays green; added wall-clock < 5 s.
Tasks
- Design doc: llms.txt generation for doc.typhondb.io #493 — Design doc: llms.txt generation
- gen-llms-txt.py: normalizer + per-page .md emission #494 —
gen-llms-txt.py: normalizer + per-page.md - gen-llms-txt.py: emit llms.txt index + llms-full.txt #495 —
gen-llms-txt.py:llms.txtindex +llms-full.txt - Wire generation into docs build + publish /llms.txt at host root #496 — Wire into docs build + publish
/llms.txtat host root - Integrity gate + end-to-end validation #497 — Integrity gate + end-to-end validation
(Tracked as native GitHub sub-issues — see the Sub-issues panel.)
Parent Epic: #436. Design doc (Task 1): claude/design/Misc/llms-txt-generation.md, beside documentation-site.md.
Related: #490 (doc-accuracy CI net) — the generated llms.txt/.md here are guarded by this Feature's own integrity gate (#497), not #490's LLM reviewer (per its generate > lint > LLM-judge precedence).
Sub-issues
Collapse Sub-issuesSub-issues
Metadata
Metadata
Assignees
Labels
Type
Fields
Priority
Estimate
Area
Start date
Target date
Product
Projects
- StatusShow more project fieldsDone
Activity
feat(docs): LLM-facing artifacts for doc.typhondb.io — llms.txt, llms…
nockawa commentedon Jul 17, 2026
✅ Shipped & live.
Merged: #503 (squash
72e97234) · design doc Log2n-io/Typhon-Claude#59Deployed:
build-docs.ymlonmaingreen (build + deploy to Pages).Live now:
Acceptance criteria AC1–AC6 met: host-root
llms.txtspec-valid (H1 · blockquote ·##file-lists ·## Optional);llms-full.txt= Guide + Key Concepts + In-Depth Overview (61 pages, ~0.65 MB); everyllms.txtlink resolves (build-fails otherwise); 328 per-page.md, frontmatter/xref-clean, absolute/latest/links; runs insidescripts/build-docs.sh(~0.45 s); artifacts gitignored. The integrity gate is baked intoscripts/gen-llms-txt.py— an unresolvedxref:/.mdlink or a residual DocFX token is a hard error, CI-enforced via thebuildjob.The Tier-3 grounded A/B agent-consumption test mentioned in #497 is tracked under #502 (agent-guidance, #498) — it depends on the on-disk-vs-llms.txt comparison harness that feature owns.
Bug bash: fix #504/#505/#506/#486, add seeding API & page-cache confi…
fix(docs): llms.txt links target .html.md siblings; slim ## Optional …