Skip to content

Commit 74346f0

Browse files
[8.0.x] Allow Sphinx 7.x (#12005)
Co-authored-by: Bruno Oliveira <[email protected]>
1 parent b7657b4 commit 74346f0

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

Diff for: doc/en/_templates/slim_searchbox.html

+2-3
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,10 @@
55
<div id="searchbox" style="display: none" role="search">
66
<div class="searchformwrapper">
77
<form class="search" action="{{ pathto('search') }}" method="get">
8-
<input type="text" name="q" aria-labelledby="searchlabel"
9-
placeholder="Search"/>
8+
<input type="text" name="q" aria-labelledby="searchlabel" autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false"/>
109
<input type="submit" value="{{ _('Go') }}" />
1110
</form>
1211
</div>
1312
</div>
14-
<script type="text/javascript">$('#searchbox').show(0);</script>
13+
<script>document.getElementById('searchbox').style.display = "block"</script>
1514
{%- endif %}

Diff for: doc/en/requirements.txt

+1-2
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,7 @@ pallets-sphinx-themes
22
pluggy>=1.2.0
33
pygments-pytest>=2.3.0
44
sphinx-removed-in>=0.2.0
5-
# In Sphinx 6 and 7, the search bar disappears; restrict this for now until we find a solution.
6-
sphinx>=5,<6
5+
sphinx>=7
76
sphinxcontrib-trio
87
sphinxcontrib-svg2pdfconverter
98
# Pin packaging because it no longer handles 'latest' version, which

0 commit comments

Comments
 (0)