forked from docs/mapreduce-service
Update tox.ini && conf.py file
Performed-by: gitea/infra/otc-metadata/tools/generate_doc_confpy.py
This commit is contained in:
parent
eb952b6d23
commit
626bed7fdf
44
tox.ini
44
tox.ini
@ -34,6 +34,8 @@ commands =
|
||||
{[testenv:json-api-ref]commands}
|
||||
{[testenv:operation-guide]commands}
|
||||
{[testenv:json-operation-guide]commands}
|
||||
{[testenv:operation-guide-lts]commands}
|
||||
{[testenv:json-operation-guide-lts]commands}
|
||||
{[testenv:umn]commands}
|
||||
{[testenv:json-umn]commands}
|
||||
|
||||
@ -49,6 +51,7 @@ commands =
|
||||
mkdir -p doc/build/pdf
|
||||
{[testenv:api-ref-pdf-docs]commands}
|
||||
{[testenv:operation-guide-pdf-docs]commands}
|
||||
{[testenv:operation-guide-lts-pdf-docs]commands}
|
||||
{[testenv:umn-pdf-docs]commands}
|
||||
|
||||
|
||||
@ -138,6 +141,47 @@ commands =
|
||||
cp doc/component-operation-guide/build/pdf/mrs-component-operation-guide.pdf doc/build/pdf/
|
||||
|
||||
|
||||
# HTML version
|
||||
[testenv:operation-guide-lts]
|
||||
deps = -r{toxinidir}/doc/requirements.txt
|
||||
allowlist_externals =
|
||||
cp
|
||||
mkdir
|
||||
commands =
|
||||
sphinx-build -W --keep-going -b html doc/component-operation-guide-lts/source doc/build/html/operation-guide-lts
|
||||
|
||||
# Json version (for search)
|
||||
[testenv:json-operation-guide-lts]
|
||||
deps = -r{toxinidir}/doc/requirements.txt
|
||||
allowlist_externals =
|
||||
cp
|
||||
mkdir
|
||||
sh
|
||||
commands =
|
||||
sphinx-build -W --keep-going -b json doc/component-operation-guide-lts/source doc/build/json/operation-guide-lts
|
||||
# Drop data useless for the search - wrap it also with sh/xargs due to bugs
|
||||
# in tox
|
||||
sh -c "find doc/build/json -type d -and '(' -name '_images' -or -name '_static' -or -name '_sources' ')' -print0 | xargs -0 rm -rf"
|
||||
|
||||
# PDF version
|
||||
[testenv:operation-guide-lts-pdf-docs]
|
||||
deps = -r{toxinidir}/doc/requirements.txt
|
||||
allowlist_externals =
|
||||
rm
|
||||
mkdir
|
||||
make
|
||||
bash
|
||||
cp
|
||||
commands =
|
||||
rm -rf doc/component-operation-guide-lts/build/pdf
|
||||
sphinx-build -W --keep-going -b latex doc/component-operation-guide-lts/source doc/component-operation-guide-lts/build/pdf/
|
||||
bash -c "for f in doc/component-operation-guide-lts/build/pdf/*.gif; do convert $f $\{f/%gif/png\}; done || true"
|
||||
bash -c "for f in doc/component-operation-guide-lts/build/pdf/*.tex; do sed -iorig 's/\.gif//g' $f; done"
|
||||
make -C doc/component-operation-guide-lts/build/pdf
|
||||
mkdir -p doc/build/pdf
|
||||
cp doc/component-operation-guide-lts/build/pdf/mrs-component-operation-guide-lts.pdf doc/build/pdf/
|
||||
|
||||
|
||||
# HTML version
|
||||
[testenv:umn]
|
||||
deps = -r{toxinidir}/doc/requirements.txt
|
||||
|
Loading…
x
Reference in New Issue
Block a user