feat(pages): standardize web crawler policy - #939
Conversation
|
🔍 OpenCodeReview found 9 issue(s) in this PR.
📄
|
|
Thanks for tackling this — the site genuinely needed robots.txt/sitemap.xml. Two things I'd want sorted before merge, plus one question. Why move the install scripts?I'll be honest, I'm not seeing what this buys us. The old setup (real files at the repo root, And that cost is real: That URL is exactly what we hand users in all four installation docs ( Unless there's a motivation I'm missing, I'd suggest dropping this part entirely — keep the scripts at the root and restore The sitemap lists 23 URLs, 22 of which currently 404The site is a client-side SPA and GitHub Pages serves Search engines will reject all of those as "Submitted URL not found," so as it stands the sitemap fills Search Console with errors instead of getting us indexed. Either prerender a real Smaller stuff in the workflow
Nits
Nothing here is a security concern — the script blobs moved byte-for-byte ( |
|
@lizhengfeng101 Answers here:
I'm a newcomer and wrote this by myself, so there might be plenty of nits and bugs. So feel free to criticize my code. |
|
Updates done. |
Regenerate public/sitemap.xml from the DocSlug/BlogSlug unions and the static routes so a new page can no longer be silently omitted from the sitemap. Centralize the site origin and route list in scripts/site-config.cjs, add validate-sitemap coverage that the sitemap matches the routes exactly, and have the deploy workflow assert on pages/dist/ instead of the public/ source.
Description
Standardlize web crawler policy with sitemap.xml and robots.xml, deploy to domain root and move scripts.
Type of Change
How Has This Been Tested?
make testpasses locallyChecklist
go fmt,go vet)Related Issues
none