Update Docs configuration
Reviewed-by: gtema <artem.goncharov@gmail.com> Co-authored-by: Goncharov, Artem <artem.goncharov@t-systems.com> Co-committed-by: Goncharov, Artem <artem.goncharov@t-systems.com>
This commit is contained in:
parent
00bcaaa10b
commit
584eb3f81c
46
tox.ini
46
tox.ini
@ -22,20 +22,26 @@ deps =
|
|||||||
commands = {posargs}
|
commands = {posargs}
|
||||||
|
|
||||||
[testenv:docs]
|
[testenv:docs]
|
||||||
|
deps = -r{toxinidir}/doc/requirements.txt
|
||||||
commands =
|
commands =
|
||||||
{[testenv:api-ref]commands}
|
{[testenv:api-ref]commands}
|
||||||
|
{[testenv:json-api-ref]commands}
|
||||||
{[testenv:umn]commands}
|
{[testenv:umn]commands}
|
||||||
|
{[testenv:json-umn]commands}
|
||||||
|
|
||||||
[testenv:docs-pdf]
|
[testenv:docs-pdf]
|
||||||
whitelist_externals =
|
deps = -r{toxinidir}/doc/requirements.txt
|
||||||
|
allowlist_externals =
|
||||||
mkdir
|
mkdir
|
||||||
commands =
|
commands =
|
||||||
mkdir -p doc/build/pdf
|
mkdir -p doc/build/pdf
|
||||||
{[testenv:api-ref-pdf-docs]commands}
|
{[testenv:api-ref-pdf-docs]commands}
|
||||||
|
|
||||||
|
|
||||||
|
# HTML version
|
||||||
[testenv:api-ref]
|
[testenv:api-ref]
|
||||||
whitelist_externals =
|
deps = -r{toxinidir}/doc/requirements.txt
|
||||||
|
allowlist_externals =
|
||||||
cp
|
cp
|
||||||
mkdir
|
mkdir
|
||||||
commands =
|
commands =
|
||||||
@ -43,8 +49,24 @@ commands =
|
|||||||
mkdir -p api-ref/build/html
|
mkdir -p api-ref/build/html
|
||||||
cp -av doc/build/html/api-ref api-ref/build/html
|
cp -av doc/build/html/api-ref api-ref/build/html
|
||||||
|
|
||||||
|
# Json version (for search)
|
||||||
|
[testenv:json-api-ref]
|
||||||
|
deps = -r{toxinidir}/doc/requirements.txt
|
||||||
|
allowlist_externals =
|
||||||
|
cp
|
||||||
|
mkdir
|
||||||
|
find
|
||||||
|
commands =
|
||||||
|
sphinx-build -W --keep-going -b json api-ref/source doc/build/json/api-ref
|
||||||
|
# Drop data useless for the search
|
||||||
|
find doc/build/json -type d -and ( -name '_images' -or -name '_static' -or -name '_sources' ) -exec rm {:} ;
|
||||||
|
mkdir -p api-ref/build/json
|
||||||
|
cp -av doc/build/json/api-ref api-ref/build/json
|
||||||
|
|
||||||
|
# PDF version
|
||||||
[testenv:api-ref-pdf-docs]
|
[testenv:api-ref-pdf-docs]
|
||||||
whitelist_externals =
|
deps = -r{toxinidir}/doc/requirements.txt
|
||||||
|
allowlist_externals =
|
||||||
rm
|
rm
|
||||||
mkdir
|
mkdir
|
||||||
make
|
make
|
||||||
@ -60,8 +82,10 @@ commands =
|
|||||||
cp api-ref/build/pdf/cce-api-ref.pdf doc/build/pdf/
|
cp api-ref/build/pdf/cce-api-ref.pdf doc/build/pdf/
|
||||||
|
|
||||||
|
|
||||||
|
# HTML version
|
||||||
[testenv:umn]
|
[testenv:umn]
|
||||||
whitelist_externals =
|
deps = -r{toxinidir}/doc/requirements.txt
|
||||||
|
allowlist_externals =
|
||||||
cp
|
cp
|
||||||
mkdir
|
mkdir
|
||||||
commands =
|
commands =
|
||||||
@ -69,4 +93,18 @@ commands =
|
|||||||
mkdir -p umn/build/html
|
mkdir -p umn/build/html
|
||||||
cp -av doc/build/html/umn umn/build/html
|
cp -av doc/build/html/umn umn/build/html
|
||||||
|
|
||||||
|
# Json version (for search)
|
||||||
|
[testenv:json-umn]
|
||||||
|
deps = -r{toxinidir}/doc/requirements.txt
|
||||||
|
allowlist_externals =
|
||||||
|
cp
|
||||||
|
mkdir
|
||||||
|
find
|
||||||
|
commands =
|
||||||
|
sphinx-build -W --keep-going -b json umn/source doc/build/json/umn
|
||||||
|
# Drop data useless for the search
|
||||||
|
find doc/build/json -type d -and ( -name '_images' -or -name '_static' -or -name '_sources' ) -exec rm {:} ;
|
||||||
|
mkdir -p umn/build/json
|
||||||
|
cp -av doc/build/json/umn umn/build/json
|
||||||
|
|
||||||
|
|
||||||
|
@ -95,9 +95,4 @@ html_title = "Cloud Container Service - User Guide"
|
|||||||
html_static_path = ['_static']
|
html_static_path = ['_static']
|
||||||
|
|
||||||
# -- Options for PDF output --------------------------------------------------
|
# -- Options for PDF output --------------------------------------------------
|
||||||
latex_documents = [
|
latex_documents = []
|
||||||
('index',
|
|
||||||
'None.tex',
|
|
||||||
u'Cloud Container Service - User Guide',
|
|
||||||
u'OpenTelekomCloud', 'manual'),
|
|
||||||
]
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user