feat(sitemap): add namespaces configuration option#14285
feat(sitemap): add namespaces configuration option#14285florian-lefebvre merged 10 commits intowithastro:mainfrom
Conversation
Add support for customizing XML namespaces in generated sitemaps through a new namespaces configuration option. This allows users to exclude unused namespaces like xmlns:news for cleaner sitemap files. - Add namespaces option to SitemapOptions type - Update schema validation for namespaces configuration - Implement namespace filtering in writeSitemap function - Add comprehensive tests for namespace configuration - Maintain backward compatibility with all namespaces enabled by default
🦋 Changeset detectedLatest commit: 7e2882c The changes in this PR will be included in the next version bump. Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
|
Thanks! This will need a changeset (minor), which details of what has changed. Treat this as the first version of the docs changes. This will need a docs PR too, because the options are documented in the main docs site. |
sarah11918
left a comment
There was a problem hiding this comment.
Thanks for adding a cool new feature, @jdcolombo ! Just a temporary block on this to let everyone know I'm here, and I'm reviewing the changeset and docs! 🙌
sarah11918
left a comment
There was a problem hiding this comment.
I think people are really going to be excited about removing XML bloat, @jdcolombo -- thank you for this feature!
Left some suggestions in the changeset for your consideration. You are the subject matter expert, and can feel free to adjust my proposed wording if I haven't got something exactly write. But you can use the style/format below as an idea of what we would typically include here. See what you think!
Co-authored-by: Sarah Rainsberger <5098874+sarah11918@users.noreply.github.com>
Co-authored-by: Sarah Rainsberger <5098874+sarah11918@users.noreply.github.com>
Co-authored-by: Sarah Rainsberger <5098874+sarah11918@users.noreply.github.com>
Co-authored-by: Sarah Rainsberger <5098874+sarah11918@users.noreply.github.com>
Add support for customizing XML namespaces in generated sitemaps through a new namespaces configuration option. This allows users to exclude unused namespaces like xmlns:news for cleaner sitemap files.
Changes
Testing
Docs