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
Use the index directive as a source for search #6692
Comments
A non-python example, searching for |
There's also a bpo issue on that subject: https://bugs.python.org/issue42106 It provides more examples from the Python documentation
|
This would also be useful for the core CPython documentation. A |
Yeah, as discussed, this would be extremely useful for the CPython docs, as brought up in python/cpython#60075 , python/cpython#89541 , python/cpython#86272, python/cpython#86272 and probably others, so it would be fantastic if you could implement this. To be honest, it confuses me why the search index wouldn't include the...index...to begin with, heh. I was going to offer to help, but I'm sure you'd do a far better job than I would. If you do need something within my (limited) skillset, like testing this or reviewing docs, etc, let me know. Thanks! |
A draft implementation is at #10819. This issue suggests using the genindex source directly, whilst that is possible it ties to the builder a little too much for my liking. A |
Testing of the PR would be appreciated! A |
Is your feature request related to a problem? Please describe.
My problem is the search engine is not good at finding terms that are indexed, for example:
...
Describe the solution you'd like
I think using the global index as a source for the search engine is a good way to enhance this and allow people to manually boost a search result by using the bang of the index directive. (
.. index:: ! Python
).I can try to implement it, but I'm still not sure this is a good idea.
Generated Index can point to anchors, I'm not sure the current searchindex can hold them in its current state.
The text was updated successfully, but these errors were encountered: