Repository navigation
Sitemap: the docs and legal pages join it; the smoke checks every entry's Markdown copy - #988
Merged
Merged
Conversation
… 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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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.xmllists/docs, the 10 guides, the 289 operation pages,/legaland the 4 legal documents, after the 40 it had.robots.txtalready names it.lastmod):/legalgets the newest of them.api/openapi.jsoncarries 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.llms.txtalready 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
noindexand its ownog: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
app/site-pages.ts, the pages it writes are appended to thesitemap.xmlthatprice-pages.tswrites. The build stops if that file is missing.lastmodrule: legal documents dated, docs pages not, for the reason above.api/scripts/preview-smoke.ts.Checked
VITE_HOME=tv bun run build:sitemap.xmlhas 345 entries, all distinct, 45 of them with a date.wrangler devon that build: 345 entries, 335 distinct Markdown copies, 0 failures.bun run check(api) andcheck-premergepass. CI's preview job runs the whole smoke.