Skip to content

docs(site): add a documentation home page at /docs - #402

Merged
vishr merged 3 commits into
mainfrom
docs/docs-home
Oct 30, 2026
Merged

vishr merged 3 commits into
mainfrom
docs/docs-home

Conversation

@vishr

@vishr vishr commented Oct 30, 2026

Copy link
Copy Markdown
Member

What changed

fanout.run/docs returned 404 after #399 moved the documentation under it. 17 of 22 surveyed developer-tool sites serve a documentation home at their docs root, so /docs now has one: a one-line description, the quickstart path, cards for Get started, Guides, Reference and Concepts, and links for agents.

  • /docs has a Markdown export (/docs.md) and appears in llms.txt and llms-full.txt. Starlight card titles survive the Markdown conversion so each link keeps its section.
  • The site header and the product's Docs link (ui/links.ts) point at /docs. The Connect telemetry and MCP links stay deep. internal/ui/dist is rebuilt.
  • The site builds with build.format: "preserve" instead of "file". Pages are still written as <path>.html and served extensionless by Cloudflare Pages, but Starlight's site title, sidebar and previous/next links no longer carry .html, so a click no longer goes through a redirect. The route middleware still corrects the canonical, and check-docs-urls fails the build on any link to a .html page.

Verification

  • just check
  • just test-race when auth, API, ingest, query, MCP, or agent paths changed (not applicable)
  • User-facing behavior and configuration docs are current (just docs-generate-check)
  • No credentials, private telemetry, host details, or enterprise-only source are included
  • API, migration, ingest, MCP/AG-UI, or release-contract changes are called out (none)

Also: just site-build (33 docs pages verified, 0 links to .html pages, canonicals extensionless), just ui-test, bun test scripts/site-markdown.test.ts, and /docs checked in a local preview.

vishr added 3 commits October 29, 2026 20:43
/docs returned 404 after the docs moved under it. Most developer-tool
sites serve a documentation home at that address, so it now lists the
quickstart path and the four sections, with links for agents. It has a
Markdown export and appears in both LLM indexes, and Starlight card
titles survive the Markdown conversion so each link keeps its section.

The site header and the product's Docs link point at /docs, an address
that stays stable when pages under it move.
Under build.format "file" Starlight wrote the file name into the site
title, sidebar and previous/next links, so every click went through a
redirect and showed .html in the address bar. "preserve" writes the same
<path>.html files, which Cloudflare Pages serves at the extensionless
path, and Starlight emits extensionless links for it. The canonical still
comes from the file path, so the route middleware keeps correcting it,
and check-docs-urls now fails the build on any link to a .html page.
@vishr
vishr merged commit bac6949 into main Oct 30, 2026
17 checks passed
@vishr
vishr deleted the docs/docs-home branch October 30, 2026 04:22
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.

1 participant