Skip to content
This repository was archived by the owner on Apr 9, 2025. It is now read-only.

Commit 52afd61

Browse files
authored
Make usage of sphinxcontrib-jquery (#241)
Sphinx 6.x is removing jQuery. So, we need to manually add it.
1 parent 39f0e07 commit 52afd61

File tree

3 files changed

+9
-0
lines changed

3 files changed

+9
-0
lines changed

docs/requirements.txt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,8 @@ sphinxcontrib-devhelp==1.0.2
103103
# via sphinx
104104
sphinxcontrib-htmlhelp==2.0.0
105105
# via sphinx
106+
sphinxcontrib-jquery==2.0.0
107+
# via sphinx-hoverxref (pyproject.toml)
106108
sphinxcontrib-jsmath==1.0.1
107109
# via sphinx
108110
sphinxcontrib-qthelp==1.0.3
@@ -119,3 +121,6 @@ urllib3==1.26.12
119121
# via requests
120122
wrapt==1.14.1
121123
# via astroid
124+
125+
# The following packages are considered to be unsafe in a requirements file:
126+
# setuptools

hoverxref/extension.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -397,6 +397,9 @@ def setup(app):
397397
if f.endswith('.css') or f.endswith('.css_t'):
398398
app.add_css_file(f.replace('.css_t', '.css'))
399399

400+
# Sphinx>=6 won't include jQuery anymore
401+
app.setup_extension('sphinxcontrib.jquery')
402+
400403
return {
401404
'version': __version__,
402405
'parallel_read_safe': True,

pyproject.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ keywords=[
1818
]
1919
dependencies = [
2020
"sphinx >=1.8",
21+
"sphinxcontrib-jquery",
2122
]
2223
version = "1.2.0"
2324
readme = "README.rst"

0 commit comments

Comments
 (0)