Skip to content
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

sitemap_excludes support for regular expressions #97

Open
Koen1999 opened this issue Jan 19, 2025 · 1 comment
Open

sitemap_excludes support for regular expressions #97

Koen1999 opened this issue Jan 19, 2025 · 1 comment

Comments

@Koen1999
Copy link

Some pages that are automatically generated such as the _modules/ path contains source code that should preferably be excluded from the sitemap. To my understanding it is not possible to exclude these from the sitemap using sitemap_excludes without adding every single page to it manually. Is there a convenient way to exclude all of pages contained in a directory?

@jdillard
Copy link
Owner

Unfortunately not at this time, I can look at adding regex support to sitemap_excludes.

As a workaround until then, you might be able to dynamically generate the list of files in the conf.py.

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

No branches or pull requests

2 participants