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

Incompatibilities with search and Sphinx 5.x #8871

Closed
stsewd opened this issue Jan 31, 2022 · 3 comments
Closed

Incompatibilities with search and Sphinx 5.x #8871

stsewd opened this issue Jan 31, 2022 · 3 comments
Labels
Bug A bug Needed: design decision A core team decision is required

Comments

@stsewd
Copy link
Member

stsewd commented Jan 31, 2022

TL;DR: Sphinx is dropping jQuery sphinx-doc/sphinx#10028 and those changes break our custom server side search feature (SSS), and it also breaks the search page on our theme (with or without our SSS).

The first problems were reported at #8862.

Another approach

Another way to solve most of these problems is to stop relying on sphinx's Search object and create and display the elements by ourselves, the mkdocs implementation doesn't rely on any mkdocs internals to display the search results.
This way, if sphinx changes the internals of the Search object, we won't be affected.

A downside would be that the structure/classes of the containers wouldn't be dictated by sphinx anymore,
so if our structure is different from the one expected for that version of sphinx, the styles may look off if the theme doesn't play nice with our structure.

Related issues


Those are the issues I have found so far, additionally Sphinx will soon be dropping jQuery too (and we make heavy use of jQuery in our injected footer and friends).

@pradyunsg
Copy link

FWIW, this also affects Sphinx 4 sites.

@stsewd
Copy link
Member Author

stsewd commented Mar 7, 2022

@pradyunsg do you have a link to those projects? What are the problems present on 4.x?

@stsewd
Copy link
Member Author

stsewd commented Mar 16, 2022

We have deployed the fixes, search is working as expected on sphinx's master docs https://www.sphinx-doc.org/en/master/search.html?q=test

For search to work on our theme we only need to wait for sphinx-doc/sphinx#10153 to get merged.

@stsewd stsewd closed this as completed Mar 16, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug A bug Needed: design decision A core team decision is required
Projects
None yet
Development

No branches or pull requests

2 participants