PDF documentation build

Change-Id: I3c467d47b00173cb3c2604fd04041d42ae9fcdbd
This commit is contained in:
manchandavishal 2019-09-04 13:21:48 +00:00
parent 968699d269
commit 8f0ba86489
2 changed files with 21 additions and 9 deletions

View File

@ -177,22 +177,24 @@ html_last_updated_fmt = '%Y-%m-%d %H:%M'
# -- Options for LaTeX output ------------------------------------------------- # -- Options for LaTeX output -------------------------------------------------
# Disable usage of xindy https://bugzilla.redhat.com/show_bug.cgi?id=1643664
latex_use_xindy = False
latex_domain_indices = False
latex_elements = { latex_elements = {
# The paper size ('letterpaper' or 'a4paper'). 'makeindex': '',
# 'papersize': 'letterpaper', 'printindex': '',
'preamble': r'\setcounter{tocdepth}{3}',
# The font size ('10pt', '11pt' or '12pt').
# 'pointsize': '10pt',
# Additional stuff for the LaTeX preamble.
# 'preamble': '',
} }
# 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-congress-dashboard.tex',
u'Congress-dashboard Documentation',
u'OpenStack Foundation', 'manual'), u'OpenStack Foundation', 'manual'),
] ]

10
tox.ini
View File

@ -38,6 +38,16 @@ deps = -r{toxinidir}/doc/requirements.txt
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
envdir = {toxworkdir}/docs
deps = {[testenv:docs]deps}
whitelist_externals =
make
commands =
sphinx-build -W -b latex doc/source doc/build/pdf
make -C doc/build/pdf
[testenv:releasenotes] [testenv:releasenotes]
basepython = python3 basepython = python3
deps = -r{toxinidir}/doc/requirements.txt deps = -r{toxinidir}/doc/requirements.txt