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
docs: update to sphinx 5.1 #565
Conversation
2941bb5
to
37ef906
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This currently has three (mostly cosmetic) issues on the search results page caused by upstream bugs in sphinx 5.0, one of which was fixed in 8841d6a. The other two might require reintroducing a patched searchtools.js, depends on how soon a new version would be released; I'll open an issue and see what we can do in the meantime.
edit: sphinx-doc/sphinx#10548
now included upstream: sphinx-doc/sphinx@262240d
jquery and _.js will be removed in sphinx 6.0
contrary to the docs, this is not true by default
8841d6a
to
a097f33
Compare
`result` has 6 elements, not 5. Doesn't matter at runtime, but might as well do it right
This reverts commit a097f33. no longer necessary with fixed searchtools.js
Since sphinx no longer uses jQuery's `ready`, we'd be racing two `DOMContentLoaded` events, with sphinx's listener always firing first and invoking the search scorer without us having set a `pattern`. Instead, we now initialize `pattern` when we need it instead of assuming that it was set already.
now waiting on sphinx-doc/sphinx#10657 before updating. |
We should read through the the changelog and see if there are any other options we can benefit from aside from removing the patched searchtools. |
As far as I can tell, there's only sphinx-doc/sphinx@95b8183 which may help avoid this (technically a workaround): Line 248 in 0fc40e6
Additionally, there's readthedocs/sphinx-hoverxref@0250263 which was added in hoverxref v1.1.2, we'll have to update our custom css to use the new selectors. May also want to consider using |
Summary
depends on #564
Checklist
task lint
task pyright