Skip to content

feat(tools): publish robots.txt, a sitemap, llms.txt and page metadata - #268

Merged
justinmerrell merged 1 commit into
mainfrom
feat/site-discoverability
Dec 2, 2026
Merged

justinmerrell merged 1 commit into
mainfrom
feat/site-discoverability

Conversation

@justinmerrell

Copy link
Copy Markdown
Contributor

What changes

The site build (assembleSite) now emits three discovery files, and every HTML page gets head metadata. No contract change: tooling and docs only.

  • /sitemap.xml: every HTML page the build emits, as absolute https://specifications.musher.dev/... URLs, derived from the same served list _headers is checked against, so a page cannot be emitted without being listed. /404.html is left out. No <lastmod>: pages are regenerated on every deploy and no page has a truthful per-page date.
  • /robots.txt: allows every path and names the sitemap.
  • /llms.txt (llmstxt.org format): H1, blockquote summary, then sections linking each family's specification, field reference and alias JSON Schema, plus the catalog, ledger and repository.
  • page() in tools/src/render/html.ts now takes a PageMeta: every page carries <meta name="description">, and every page but 404.html a <link rel="canonical"> to its own sitemap URL.
  • No new _headers rule: Pages types .txt and .xml itself, no shape rule sets Content-Type on them, and the /* rule still gives them open CORS. docs/publication.md lists the new paths.

Why

Closes #267

Compatibility

  • No schema change (docs, tooling, or CI only)

Checklist

  • task check passes locally
  • Commit messages are Conventional and scoped to the area they touch
  • Commits are DCO signed off (git commit -s)

Tests in tools/src/publication/site.test.ts: every emitted HTML page but 404 appears in the sitemap and nothing else does; sitemap shape with no lastmod; robots.txt; llms.txt shape and that every on-origin link it names is served; every page's canonical equals its sitemap URL and carries a description; the discovery files draw no Content-Type or Cache-Control rule.

🤖 Generated with Claude Code

The site served pages with a title and nothing else for a crawler or an
agent: no robots.txt of its own, no sitemap, no llms.txt, no canonical link
and no description.

assembleSite now emits sitemap.xml from the paths it served, so a page
cannot be emitted without being listed (404.html is left out, and no
lastmod is written because no page has a truthful date), robots.txt
allowing every path and naming the sitemap, and llms.txt linking each
family's specification, field reference and alias schema. Every page
carries a description, and every page but the not-found page a canonical
link to its own sitemap URL. The new files take no _headers rule: Pages
types .txt and .xml itself, and no shape rule sets Content-Type on them.

Closes #267

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Signed-off-by: Justin Merrell <merrelljustin@gmail.com>
@justinmerrell
justinmerrell merged commit 4e3a1d6 into main Dec 2, 2026
13 checks passed
@justinmerrell
justinmerrell deleted the feat/site-discoverability branch December 2, 2026 06:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Site has no robots.txt, sitemap.xml, llms.txt, canonical or description tags

1 participant