Skip to content

Commit

Permalink
fix: Initialize of builders accepts app and env for Sphinx>5.1
Browse files Browse the repository at this point in the history
  • Loading branch information
attakei committed Aug 1, 2022
1 parent 6a99bcc commit e20cabd
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/main.yml
Expand Up @@ -15,7 +15,7 @@ jobs:
max-parallel: 4
matrix:
python-version: [3.6, 3.7, 3.8, 3.9, '3.10']
sphinx-version: ['>=3.0.0,<4.0.0', '>=4.0.0,<5.0.0', '>=5.0.0,<6.0.0']
sphinx-version: ['>=3.0.0,<4.0.0', '>=4.0.0,<5.0.0', '>=5.0.0,<5.1.0', '>=5.1.0,<6.0.0']
exclude:
# Old major version does not support python 3.10
- python-version: '3.10'
Expand Down
4 changes: 2 additions & 2 deletions sphinx_revealjs/builders.py
Expand Up @@ -31,8 +31,8 @@ class RevealjsHTMLBuilder(StandaloneHTMLBuilder):
search = False

def __init__(self, app, env: BuildEnvironment = None): # noqa: D107
# TODO: Remove it if this not need support Sphinx 4.x and older
if sphinx_versoin[0] < 5:
# TODO: Remove it if this not need support Sphinx 5.1.0 and older
if sphinx_versoin[0] <= 4 or sphinx_versoin[:2] == (5, 0):
super().__init__(app)
else:
super().__init__(app, env)
Expand Down

0 comments on commit e20cabd

Please sign in to comment.