Support multi-instance sitemaps plugins
complete
Joshua Chen
complete
Jake Witz
We would also use
ignorePatterns
differently between doc instances, would that be supported within the sitemap?Joshua Chen
Jake Witz: Yes, that's also the major reason I think this makes sense—we should be able to build two sitemaps containing different parts of the site!
Jake Witz
Ah I see, I did not know that google ignores
priority
. That's the main use case here..When running a multi-instance site, we want to promote one of our instances over the other for search indexes. We would have used this feature to assign a higher priority to one of these instances so that it appears before our other instance.
So half of our sitemap would include docs with a priority of 0.8, while the other half would include docs with a weight of 0.3
Sébastien Lorber
Can you explain how supporting multi-instance sitemaps plugin would allow you to weight docs differently according to their doc ID?
Can you give concrete sitemaps examples that you'd like to obtain?
What do you mean by "weight". Note Google ignores priority/changefreq attributes.
Please explain your use-case better here and see my comment: https://github.com/facebook/docusaurus/pull/7469
Joshua Chen
in progress
Joshua Chen
planned
It makes sense.
All we need to support is writing sitemap with a name other than
sitemap.xml
. Currently, two plugin instances would write the same file and overwrite each other.