Skip to content

Commit

Permalink
Make usage of sphinxcontrib-jquery (#241)
Browse files Browse the repository at this point in the history
Sphinx 6.x is removing jQuery. So, we need to manually add it.
  • Loading branch information
humitos authored Oct 25, 2022
1 parent 39f0e07 commit 52afd61
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 0 deletions.
5 changes: 5 additions & 0 deletions docs/requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,8 @@ sphinxcontrib-devhelp==1.0.2
# via sphinx
sphinxcontrib-htmlhelp==2.0.0
# via sphinx
sphinxcontrib-jquery==2.0.0
# via sphinx-hoverxref (pyproject.toml)
sphinxcontrib-jsmath==1.0.1
# via sphinx
sphinxcontrib-qthelp==1.0.3
Expand All @@ -119,3 +121,6 @@ urllib3==1.26.12
# via requests
wrapt==1.14.1
# via astroid

# The following packages are considered to be unsafe in a requirements file:
# setuptools
3 changes: 3 additions & 0 deletions hoverxref/extension.py
Original file line number Diff line number Diff line change
Expand Up @@ -397,6 +397,9 @@ def setup(app):
if f.endswith('.css') or f.endswith('.css_t'):
app.add_css_file(f.replace('.css_t', '.css'))

# Sphinx>=6 won't include jQuery anymore
app.setup_extension('sphinxcontrib.jquery')

return {
'version': __version__,
'parallel_read_safe': True,
Expand Down
1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ keywords=[
]
dependencies = [
"sphinx >=1.8",
"sphinxcontrib-jquery",
]
version = "1.2.0"
readme = "README.rst"
Expand Down

0 comments on commit 52afd61

Please sign in to comment.