Skip to content

Conversation

@markdanial
Copy link
Contributor

https://linear.app/grapesjs/issue/GRA-164/add-sitemap

Updating Sitemap to include /docs pages

Changes:
Fetches the docs sitemap: Retrieves https://grapesjs.com/docs/sitemap-index.xml (https://github.com/GrapesJS/grapesjs/pull/6648/files) at build time
Handles sitemap indexes: If it's a sitemap index (references other sitemaps), it fetches and parses all referenced sitemaps
Parses XML: Extracts all URLs with their lastmod dates from the XML
Includes in main sitemap: Adds all docs URLs with:
Priority: 0.6
Change frequency: daily
Last modified: from the docs sitemap
The sitemap now includes:
Static pages
Comparison pages
Blog posts
All docs pages (open source and SDK docs from the other repo)
During next build, it fetches the docs sitemap and includes all those URLs in the generated sitemap.xml. The fetch is cached for 24 hours (revalidate: 86400) to avoid hitting the docs site on every build.

@markdanial markdanial requested a review from artf November 19, 2025 20: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.

2 participants