-
-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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 ability to "skip" adding marked documentation to the search index #11280
Conversation
Do this by skipping any node marked with the class "noindex" when collecting search terms.
# Conflicts: # sphinx/search/__init__.py
@wlach this seems reasonable. I've taken the liberty to rename to Please could you add a CHANGES entry and a test? Ideally we would also document this somewhere. A |
Thanks @AA-Turner, I'll try to find some time to update this in the next couple weeks. |
@wlach quick ping in case you have time to look at this before 8.2. A |
Thanks for the ping. I did what you suggested. I thought of maybe adding something to the docs too, but I couldn't find an obvious place to put it. Should we maybe add a section on "search" at some point? |
I now realise we have no documentation for the HTML search feature! We should indeed add such a page. A |
Purpose
Sometimes when writing documentation that are sections that you do not want to be searchable (e.g. at our company we autogenerate some documentation with a header section which is quite generic and not useful when it comes up in search resuls)
Detail
The following is an example of use:
Works great. It seems in keeping with the general spirit of Docutils classes from what I can tell.