Skip to content

Commit

Permalink
Allow Sphinx 7.x (pytest-dev#12002)
Browse files Browse the repository at this point in the history
Thanks to pytest-dev#11988 (comment), the problem was our custom template.

The solution was to copy the template from Sphinx 7 and remove the header.
  • Loading branch information
nicoddemus authored and flying-sheep committed Apr 9, 2024
1 parent ce41664 commit 968402a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
5 changes: 2 additions & 3 deletions doc/en/_templates/slim_searchbox.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,10 @@
<div id="searchbox" style="display: none" role="search">
<div class="searchformwrapper">
<form class="search" action="{{ pathto('search') }}" method="get">
<input type="text" name="q" aria-labelledby="searchlabel"
placeholder="Search"/>
<input type="text" name="q" aria-labelledby="searchlabel" autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false"/>
<input type="submit" value="{{ _('Go') }}" />
</form>
</div>
</div>
<script type="text/javascript">$('#searchbox').show(0);</script>
<script>document.getElementById('searchbox').style.display = "block"</script>
{%- endif %}
3 changes: 1 addition & 2 deletions doc/en/requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,7 @@ pallets-sphinx-themes
pluggy>=1.2.0
pygments-pytest>=2.3.0
sphinx-removed-in>=0.2.0
# In Sphinx 6 and 7, the search bar disappears; restrict this for now until we find a solution.
sphinx>=5,<6
sphinx>=7
sphinxcontrib-trio
sphinxcontrib-svg2pdfconverter
# Pin packaging because it no longer handles 'latest' version, which
Expand Down

0 comments on commit 968402a

Please sign in to comment.