-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add support for custom sitemap.xml generated by the user #6938
Comments
I just tried it, looks good but doesn't produce the |
I just realized that having the possibility to customize the |
This is not a workaround. It's the more comprehensive solution actually :) Customization of crawling happens in So, my updated recommendation is to include all the URLs in the sitemap, while giving users the option to customize the I shared a suggested approach in #6903 |
@Pradhvan thanks for your interest in here! Yeah, considering that we already support custom I'm closing this issue for now and we can re-visit if someone comes with more strong opinions about why this is needed and using the robots.txt file is not enough. |
Our current
sitemap.xml
covers the most basic case. Although, there are users with other needs that require a more customized sitemap.xml.We should implement the same mechanism that we do for custom
404.html
, where we provide the most basic one (Maze found) with the ability to change it by adding your own404.html
to the output generated by Sphinx.So, we could check first for
sitemap.xml
in the default version and serve that one as is if it exists. Here, extensions likesphinx-sitemap
may be a great help for the user.This would be a better direction (an easier to implement) than lock all the users to have exactly the same sitemap.xml.
Reference: #6903 #5391 #6841
The text was updated successfully, but these errors were encountered: