generate monasca pdf documentation

https://storyboard.openstack.org/#!/story/2006097

Change-Id: Ia915b535cee5f80fe7c7bcc10c7c87ca3de3bc14
This commit is contained in:
agreentree 2019-08-29 11:48:42 -06:00 committed by Allan Greentree
parent 3068f55d05
commit 1f9ef03828
3 changed files with 22 additions and 2 deletions

View File

@ -216,7 +216,7 @@ latex_elements = {
# (source start file, target name, title,
# author, documentclass [howto, manual, or own class]).
latex_documents = [
(master_doc, 'MonitoringApi.tex', u'Monasca Documentation',
(master_doc, 'doc-monasca-api.tex', u'Monasca Documentation',
[author], 'manual'),
]
@ -238,8 +238,16 @@ latex_documents = [
#latex_appendices = []
# If false, no module index is generated.
#latex_domain_indices = True
latex_domain_indices = False
latex_elements = {
'makeindex': '',
'printindex': '',
'preamble': r'\setcounter{tocdepth}{3}',
}
# Disable usage of xindy https://bugzilla.redhat.com/show_bug.cgi?id=1643664
latex_use_xindy = False
# -- Options for manual page output ---------------------------------------

View File

@ -124,6 +124,7 @@ Configuration
admin/index
cli/index
configuration/sample
.. only:: html
glossary
install/index
user/index

11
tox.ini
View File

@ -74,6 +74,17 @@ commands =
{[testenv:api-ref]commands}
{[testenv:releasenotes]commands}
[testenv:pdf-docs]
basepython = python3
envdir = {toxworkdir}/docs
whitelist_externals =
make
rm
commands =
rm -rf doc/build/pdf
sphinx-build -W -b latex doc/source doc/build/pdf
make -C doc/build/pdf
[testenv:api-ref]
basepython = python3
description = Called from CI scripts to test and publish the API Ref