Browse Source

Merge "Build pdf doc"

tags/2.1.0^0
Zuul Gerrit Code Review 8 months ago
parent
commit
4de9627b99
3 changed files with 17 additions and 5 deletions
  1. +1
    -1
      doc/requirements.txt
  2. +5
    -4
      doc/source/conf.py
  3. +11
    -0
      tox.ini

+ 1
- 1
doc/requirements.txt View File

@@ -6,4 +6,4 @@ 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,!=2.1.0,>=1.6.2;python_version>='3.4' # BSD
sphinxcontrib-pecanwsme>=0.8.0 # Apache-2.0
sphinxcontrib-seqdiag>=0.8.4 # BSD
openstackdocstheme>=1.18.1 # Apache-2.0
openstackdocstheme>=1.20.0 # Apache-2.0

+ 5
- 4
doc/source/conf.py View File

@@ -40,7 +40,6 @@ source_suffix = '.rst'
master_doc = 'index'

# General information about the project.
project = u'Networking Generic Switch'
copyright = u'2017, Openstack Foundation'

# If true, '()' will be appended to :func: etc. cross-reference text.
@@ -62,15 +61,17 @@ pygments_style = 'sphinx'
html_theme = 'openstackdocs'

# Output file base name for HTML help builder.
htmlhelp_basename = '%sdoc' % project
htmlhelp_basename = 'networking-generic-switchdoc'

latex_use_xindy = False

# Grouping the document tree into LaTeX files. List of tuples
# (source start file, target name, title, author, documentclass
# [howto/manual]).
latex_documents = [
('index',
'%s.tex' % project,
u'%s Documentation' % project,
'doc-networking-generic-switch.tex',
u'Networking Generic Switch Documentation',
u'OpenStack Foundation', 'manual'),
]



+ 11
- 0
tox.ini View File

@@ -42,6 +42,17 @@ deps =
commands =
python setup.py build_sphinx

[testenv:pdf-docs]
basepython = python3
whitelist_externals = make
setenv = PYTHONHASHSEED=0
sitepackages = False
envdir = {toxworkdir}/venv
deps = {[testenv:docs]deps}
commands =
sphinx-build -b latex doc/source doc/build/pdf
make -C doc/build/pdf

[testenv:releasenotes]
basepython = python3
deps =


Loading…
Cancel
Save