sphinx
sphinx copied to clipboard
Search does not find some inline code
Describe the bug
When searching the RTD of the WarpX project, sometimes no results are found even though there are matching parts of the documentation but the string is inside a code-block/region.
How to Reproduce
For example, the search for BeamRelevant yields no results:
https://warpx.readthedocs.io/en/latest/search.html?q=BeamRelevant&check_keywords=yes&area=default
However, there is a matching string here
https://warpx.readthedocs.io/en/latest/usage/parameters.html

This search, on the other hand, yields a result and the match is inside inline code https://warpx.readthedocs.io/en/latest/search.html?q=ParticleHistogram&check_keywords=yes&area=default#
Expected behavior
I would expect to be able to find all matching documentation, even when inside a code block.
Your project
https://github.com/ECP-WarpX/WarpX
Screenshots
No response
OS
Mac & Linux
Python version
3.7
Sphinx version
5.1.1
Sphinx extensions
breathe-4.34.0, docutils-0.16, sphinxcontrib-applehelp-1.0.2, sphinxcontrib-devhelp-1.0.2, sphinxcontrib-htmlhelp-2.0.0, sphinxcontrib-jsmath-1.0.1, sphinxcontrib-qthelp-1.0.3
Extra tools
No response
Additional context
No response