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

Add the ability for exclusions #2

Closed
jdillard opened this issue Aug 18, 2017 · 7 comments · Fixed by #91
Closed

Add the ability for exclusions #2

jdillard opened this issue Aug 18, 2017 · 7 comments · Fixed by #91

Comments

@jdillard
Copy link
Owner

jdillard commented Aug 18, 2017

Whether through a config value array, sitemap_exclude, and/or metadata on the page, :nositemap:, to be excluded.

@msbt
Copy link

msbt commented Feb 5, 2024

Hey @jdillard, awesome work on the extension, any chance that the sitemap_exclude feature is still somewhere on the roadmap?

@jdillard
Copy link
Owner Author

jdillard commented Feb 5, 2024

I can try and make an attempt at it "soon", but no promises. Were you thinking something like this would work for you?

sitemap_excludes = [
    "/path/to/page1.rst",
    "/path/to/page2.rst",
]

Where path's are relative to the source directory?

@msbt
Copy link

msbt commented Feb 5, 2024

Thanks for the quick reply! In theory yes, but for my use-case it's more about the search.html and genindex.html which are basically empty and recognized as soft 404s by search engines, so I would target system pages instead of rendered .rsts

@jdillard jdillard pinned this issue Feb 19, 2024
@kryskool
Copy link

Hi @msbt for sphinx basic theme and furo, the meta robot have no index value.

@msbt
Copy link

msbt commented Apr 21, 2024

@kryskool thanks, but I'd rather not have it in the sitemap in the first place, this piles up the "discovered but not indexed" pages in various analytics tools.

@jdillard
Copy link
Owner Author

@msbt How does this PR look? #91

@msbt
Copy link

msbt commented Apr 28, 2024

@jdillard oh wow, thanks so much for the addition and quick implementation, appreciate it a lot! PR looks great, exactly how I imagined it would work!

@jdillard jdillard unpinned this issue Apr 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants