Build pdf doc
The is one of community goals that each project could produce a single PDF file. The pdf should be in the output of openstack-tox-docs job. TeX packages are required to build PDF locally, following is recommended: * inkscape * texlive-latex-base * texlive-latex-extra * texlive-fonts-recommended More about the goal: https://governance.openstack.org/tc/goals/train/pdf-doc-generation.html https://etherpad.openstack.org/p/train-pdf-support-goal https://etherpad.openstack.org/p/pdf-goal-train-common-problems Change-Id: Icf1e4b58675b23e82ee6f6d79eb8852436ed55bb
This commit is contained in:
parent
1f68fb9073
commit
9aab525d45
@ -7,3 +7,4 @@ sphinx!=1.6.6,!=1.6.7,!=2.1.0,>=1.6.2;python_version>='3.4' # BSD
|
|||||||
sphinxcontrib-apidoc>=0.2.0 # BSD
|
sphinxcontrib-apidoc>=0.2.0 # BSD
|
||||||
sphinxcontrib-pecanwsme>=0.10.0 # Apache-2.0
|
sphinxcontrib-pecanwsme>=0.10.0 # Apache-2.0
|
||||||
sphinxcontrib-seqdiag>=0.8.4 # BSD
|
sphinxcontrib-seqdiag>=0.8.4 # BSD
|
||||||
|
sphinxcontrib-svg2pdfconverter>=0.1.0 # BSD
|
||||||
|
@ -48,6 +48,7 @@ Configuration
|
|||||||
Lists all the configuration options currently accessible via the CONF object
|
Lists all the configuration options currently accessible via the CONF object
|
||||||
for the current process.
|
for the current process.
|
||||||
|
|
||||||
|
.. only:: html
|
||||||
|
|
||||||
Sample GMR Report
|
Sample GMR Report
|
||||||
-----------------
|
-----------------
|
||||||
|
@ -38,6 +38,7 @@ extensions = ['sphinx.ext.viewcode',
|
|||||||
'sphinxcontrib.pecanwsme.rest',
|
'sphinxcontrib.pecanwsme.rest',
|
||||||
'sphinxcontrib.seqdiag',
|
'sphinxcontrib.seqdiag',
|
||||||
'sphinxcontrib.apidoc',
|
'sphinxcontrib.apidoc',
|
||||||
|
'sphinxcontrib.rsvgconverter',
|
||||||
'oslo_config.sphinxext',
|
'oslo_config.sphinxext',
|
||||||
'oslo_config.sphinxconfiggen',
|
'oslo_config.sphinxconfiggen',
|
||||||
'oslo_policy.sphinxext',
|
'oslo_policy.sphinxext',
|
||||||
@ -63,8 +64,7 @@ apidoc_excluded_paths = [
|
|||||||
apidoc_separate_modules = True
|
apidoc_separate_modules = True
|
||||||
|
|
||||||
repository_name = 'openstack/ironic'
|
repository_name = 'openstack/ironic'
|
||||||
bug_project = '943'
|
use_storyboard = True
|
||||||
bug_tag = ''
|
|
||||||
|
|
||||||
wsme_protocols = ['restjson']
|
wsme_protocols = ['restjson']
|
||||||
|
|
||||||
@ -126,6 +126,7 @@ else:
|
|||||||
# Output file base name for HTML help builder.
|
# Output file base name for HTML help builder.
|
||||||
htmlhelp_basename = 'Ironicdoc'
|
htmlhelp_basename = 'Ironicdoc'
|
||||||
|
|
||||||
|
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
|
||||||
@ -133,13 +134,16 @@ htmlhelp_basename = 'Ironicdoc'
|
|||||||
latex_documents = [
|
latex_documents = [
|
||||||
(
|
(
|
||||||
'index',
|
'index',
|
||||||
'Ironic.tex',
|
'doc-ironic.tex',
|
||||||
u'Ironic Documentation',
|
u'Ironic Documentation',
|
||||||
u'OpenStack Foundation',
|
u'OpenStack Foundation',
|
||||||
'manual'
|
'manual'
|
||||||
),
|
),
|
||||||
]
|
]
|
||||||
|
|
||||||
|
# Allow deeper levels of nesting for \begin...\end stanzas
|
||||||
|
latex_elements = {'maxlistdepth': 10}
|
||||||
|
|
||||||
# -- Options for seqdiag ------------------------------------------------------
|
# -- Options for seqdiag ------------------------------------------------------
|
||||||
|
|
||||||
seqdiag_html_image_format = "SVG"
|
seqdiag_html_image_format = "SVG"
|
||||||
|
@ -11,6 +11,15 @@ situation.
|
|||||||
:maxdepth: 1
|
:maxdepth: 1
|
||||||
|
|
||||||
Configuration Options <config>
|
Configuration Options <config>
|
||||||
Sample Config File <sample-config>
|
|
||||||
Policies <policy>
|
Policies <policy>
|
||||||
|
|
||||||
|
.. only:: html
|
||||||
|
|
||||||
|
Sample files
|
||||||
|
------------
|
||||||
|
|
||||||
|
.. toctree::
|
||||||
|
:maxdepth: 1
|
||||||
|
|
||||||
|
Sample Config File <sample-config>
|
||||||
Sample Policy File <sample-policy>
|
Sample Policy File <sample-policy>
|
||||||
|
@ -100,6 +100,8 @@ Release Notes
|
|||||||
|
|
||||||
`Release Notes <https://docs.openstack.org/releasenotes/ironic/>`_
|
`Release Notes <https://docs.openstack.org/releasenotes/ironic/>`_
|
||||||
|
|
||||||
|
.. only:: html
|
||||||
|
|
||||||
Indices and tables
|
Indices and tables
|
||||||
==================
|
==================
|
||||||
|
|
||||||
|
@ -45,7 +45,7 @@ When used without the Compute service, the operator needs to create a configurat
|
|||||||
and provide the file or HTTP URL to the Bare Metal service.
|
and provide the file or HTTP URL to the Bare Metal service.
|
||||||
|
|
||||||
For the format of the configuration drive, Bare Metal service expects a
|
For the format of the configuration drive, Bare Metal service expects a
|
||||||
``gzipped`` and ``base64`` encoded ISO 9660 [*]_ file with a ``config-2``
|
``gzipped`` and ``base64`` encoded ISO 9660 [#]_ file with a ``config-2``
|
||||||
label. The `openstack baremetal client
|
label. The `openstack baremetal client
|
||||||
<https://docs.openstack.org/python-ironicclient/latest/cli/osc_plugin_cli.html>`_
|
<https://docs.openstack.org/python-ironicclient/latest/cli/osc_plugin_cli.html>`_
|
||||||
can generate a configuration drive in the `expected format`_. Just pass a
|
can generate a configuration drive in the `expected format`_. Just pass a
|
||||||
@ -134,7 +134,7 @@ the configuration drive and mount it, for example::
|
|||||||
mount $CONFIG_DEV /mnt/config
|
mount $CONFIG_DEV /mnt/config
|
||||||
|
|
||||||
|
|
||||||
.. [*] A configuration drive could also be a data block with a VFAT filesystem
|
.. [#] A configuration drive could also be a data block with a VFAT filesystem
|
||||||
on it instead of ISO 9660. But it's unlikely that it would be needed
|
on it instead of ISO 9660. But it's unlikely that it would be needed
|
||||||
since ISO 9660 is widely supported across operating systems.
|
since ISO 9660 is widely supported across operating systems.
|
||||||
|
|
||||||
|
@ -63,6 +63,7 @@ Sphinx==1.6.2
|
|||||||
sphinxcontrib-httpdomain==1.6.1
|
sphinxcontrib-httpdomain==1.6.1
|
||||||
sphinxcontrib-pecanwsme==0.10.0
|
sphinxcontrib-pecanwsme==0.10.0
|
||||||
sphinxcontrib-seqdiag==0.8.4
|
sphinxcontrib-seqdiag==0.8.4
|
||||||
|
sphinxcontrib-svg2pdfconverter==0.1.0
|
||||||
sphinxcontrib-websupport==1.0.1
|
sphinxcontrib-websupport==1.0.1
|
||||||
SQLAlchemy==1.0.10
|
SQLAlchemy==1.0.10
|
||||||
sqlalchemy-migrate==0.11.0
|
sqlalchemy-migrate==0.11.0
|
||||||
|
9
tox.ini
9
tox.ini
@ -88,6 +88,15 @@ deps =
|
|||||||
-r{toxinidir}/driver-requirements.txt
|
-r{toxinidir}/driver-requirements.txt
|
||||||
commands = sphinx-build -b html -W doc/source doc/build/html
|
commands = sphinx-build -b html -W doc/source doc/build/html
|
||||||
|
|
||||||
|
[testenv:pdf-docs]
|
||||||
|
basepython = python3
|
||||||
|
whitelist_externals = make
|
||||||
|
deps = {[testenv:docs]deps}
|
||||||
|
commands =
|
||||||
|
sphinx-build -W -b latex doc/source doc/build/pdf
|
||||||
|
make -C doc/build/pdf
|
||||||
|
|
||||||
|
|
||||||
[testenv:api-ref]
|
[testenv:api-ref]
|
||||||
basepython = python3
|
basepython = python3
|
||||||
deps =
|
deps =
|
||||||
|
Loading…
Reference in New Issue
Block a user