Merge "PDF documentation build"

This commit is contained in:
Zuul 2019-09-07 09:52:35 +00:00 committed by Gerrit Code Review
commit d800a41f66
3 changed files with 29 additions and 10 deletions

View File

@ -207,10 +207,10 @@ html_last_updated_fmt = '%Y-%m-%d %H:%M'
# Grouping the document tree into LaTeX files. List of tuples
# (source start file, target name, title, author,
# documentclass [howto/manual]).
# latex_documents = [
# ('index', 'NeutronLib.tex', u'Neutron Library Documentation',
# u'Neutron development team', 'manual'),
# ]
latex_documents = [
('index', 'doc-neutron-lib.tex', u'Neutron Library Documentation',
u'Neutron development team', 'manual'),
]
# The name of an image file (relative to this directory) to place at the top of
# the title page.
@ -229,6 +229,13 @@ html_last_updated_fmt = '%Y-%m-%d %H:%M'
# If false, no module index is generated.
#latex_use_modindex = True
latex_elements = {
'makeindex': '',
'printindex': '',
'preamble': r'\setcounter{tocdepth}{3}',
}
# -- Options for openstackdocstheme -------------------------------------------
repository_name = 'openstack/neutron-lib'
bug_project = 'neutron'
@ -236,7 +243,7 @@ bug_tag = 'doc'
linkcheck_anchors_ignore = [
# skip gerrit anchors
'\/q\/.*',
'q\,.*',
'\/c\/.*'
r'\/q\/.*',
r'q\,.*',
r'\/c\/.*'
]

View File

@ -45,7 +45,9 @@ Enjoy!
user/index
contributor/index
.. toctree::
:maxdepth: 1
.. only:: html
reference/index
.. toctree::
:maxdepth: 1
reference/index

10
tox.ini
View File

@ -57,6 +57,16 @@ deps =
-r{toxinidir}/doc/requirements.txt
commands = 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:api-ref]
basepython = python3
whitelist_externals = rm