Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork7.9k
DOC: Enable Opensearch#24957
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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
DOC: Enable Opensearch#24957
Uh oh!
There was an error while loading.Please reload this page.
Conversation
Can we test that this works without deploying the docs or do we need to deploy? |
Not directly, but Sphinx created a correctOpenSearch xml file, so I guess it should work: <?xml version="1.0" encoding="UTF-8"?><OpenSearchDescriptionxmlns="http://a9.com/-/spec/opensearch/1.1/"> <ShortName>Matplotlib</ShortName> <Description>Search Matplotlib 3.7.0.dev1342+g0896385db6 documentation</Description> <InputEncoding>utf-8</InputEncoding> <Urltype="text/html"method="get"template="https://matplotlib.org/stable/search.html?q={searchTerms}"/> <LongName>Matplotlib 3.7.0.dev1342+g0896385db6 documentation</LongName> <Imageheight="16"width="16"type="image/x-icon">https://matplotlib.org/stable/_static/favicon.ico</Image> </OpenSearchDescription> (in the current, not working version, the template is |
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.
I see no harm in enabling this.
…957-on-v3.7.xBackport PR#24957 on branch v3.7.x (DOC: Enable Opensearch)
PR Summary
Fix
html_use_opensearch
in conf.py: the current value of'False'
is misinterpreted as the urlFalse
. If no OpenSearch description file should be created the value must be empty (default), but I think OpenSearch is a very handy feature, so I'd like to enable it.See alsohttps://www.sphinx-doc.org/en/master/usage/configuration.html#confval-html_use_opensearch.
Closesmatplotlib/mpl-sphinx-theme#56.
PR Checklist
Documentation and Tests
pytest
passes)Release Notes
.. versionadded::
directive in the docstring and documented indoc/users/next_whats_new/
.. versionchanged::
directive in the docstring and documented indoc/api/next_api_changes/
next_whats_new/README.rst
ornext_api_changes/README.rst