Skip to content

Generate llms.txt, llms-full.txt & per-page Markdown for doc.typhondb.io #492

Closed
5 of 5 issues completed
Closed

Description

@nockawa

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 .md for 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 for llms.txt link 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 into doc/_site).
  • All internal links absolute https://doc.typhondb.io/latest/… (version-pinned).

Acceptance criteria

  1. doc.typhondb.io/llms.txt resolves at host root, valid per the llmstxt.org spec (H1, blockquote, H2 file-lists, ## Optional).
  2. llms-full.txt resolves; contains Guide + Overview + Key Concepts; zero residual frontmatter or unresolved xref: / ~/ tokens.
  3. Every link in llms.txt resolves (build fails otherwise — mirrors the existing InvalidFileLink/UidNotFound gate).
  4. Per-page .md exists at <page>.html.md for all in-scope pages; no frontmatter, no unresolved xref: / ~/; internal links absolute /latest/.
  5. 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 --check staleness gate needed).
  6. Docs build stays green; added wall-clock < 5 s.

Tasks

(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

Sub-issues

5 of 5 Issues completed
Loading 5 sub-issues

Activity

  1. added this to the pre-alpha milestone on Jul 17, 2026
  2. added
    documentation
    on Jul 17, 2026
  3. added theissue type on Jul 17, 2026
  4. moved this to Todo in Typhonon Jul 17, 2026
  5. self-assigned this
    on Jul 17, 2026
  6. moved this from Todo to In Progress in Typhonon Jul 17, 2026
  7. moved this from In Progress to Done in Typhonon Jul 17, 2026
  8. nockawa commented on Jul 17, 2026

    @nockawa
    CollaboratorAuthor

    ✅ Shipped & live.

    Merged: #503 (squash 72e97234) · design doc Log2n-io/Typhon-Claude#59
    Deployed: build-docs.yml on main green (build + deploy to Pages).

    Live now:

    Acceptance criteria AC1–AC6 met: host-root llms.txt spec-valid (H1 · blockquote · ## file-lists · ## Optional); llms-full.txt = Guide + Key Concepts + In-Depth Overview (61 pages, ~0.65 MB); every llms.txt link resolves (build-fails otherwise); 328 per-page .md, frontmatter/xref-clean, absolute /latest/ links; runs inside scripts/build-docs.sh (~0.45 s); artifacts gitignored. The integrity gate is baked into scripts/gen-llms-txt.py — an unresolved xref:/.md link or a residual DocFX token is a hard error, CI-enforced via the build job.

    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.

  9. added a commit that references this issue on Jul 18, 2026
  10. moved this from Done to In Progress in Typhonon Jul 18, 2026
  11. moved this from In Progress to Done in Typhonon Jul 18, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

documentation

Fields

Priority

None yet

Estimate

None yet

Area

None yet

Start date

None yet

Target date

None yet

Product

User adoption

Projects

  • Status
    Done

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions