Skip to content

Commit cd69e4d

Browse files
Merge pull request #888 from samdoran/docs/pin-requirements
Add configuration for Read the Docs build and pin docs requirements Due to a recent release of docutils 0.18, our doc build is broken. Add configuration for Read the Docs and pip docs requirements to ensure builds will not spontaneously break in the future. Update tox configuration to match the build done by Read the Docs. Reviewed-by: David Shrewsbury <None> Reviewed-by: Sviatoslav Sydorenko <webknjaz+github/[email protected]> Reviewed-by: Sam Doran <[email protected]> Reviewed-by: Shane McDonald <[email protected]> Reviewed-by: None <None>
2 parents 6be7887 + c5b3637 commit cd69e4d

File tree

4 files changed

+59
-4
lines changed

4 files changed

+59
-4
lines changed

.readthedocs.yaml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
version: 2
2+
3+
formats:
4+
- epub
5+
- pdf
6+
7+
build:
8+
os: ubuntu-20.04
9+
tools:
10+
python: '3.10'
11+
12+
sphinx:
13+
builder: dirhtml
14+
configuration: docs/conf.py
15+
fail_on_warning: true
16+
17+
python:
18+
install:
19+
- requirements: docs/requirements.txt

docs/requirements.in

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
ansible-core
2+
pbr
3+
pexpect
4+
six
5+
sphinx

docs/requirements.txt

Lines changed: 33 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,33 @@
1-
pbr
2-
sphinx
3-
ansible-core
1+
alabaster==0.7.12
2+
ansible-core==2.11.6
3+
Babel==2.9.1
4+
certifi==2021.10.8
5+
cffi==1.15.0
6+
charset-normalizer==2.0.7
7+
cryptography==35.0.0
8+
docutils==0.17.1
9+
idna==3.3
10+
imagesize==1.2.0
11+
Jinja2==3.0.2
12+
MarkupSafe==2.0.1
13+
packaging==21.0
14+
pbr==5.6.0
15+
pexpect==4.8.0
16+
ptyprocess==0.7.0
17+
pycparser==2.20
18+
Pygments==2.10.0
19+
pyparsing==3.0.1
20+
pytz==2021.3
21+
PyYAML==6.0
22+
requests==2.26.0
23+
resolvelib==0.5.5
24+
six==1.16.0
25+
snowballstemmer==2.1.0
26+
Sphinx==4.2.0
27+
sphinxcontrib-applehelp==1.0.2
28+
sphinxcontrib-devhelp==1.0.2
29+
sphinxcontrib-htmlhelp==2.0.0
30+
sphinxcontrib-jsmath==1.0.1
31+
sphinxcontrib-qthelp==1.0.3
32+
sphinxcontrib-serializinghtml==1.1.5
33+
urllib3==1.26.7

tox.ini

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,5 +27,6 @@ commands=
2727
[testenv:docs]
2828
description = Build documentation
2929
deps = -r{toxinidir}/docs/requirements.txt
30+
skip_install = True
3031
commands =
31-
sphinx-build -E -W -d docs/build/doctrees -b html docs docs/build/html
32+
sphinx-build -T -E -W --keep-going {tty:--color} -j auto -d docs/build/doctrees -b html docs docs/build/html

0 commit comments

Comments
 (0)