Merge "Build pdf doc"

This commit is contained in:
Zuul 2019-09-09 15:58:43 +00:00 committed by Gerrit Code Review
commit 0c8dbfaf26
4 changed files with 16 additions and 11 deletions

View File

@ -26,7 +26,6 @@ source_suffix = '.rst'
master_doc = 'index' master_doc = 'index'
# General information about the project. # General information about the project.
project = u'Ironic Lib'
copyright = u'OpenStack Foundation' copyright = u'OpenStack Foundation'
# The version info for the project you're documenting, acts as replacement for # The version info for the project you're documenting, acts as replacement for
@ -64,15 +63,12 @@ html_theme = 'openstackdocs'
# openstackdocstheme options # openstackdocstheme options
repository_name = 'openstack/ironic-lib' repository_name = 'openstack/ironic-lib'
bug_project = 'ironic-lib' use_storyboard = True
bug_tag = ''
# Must set this variable to include year, month, day, hours, and minutes.
html_last_updated_fmt = '%Y-%m-%d %H:%M'
# Output file base name for HTML help builder. # Output file base name for HTML help builder.
htmlhelp_basename = '%sdoc' % project htmlhelp_basename = 'ironic-libdoc'
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
@ -80,8 +76,8 @@ htmlhelp_basename = '%sdoc' % project
latex_documents = [ latex_documents = [
( (
'index', 'index',
'%s.tex' % project, 'doc-ironic-lib.tex',
u'%s Documentation' % project, u'Ironic Lib Documentation',
u'OpenStack Foundation', u'OpenStack Foundation',
'manual' 'manual'
), ),

View File

@ -29,7 +29,7 @@ mox3==0.20.0
msgpack-python==0.4.0 msgpack-python==0.4.0
netaddr==0.7.18 netaddr==0.7.18
netifaces==0.10.4 netifaces==0.10.4
openstackdocstheme==1.18.1 openstackdocstheme==1.20.0
os-client-config==1.28.0 os-client-config==1.28.0
os-testr==1.0.0 os-testr==1.0.0
oslo.concurrency==3.26.0 oslo.concurrency==3.26.0

View File

@ -16,4 +16,4 @@ testtools>=2.2.0 # MIT
doc8>=0.6.0 # Apache-2.0 doc8>=0.6.0 # Apache-2.0
sphinx!=1.6.6,!=1.6.7,>=1.6.2,<2.0.0;python_version=='2.7' # BSD sphinx!=1.6.6,!=1.6.7,>=1.6.2,<2.0.0;python_version=='2.7' # BSD
sphinx!=1.6.6,!=1.6.7,>=1.6.2;python_version>='3.4' # BSD sphinx!=1.6.6,!=1.6.7,>=1.6.2;python_version>='3.4' # BSD
openstackdocstheme>=1.18.1 # Apache-2.0 openstackdocstheme>=1.20.0 # Apache-2.0

View File

@ -60,6 +60,15 @@ envdir = {toxworkdir}/venv
commands = commands =
python setup.py build_sphinx python setup.py build_sphinx
[testenv:pdf-docs]
whitelist_externals = make
basepython = python3
setenv = PYTHONHASHSEED=0
sitepackages = False
envdir = {toxworkdir}/venv
commands = sphinx-build -b latex doc/source doc/build/pdf
make -C doc/build/pdf
[testenv:lower-constraints] [testenv:lower-constraints]
basepython = python3 basepython = python3
deps = deps =