Skip to content

Incompatibilities with search and Sphinx 5.x #8871

@stsewd

Description

@stsewd

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).

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions