docs icon indicating copy to clipboard operation
docs copied to clipboard

fix(sitemap): include statically-generated toolkit pages

Open teallarson opened this issue 6 months ago • 1 comments

Summary

Toolkit pages at /en/resources/integrations/{category}/{toolkitId} were missing from sitemap.xml because the filesystem walk in app/sitemap.ts skips directories whose names contain [, dropping all [toolkitId] dynamic route folders. This means search engines get no direct signal to crawl ~100 toolkit pages.

  • Adds a buildSitemap() helper that runs the MDX walk and listToolkitRoutes() in parallel, then merges, deduplicates, and sorts the results
  • Excludes the others category (no on-disk route, redirected by next.config.ts)
  • Updates tests/sitemap.test.ts to assert a known toolkit URL is present, >10 integration URLs exist, and no [ placeholder leaks

Related

  • Closes TOO-736 (partial — the Algolia attributeForDistinct config change is being applied separately in the crawler dashboard)
  • Revives the fix from closed PR #923 in a simplified form (no per-toolkit lastModified lookup to keep it lean)

Test plan

  • [ ] CI green
  • [ ] After deploy, confirm https://docs.arcade.dev/sitemap.xml contains /en/resources/integrations/development/github and other toolkit URLs

teallarson avatar May 14 '26 17:05 teallarson

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
docs Ready Ready Preview, Comment May 14, 2026 6:11pm

Request Review

vercel[bot] avatar May 14 '26 17:05 vercel[bot]