Skip to content

Commit 01d5bcf

Browse files
authored
Note minimum requirements for Sphinx (#216)
1 parent 3d34296 commit 01d5bcf

File tree

4 files changed

+14
-7
lines changed

4 files changed

+14
-7
lines changed

.pre-commit-config.yaml

+7-7
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
11
repos:
22
- repo: https://github.com/astral-sh/ruff-pre-commit
3-
rev: v0.6.8
3+
rev: v0.9.3
44
hooks:
55
- id: ruff
66
args: [--exit-non-zero-on-fix]
77

88
- repo: https://github.com/psf/black-pre-commit-mirror
9-
rev: 24.8.0
9+
rev: 24.10.0
1010
hooks:
1111
- id: black
1212

1313
- repo: https://github.com/pre-commit/pre-commit-hooks
14-
rev: v4.6.0
14+
rev: v5.0.0
1515
hooks:
1616
- id: check-case-conflict
1717
- id: check-merge-conflict
@@ -22,24 +22,24 @@ repos:
2222
- id: trailing-whitespace
2323

2424
- repo: https://github.com/python-jsonschema/check-jsonschema
25-
rev: 0.29.2
25+
rev: 0.31.0
2626
hooks:
2727
- id: check-dependabot
2828
- id: check-github-workflows
2929

3030
- repo: https://github.com/rhysd/actionlint
31-
rev: v1.7.2
31+
rev: v1.7.7
3232
hooks:
3333
- id: actionlint
3434

3535
- repo: https://github.com/tox-dev/pyproject-fmt
36-
rev: 2.2.4
36+
rev: v2.5.0
3737
hooks:
3838
- id: pyproject-fmt
3939
args: [--max-supported-python=3.13]
4040

4141
- repo: https://github.com/abravalheri/validate-pyproject
42-
rev: v0.20.2
42+
rev: v0.23
4343
hooks:
4444
- id: validate-pyproject
4545

README.md

+1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
# Python Docs Sphinx Theme
22

33
This is the theme for the Python documentation.
4+
It requires Python 3.9 or newer and Sphinx 3.4 or newer.
45

56
Note that when adopting this theme, you're also borrowing an element of the
67
trust and credibility established by the CPython core developers over the

pyproject.toml

+4
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,10 @@ classifiers = [
2828
"Topic :: Documentation",
2929
"Topic :: Software Development :: Documentation",
3030
]
31+
dependencies = [
32+
"sphinx>=3.4",
33+
]
34+
3135
urls.Code = "https://github.com/python/python-docs-theme"
3236
urls.Download = "https://pypi.org/project/python-docs-theme/"
3337
urls.Homepage = "https://github.com/python/python-docs-theme/"

python_docs_theme/__init__.py

+2
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,8 @@ def _html_page_context(
5353

5454

5555
def setup(app):
56+
app.require_sphinx("3.4")
57+
5658
current_dir = os.path.abspath(os.path.dirname(__file__))
5759
app.add_html_theme("python_docs_theme", current_dir)
5860

0 commit comments

Comments
 (0)