Build pdf docs
Add a new pdf-docs environment to enable PDF build. Change-Id: I59bdc7cf339b022458b3b0d1fa3b694b7998c20f
This commit is contained in:
parent
62fdb73dae
commit
1d1f28a256
@ -88,6 +88,17 @@ latex_documents = [
|
|||||||
),
|
),
|
||||||
]
|
]
|
||||||
|
|
||||||
|
# Disable usage of xindy https://bugzilla.redhat.com/show_bug.cgi?id=1643664
|
||||||
|
latex_use_xindy = False
|
||||||
|
|
||||||
|
latex_domain_indices = False
|
||||||
|
|
||||||
|
latex_elements = {
|
||||||
|
'makeindex': '',
|
||||||
|
'printindex': '',
|
||||||
|
'preamble': r'\setcounter{tocdepth}{3}',
|
||||||
|
}
|
||||||
|
|
||||||
# openstackdocstheme options
|
# openstackdocstheme options
|
||||||
repository_name = 'openstack/python-watcherclient'
|
repository_name = 'openstack/python-watcherclient'
|
||||||
bug_project = 'python-watcherclient'
|
bug_project = 'python-watcherclient'
|
||||||
|
12
tox.ini
12
tox.ini
@ -48,6 +48,18 @@ deps =
|
|||||||
-r{toxinidir}/doc/requirements.txt
|
-r{toxinidir}/doc/requirements.txt
|
||||||
commands = python setup.py build_sphinx
|
commands = python setup.py build_sphinx
|
||||||
|
|
||||||
|
[testenv:pdf-docs]
|
||||||
|
basepython = python3
|
||||||
|
envdir = {toxworkdir}/docs
|
||||||
|
deps = {[testenv:docs]deps}
|
||||||
|
whitelist_externals =
|
||||||
|
rm
|
||||||
|
make
|
||||||
|
commands =
|
||||||
|
rm -rf doc/build/pdf
|
||||||
|
sphinx-build -W -b latex doc/source doc/build/pdf
|
||||||
|
make -C doc/build/pdf
|
||||||
|
|
||||||
[testenv:debug]
|
[testenv:debug]
|
||||||
basepython = python3
|
basepython = python3
|
||||||
commands = oslo_debug_helper -t watcherclient/tests/unit {posargs}
|
commands = oslo_debug_helper -t watcherclient/tests/unit {posargs}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user