Skip to content

Commit 94703cc

Browse files
oraNodwebknjaz
andauthored
Pip compile docsite requirements (#14449)
Co-authored-by: Sviatoslav Sydorenko <[email protected]> Co-authored-by: Sviatoslav Sydorenko <[email protected]>
1 parent 6cdea19 commit 94703cc

File tree

4 files changed

+97
-4
lines changed

4 files changed

+97
-4
lines changed

.pip-tools.toml

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
[tool.pip-tools]
2+
resolver = "backtracking"
3+
allow-unsafe = true
4+
strip-extras = true
5+
quiet = true

docs/docsite/requirements.in

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
# This requirements file is used for AWX latest doc builds.
2+
3+
sphinx # Tooling to build HTML from RST source.
4+
sphinx-ansible-theme # Ansible community theme for Sphinx doc builds.
5+
docutils # Tooling for RST processing and the swagger extension.
6+
Jinja2 # Requires investiation. Possibly inherited from previous repo with a custom theme.
7+
PyYaml # Requires investigation. Possibly used as tooling for swagger API reference content.

docs/docsite/requirements.txt

+72-3
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,74 @@
1+
#
2+
# This file is autogenerated by pip-compile with Python 3.11
3+
# by the following command:
4+
#
5+
# pip-compile --allow-unsafe --output-file=docs/docsite/requirements.txt --strip-extras docs/docsite/requirements.in
6+
#
7+
alabaster==0.7.13
8+
# via sphinx
9+
ansible-pygments==0.1.1
10+
# via sphinx-ansible-theme
11+
babel==2.12.1
12+
# via sphinx
13+
certifi==2023.7.22
14+
# via requests
15+
charset-normalizer==3.2.0
16+
# via requests
17+
docutils==0.16
18+
# via
19+
# -r docs/docsite/requirements.in
20+
# sphinx
21+
# sphinx-rtd-theme
22+
idna==3.4
23+
# via requests
24+
imagesize==1.4.1
25+
# via sphinx
26+
jinja2==3.0.3
27+
# via
28+
# -r docs/docsite/requirements.in
29+
# sphinx
30+
markupsafe==2.1.3
31+
# via jinja2
32+
packaging==23.1
33+
# via sphinx
34+
pygments==2.16.1
35+
# via
36+
# ansible-pygments
37+
# sphinx
38+
pyyaml==6.0.1
39+
# via -r docs/docsite/requirements.in
40+
requests==2.31.0
41+
# via sphinx
42+
snowballstemmer==2.2.0
43+
# via sphinx
144
sphinx==5.1.1
45+
# via
46+
# -r docs/docsite/requirements.in
47+
# sphinx-ansible-theme
48+
# sphinx-rtd-theme
49+
# sphinxcontrib-applehelp
50+
# sphinxcontrib-devhelp
51+
# sphinxcontrib-htmlhelp
52+
# sphinxcontrib-jquery
53+
# sphinxcontrib-qthelp
54+
# sphinxcontrib-serializinghtml
255
sphinx-ansible-theme==0.9.1
3-
docutils==0.16
4-
Jinja2<3.1
5-
PyYaml
56+
# via -r docs/docsite/requirements.in
57+
sphinx-rtd-theme==1.3.0
58+
# via sphinx-ansible-theme
59+
sphinxcontrib-applehelp==1.0.7
60+
# via sphinx
61+
sphinxcontrib-devhelp==1.0.5
62+
# via sphinx
63+
sphinxcontrib-htmlhelp==2.0.4
64+
# via sphinx
65+
sphinxcontrib-jquery==4.1
66+
# via sphinx-rtd-theme
67+
sphinxcontrib-jsmath==1.0.1
68+
# via sphinx
69+
sphinxcontrib-qthelp==1.0.6
70+
# via sphinx
71+
sphinxcontrib-serializinghtml==1.1.9
72+
# via sphinx
73+
urllib3==2.0.4
74+
# via requests

tox.ini

+13-1
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,20 @@ commands =
1919
select = F401,F402,F821,F823,F841,F811,E265,E266,F541,W605,E722,F822,F523,W291,F405
2020
exclude = awx/ui/node_modules,awx/ui/node_modules,env,awx_collection_build
2121

22+
[testenv:pip-compile-docs]
23+
description = Compile docs build lockfiles
24+
deps =
25+
# pip-tools config file support was introduced in v7
26+
pip-tools >= 7
27+
commands =
28+
{envpython} -m piptools compile \
29+
--output-file=docs/docsite/requirements.txt \
30+
docs/docsite/requirements.in
31+
2232
[testenv:docs]
2333
description = Build documentation
24-
deps = -r{toxinidir}/docs/docsite/requirements.txt
34+
deps =
35+
-r{toxinidir}/docs/docsite/requirements.in
36+
-c{toxinidir}/docs/docsite/requirements.txt
2537
commands =
2638
sphinx-build -T -E -W -n --keep-going {tty:--color} -j auto -c docs/docsite -d docs/docsite/build/doctrees -b html docs/docsite/rst docs/docsite/build/html

0 commit comments

Comments
 (0)