Generate PDF documentation

Change-Id: I66add3b35283fdb6337b6dad9d79e852984d471f
Story: 2006093
Task: 35073
This commit is contained in:
manchandavishal 2019-09-18 13:34:19 +00:00 committed by Vishal Manchanda
parent 901efd2bfa
commit 47e0329f52
2 changed files with 22 additions and 3 deletions

View File

@ -229,15 +229,23 @@ latex_elements = {
# 'pointsize': '10pt', # 'pointsize': '10pt',
# Additional stuff for the LaTeX preamble. # Additional stuff for the LaTeX preamble.
# 'preamble': '', # openany: Skip blank pages in generated PDFs
'extraclassoptions': 'openany,oneside',
'makeindex': '',
'printindex': '',
'preamble': r'\setcounter{tocdepth}{3}',
} }
# Disable usage of xindy https://bugzilla.redhat.com/show_bug.cgi?id=1643664
# Some distros are missing xindy
latex_use_xindy = False
# Grouping the document tree into LaTeX files. List of tuples # Grouping the document tree into LaTeX files. List of tuples
# (source start file, target name, title, author, documentclass # (source start file, target name, title, author, documentclass
# [howto/manual]). # [howto/manual]).
latex_documents = [ latex_documents = [
('index', 'Horizon.tex', u'Horizon Documentation', ('index', 'doc-magnum-ui.tex', u'Magnum UI Documentation',
u'OpenStack Foundation', 'manual'), u'OpenStack Foundation', 'howto', True),
] ]
# The name of an image file (relative to this directory) to place at the top of # The name of an image file (relative to this directory) to place at the top of

11
tox.ini
View File

@ -109,6 +109,17 @@ deps =
commands= commands=
sphinx-build -W -b html doc/source doc/build/html sphinx-build -W -b html doc/source doc/build/html
[testenv:pdf-docs]
basepython = python3
deps = {[testenv:docs]deps}
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:docs-local] [testenv:docs-local]
basepython = python3 basepython = python3
deps = deps =