Skip to content

Commit f11e6c0

Browse files
authored
Allow Sphinx version 6 and add dependency for sphinxcontrib-jquery (readthedocs#1385)
* Allow Sphinx version 6 and add dependency for sphinxcontrib-jquery * Adds Sphinx 6.0b2 to Tox test matrix * Adds Sphinx 6 to relevant Circle CI pipelines * Build docs with Sphinx 6.0b2 * Use stable Sphinx 6.0.0
1 parent a87790a commit f11e6c0

File tree

5 files changed

+13
-6
lines changed

5 files changed

+13
-6
lines changed

.circleci/config.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,19 +65,21 @@ jobs:
6565
steps:
6666
- run-tox:
6767
version: py38
68+
sphinx-version: "17,18,20,21,22,23,24,30,31,32,33,34,35,40,41,42,43,44,45,50,51,52,60,latest"
6869
py39:
6970
docker:
7071
- image: 'cimg/python:3.9'
7172
steps:
7273
- run-tox:
7374
version: py39
75+
sphinx-version: "17,18,20,21,22,23,24,30,31,32,33,34,35,40,41,42,43,44,45,50,51,52,60,latest"
7476
py310:
7577
docker:
7678
- image: 'cimg/python:3.10'
7779
steps:
7880
- run-tox:
7981
version: py310
80-
sphinx-version: "42,43,44,45,50,51,52,latest"
82+
sphinx-version: "42,43,44,45,50,51,52,60,latest"
8183

8284
workflows:
8385
version: 2

docs/requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
sphinx>=3.0
1+
sphinx==6.0.0

setup.cfg

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,9 @@ zip_safe = False
4444
packages = sphinx_rtd_theme
4545
python_requires = >=2.7,!=3.0.*,!=3.1.*,!=3.2.*,!=3.3.*
4646
install_requires =
47-
sphinx >=1.6,<6
47+
sphinx >=1.6,<7
4848
docutils <0.19
49+
sphinxcontrib-jquery >=3.0.0
4950
tests_require =
5051
pytest
5152

src/theme.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
// jQuery is included via the sphinxcontrib-jquery extension that we depend on
12
var jQuery = (typeof(window) != 'undefined') ? window.jQuery : require('jquery');
23

34
// Sphinx theme nav state

tox.ini

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,14 @@
22
envlist =
33
# Python 2.7 support was removed in Sphinx 2
44
py{27}-sphinx{17,18}{-html4,-html5,}{-qa,}
5-
py{36,37,38,39}-sphinx{17,18,20,21,22,23,24,30,31,32,33,34,35,40,41,42,43,44,45,50,51,52,latest}{-html4,-html5,}{-qa,}
5+
py{36,37,38,39}-sphinx{17,18,20,21,22,23,24,30,31,32,33,34,35,40,41,42,43,44,45,50,51,52}{-html4,-html5,}{-qa,}
66
# Python 3.10 working from Sphinx 4.2 and up
7-
py{310}-sphinx{42,43,44,45,50,51,52}{-html4,-html5,latest}{-qa,}
7+
py{310}-sphinx{42,43,44,45,50,51,52,latest}{-html4,-html5}{-qa,}
8+
# Sphinx 6+ has simplified docutils and Python support
9+
py{38,39,10}-sphinx{60}{-html5,}{-qa,}
810

911
[testenv]
10-
setev =
12+
setenv =
1113
LANG=C
1214
deps =
1315
.
@@ -35,6 +37,7 @@ deps =
3537
sphinx50: Sphinx>=5.0,<5.1
3638
sphinx51: Sphinx>=5.1,<5.2
3739
sphinx52: Sphinx>=5.2,<5.3
40+
sphinx60: Sphinx==6.0.0
3841
# All these Sphinx versions actually break since docutils 0.18, so we need to add this upper bound
3942
# Projects using these Sphinx versions will have to do the same
4043
# See: https://github.com/readthedocs/sphinx_rtd_theme/pull/1304

0 commit comments

Comments
 (0)