Added sphinx-minify to tox
All checks were successful
gl/check check status: success (2b99369390fd275fce3ca6e82b24b9080255cc6b)
All checks were successful
gl/check check status: success (2b99369390fd275fce3ca6e82b24b9080255cc6b)
This commit is contained in:
parent
96ffbc1403
commit
2b99369390
@ -4,4 +4,5 @@ otcdocstheme # Apache-2.0
|
||||
reno>=3.1.0 # Apache-2.0
|
||||
|
||||
otc-sphinx-directives>=0.1.0
|
||||
sphinx-minify>=0.0.1 # Apache-2.0
|
||||
git+https://gitea.eco.tsi-dev.otc-service.com/infra/otc-metadata-swiss.git#egg=otc_metadata
|
||||
|
@ -34,8 +34,9 @@ allowlist_externals =
|
||||
rm
|
||||
sphinx-build
|
||||
commands =
|
||||
rm -rf doc/build/html doc/build/doctrees
|
||||
sphinx-build -a -E -W -d doc/build/doctrees -b html doc/source doc/build/html
|
||||
rm -rf doc/build/html doc/build/html_temp doc/build/doctrees
|
||||
sphinx-build -a -E -W -d doc/build/doctrees -b html doc/source doc/build/html_temp
|
||||
sphinx-minify --input-directory doc/build/html_temp/ --output-directory doc/build/html
|
||||
{%- for doc in docs %}
|
||||
{[testenv:{{ doc.type }}]commands}
|
||||
{[testenv:json-{{ doc.type }}]commands}
|
||||
@ -66,14 +67,17 @@ allowlist_externals =
|
||||
cp
|
||||
mkdir
|
||||
commands =
|
||||
sphinx-build -W --keep-going -b html {{ loc }}/source doc/build/html/{{ doc.type }}
|
||||
sphinx-build -W --keep-going -b html {{ loc }}/source doc/build/html_temp/{{ doc.type }}
|
||||
{%- if doc.type == 'api-ref' %}
|
||||
sphinx-minify --input-directory doc/build/html_temp/api-ref --output-directory doc/build/html/api-ref
|
||||
mkdir -p api-ref/build/html
|
||||
cp -av doc/build/html/api-ref api-ref/build/html
|
||||
{%- elif doc.type == 'umn' %}
|
||||
sphinx-minify --input-directory doc/build/html_temp/umn --output-directory doc/build/html/umn
|
||||
mkdir -p umn/build/html
|
||||
cp -av doc/build/html/umn umn/build/html
|
||||
{%- elif doc.type == 'dev-guide' %}
|
||||
sphinx-minify --input-directory doc/build/html_temp/dev-guide --output-directory doc/build/html/dev-guide
|
||||
mkdir -p dev_guide/build/html
|
||||
cp -av doc/build/html/dev-guide dev_guide/build/html
|
||||
{%- endif %}
|
||||
|
Loading…
x
Reference in New Issue
Block a user