Skip to content

Commit 23a2926

Browse files
committed
Docs: Update ReadTheDocs to v2
1 parent 50dfbe7 commit 23a2926

File tree

5 files changed

+74
-2
lines changed

5 files changed

+74
-2
lines changed

.readthedocs.yaml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
version: 2
2+
3+
build:
4+
os: ubuntu-22.04
5+
tools:
6+
python: "3.11"
7+
8+
# Build from the docs/ directory with Sphinx
9+
sphinx:
10+
configuration: docs/conf.py
11+
fail_on_warning: true
12+
13+
# Explicitly set the version of Python and its requirements
14+
python:
15+
install:
16+
- requirements: docs/requirements.txt

docs/conf.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
extensions = ["sphinx.ext.autodoc"]
3030

3131
# Add any paths that contain templates here, relative to this directory.
32-
templates_path = ["_templates"]
32+
templates_path = []
3333

3434
# List of patterns, relative to source directory, that match files and
3535
# directories to ignore when looking for source files.
@@ -53,7 +53,7 @@
5353
# Add any paths that contain custom static files (such as style sheets) here,
5454
# relative to this directory. They are copied after the builtin static files,
5555
# so a file named "default.css" will overwrite the builtin "default.css".
56-
html_static_path = ["_static"]
56+
html_static_path = []
5757

5858
# The master toctree document.
5959
master_doc = "index"

docs/requirements.in

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
sphinx<7.0.0

docs/requirements.txt

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
#
2+
# This file is autogenerated by pip-compile with Python 3.9
3+
# by the following command:
4+
#
5+
# pip-compile --resolver=backtracking requirements.in
6+
#
7+
alabaster==0.7.13
8+
# via sphinx
9+
babel==2.12.1
10+
# via sphinx
11+
certifi==2023.5.7
12+
# via requests
13+
charset-normalizer==3.1.0
14+
# via requests
15+
docutils==0.19
16+
# via sphinx
17+
idna==3.4
18+
# via requests
19+
imagesize==1.4.1
20+
# via sphinx
21+
importlib-metadata==6.6.0
22+
# via sphinx
23+
jinja2==3.1.2
24+
# via sphinx
25+
markupsafe==2.1.2
26+
# via jinja2
27+
packaging==23.1
28+
# via sphinx
29+
pygments==2.15.1
30+
# via sphinx
31+
requests==2.30.0
32+
# via sphinx
33+
snowballstemmer==2.2.0
34+
# via sphinx
35+
sphinx==6.2.1
36+
# via -r requirements.in
37+
sphinxcontrib-applehelp==1.0.4
38+
# via sphinx
39+
sphinxcontrib-devhelp==1.0.2
40+
# via sphinx
41+
sphinxcontrib-htmlhelp==2.0.1
42+
# via sphinx
43+
sphinxcontrib-jsmath==1.0.1
44+
# via sphinx
45+
sphinxcontrib-qthelp==1.0.3
46+
# via sphinx
47+
sphinxcontrib-serializinghtml==1.1.5
48+
# via sphinx
49+
urllib3==2.0.2
50+
# via requests
51+
zipp==3.15.0
52+
# via importlib-metadata

pyproject.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,9 @@ dynamic = [
5050
]
5151

5252
[project.optional-dependencies]
53+
docs = [
54+
"pip-tools>=6.13.0",
55+
]
5356
test = [
5457
"assertpy>=1.1",
5558
"beautifulsoup4>=4.11.1",

0 commit comments

Comments
 (0)