Merge "Create tox environment to build pdf documentation"

This commit is contained in:
Zuul 2020-10-29 21:09:55 +00:00 committed by Gerrit Code Review
commit f0f04fa5c5
2 changed files with 15 additions and 1 deletions

View File

@ -94,6 +94,7 @@ modindex_common_prefix = ['Grenade-doc.']
openstackdocs_repo_name = 'openstack/grenade'
openstackdocs_bug_project = 'grenade'
openstackdocs_bug_tag = 'docs'
openstackdocs_pdf_link = True
# -- Options for man page output ----------------------------------------------
man_pages = []
@ -174,10 +175,15 @@ htmlhelp_basename = 'Grenade-doc'
# Grouping the document tree into LaTeX files. List of tuples
# (source start file, target name, title, author, documentclass [howto/manual]).
latex_documents = [
('index', 'Grenade-doc.tex', u'Grenade Docs',
('index', 'doc-grenade.tex', u'Grenade Docs',
u'OpenStack Grenade Team', 'manual'),
]
latex_use_xindy = False
latex_elements = {
'extraclassoptions': 'openany,oneside',
}
# The name of an image file (relative to this directory) to place at the top of
# the title page.
#latex_logo = None

View File

@ -29,3 +29,11 @@ setenv =
commands =
sphinx-build -W -b html doc/source doc/build/html
bash tools/build_docs.sh
[testenv:pdf-docs]
deps = {[testenv:docs]deps}
whitelist_externals =
make
commands =
sphinx-build -W -b latex doc/source doc/build/pdf
make -C doc/build/pdf