Skip to content

Sitemap: the docs and legal pages join it; the smoke checks every entry's Markdown copy - #988

Merged
R44VC0RP merged 1 commit into
devfrom
seo/sitemap-docs
Nov 26, 2026
Merged

R44VC0RP merged 1 commit into
devfrom
seo/sitemap-docs

Conversation

@R44VC0RP

Copy link
Copy Markdown
Collaborator

The docs and legal pages each have their own head (#971, #985) but weren't in the sitemap. Now they are: 345 addresses in place of 40.

What a crawler gets

  • /sitemap.xml lists /docs, the 10 guides, the 289 operation pages, /legal and the 4 legal documents, after the 40 it had.
  • One file, not an index: 345 addresses are far inside a sitemap's 50,000. The address Search Console already reads stays the same, and robots.txt already names it.
  • Dates (lastmod):
    • Each legal document gets its own "updated" date (26 Nov, Subprocessors 20 Nov), and /legal gets the newest of them.
    • The docs pages get no date. api/openapi.json carries none (its version is 0.1.0). The deploy's build job checks out shallow and Docker builds have no history, so a date taken from git would claim every page changed on every deploy. No date is truer than that.
  • Nothing hidden is listed: every listed page is public, answers 200 and names itself as canonical. The support agent's operations are in no API definition, so they have no page and stay unlisted (and 404).
  • llms.txt already links the docs (docs.md, the tags and each operation's Markdown), so it is unchanged.

The preview smoke

It already asked every sitemap entry for a 200, no noindex and its own og:url. It now also asks every entry for the Markdown copy its own head names: an operation's /docs/operations/<id>.md, a guide's /docs.md, a legal document's /legal/<slug>.md. It asks once per copy, and retries a request the dev proxy drops, as the route check does. Before this, only price pages were checked for a copy. Every operation page has one, so nothing was weakened.

For the reviewer

  1. In app/site-pages.ts, the pages it writes are appended to the sitemap.xml that price-pages.ts writes. The build stops if that file is missing.
  2. The lastmod rule: legal documents dated, docs pages not, for the reason above.
  3. The smoke's new check of each entry's Markdown copy in api/scripts/preview-smoke.ts.

Checked

  • VITE_HOME=tv bun run build: sitemap.xml has 345 entries, all distinct, 45 of them with a date.
  • The smoke's sitemap section against wrangler dev on that build: 345 entries, 335 distinct Markdown copies, 0 failures.
  • bun run check (api) and check-premerge pass. CI's preview job runs the whole smoke.

… each entry's Markdown twin

The sitemap listed the homepage and the price pages (40); the 300 docs pages and 5 legal pages,
each with its own head since #971 and #985, weren't in it. They are now: 345 addresses.

- app/site-pages.ts adds every page it writes to the sitemap.xml price-pages.ts wrote (earlier in
  the plugins), at the end, in its own order: /docs, the 10 guides, the 289 operations in
  api/openapi.json, /legal and the 4 legal documents. Each is public, answers 200 and names itself
  as canonical. The support agent's operations are in no API definition, so they have no page
  here and stay 404 and unlisted.
- lastmod: a legal document's own "updated" (2026-11-26, subprocessors 2026-11-20), /legal the
  newest of them. The docs pages get none: api/openapi.json carries no date (info.version 0.1.0),
  and the deploy's checkout is shallow (actions/checkout without fetch-depth in the build job;
  a Docker build has no history at all), so a date from git would say every page changed on
  every deploy. No lastmod is truer than that.
- One sitemap, not an index of two: 345 addresses are far inside a sitemap's 50,000 and 50 MB,
  the address Search Console already reads stays the same, and robots.txt already names it.
- llms.txt already links the docs (docs.md, the tags and every operation's Markdown): unchanged.
- api/scripts/preview-smoke.ts asked every sitemap entry for a 200, no noindex and its og:url, and
  only the price pages for <path>.md. It now asks every entry for the Markdown twin its own head
  names (an operation's /docs/operations/<id>.md, a guide's /docs.md, a legal document's
  /legal/<slug>.md), once per twin, and retries a request the dev proxy drops, as the route check
  does. Nothing is weakened: every operation page has a Markdown copy.

Verified: VITE_HOME=tv bun run build (sitemap.xml 345 entries, all distinct; 45 with lastmod);
the smoke's sitemap section against wrangler dev on the build: 345 entries, 335 distinct twins,
0 failures, 1.6 s; bun run check (api); check-premerge.
@R44VC0RP
R44VC0RP enabled auto-merge November 26, 2026 18:38
@R44VC0RP
R44VC0RP added this pull request to the merge queue Nov 26, 2026
Merged via the queue into dev with commit 8dab7ec Nov 26, 2026
15 checks passed
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