Build pdf docs

Add a new pdf-docs environment to enable PDF build.
 sphinxcontrib-svg2pdfconverter is used to handle SVG properly.

Change-Id: I1563579486da8912ba8a220bb08a5331e7df910b
This commit is contained in:
licanwei
2019-09-16 20:47:30 -07:00
parent 696d5d1fb5
commit ffd8e27bd1
5 changed files with 32 additions and 5 deletions

View File

@@ -42,6 +42,7 @@ extensions = [
'oslo_config.sphinxconfiggen',
'openstackdocstheme',
'sphinx.ext.napoleon',
'sphinxcontrib.rsvgconverter',
]
wsme_protocols = ['restjson']
@@ -137,10 +138,21 @@ bug_tag = ''
# [howto/manual]).
latex_documents = [
('index',
'%s.tex' % project,
'doc-watcher.tex',
u'%s Documentation' % project,
u'OpenStack Foundation', 'manual'),
]
# If false, no module index is generated.
latex_domain_indices = False
latex_elements = {
'makeindex': '',
'printindex': '',
'preamble': r'\setcounter{tocdepth}{3}',
}
# Disable usage of xindy https://bugzilla.redhat.com/show_bug.cgi?id=1643664
latex_use_xindy = False
# Example configuration for intersphinx: refer to the Python standard library.
# intersphinx_mapping = {'http://docs.python.org/': None}