Add PDF building
This commit add PDF building tox.ini environment and options for LaTeX output. The chapter header in README.rst has been changed because "Team and repository tags" is not appropriate for the title of this document. And, this commit also updates repository URLs to opendev.org. Change-Id: I1337f3185d72108eef2968cca3cb81d52e742e90 Story: #2006070 Task: #35469
This commit is contained in:
parent
fe4e5fd7b5
commit
94e6b1875a
23
README.rst
23
README.rst
@ -1,10 +1,3 @@
|
||||
========================
|
||||
Team and repository tags
|
||||
========================
|
||||
|
||||
.. image:: https://governance.openstack.org/tc/badges/patrole.svg
|
||||
:target: https://governance.openstack.org/tc/reference/tags/index.html
|
||||
|
||||
Patrole - RBAC Integration Tempest Plugin
|
||||
=========================================
|
||||
|
||||
@ -24,10 +17,16 @@ documentation.
|
||||
|
||||
* Free software: Apache license
|
||||
* Documentation: https://docs.openstack.org/patrole/latest
|
||||
* Source: https://git.openstack.org/cgit/openstack/patrole
|
||||
* Source: https://opendev.org/openstack/patrole
|
||||
* Bugs: https://storyboard.openstack.org/#!/project/openstack/patrole
|
||||
* Release notes: https://docs.openstack.org/releasenotes/patrole/
|
||||
|
||||
Team and repository tags
|
||||
------------------------
|
||||
|
||||
.. image:: https://governance.openstack.org/tc/badges/patrole.svg
|
||||
:target: https://governance.openstack.org/tc/reference/tags/index.html
|
||||
|
||||
.. _design-principles:
|
||||
|
||||
Design Principles
|
||||
@ -75,8 +74,8 @@ but not all, as its testing scope is confined to policies.
|
||||
.. _Tempest plugin: https://docs.openstack.org/tempest/latest/plugin.html
|
||||
.. _Tempest design principles: https://docs.openstack.org/tempest/latest/overview.html#design-principles
|
||||
.. _policy in code: https://specs.openstack.org/openstack/oslo-specs/specs/newton/policy-in-code.html
|
||||
.. _Nova repository: https://git.openstack.org/cgit/openstack/nova/tree/nova/policies
|
||||
.. _Keystone repository: https://git.openstack.org/cgit/openstack/keystone/tree/keystone/common/policies
|
||||
.. _Nova repository: https://opendev.org/openstack/nova/src/branch/master/nova/policies
|
||||
.. _Keystone repository: https://opendev.org/openstack/keystone/src/branch/master/keystone/common/policies
|
||||
|
||||
Features
|
||||
--------
|
||||
@ -123,7 +122,7 @@ the steps outlined therein. Afterward, proceed with the steps below.
|
||||
#. You first need to install Patrole. This is done with pip after you check out
|
||||
the Patrole repo::
|
||||
|
||||
$ git clone https://git.openstack.org/openstack/patrole
|
||||
$ git clone https://opendev.org/openstack/patrole
|
||||
$ pip install patrole/
|
||||
|
||||
This can be done within a venv.
|
||||
@ -174,7 +173,7 @@ the steps outlined therein. Afterward, proceed with the steps below.
|
||||
the Patrole repository. To configure Patrole's logging, see the
|
||||
`Patrole Configuration Guide <https://docs.openstack.org/patrole/latest/configuration.html#patrole-configuration>`_.
|
||||
|
||||
.. _Tempest: https://git.openstack.org/cgit/openstack/tempest
|
||||
.. _Tempest: https://opendev.org/openstack/tempest/
|
||||
.. _Tempest_quickstart: https://docs.openstack.org/tempest/latest/overview.html#quickstart
|
||||
.. _tempest_run: https://docs.openstack.org/tempest/latest/run.html
|
||||
.. _testr: https://testrepository.readthedocs.org/en/latest/MANUAL.html
|
||||
|
@ -6,3 +6,4 @@ sphinx!=1.6.6,!=1.6.7,!=2.1.0,>=1.6.2;python_version>='3.4' # BSD
|
||||
openstackdocstheme>=1.20.0 # Apache-2.0
|
||||
reno>=2.5.0 # Apache-2.0
|
||||
sphinxcontrib-apidoc>=0.2.0 # BSD
|
||||
sphinxcontrib-svg2pdfconverter>=0.1.0 # BSD
|
||||
|
@ -30,6 +30,7 @@ extensions = [
|
||||
'sphinx.ext.autodoc',
|
||||
'sphinx.ext.todo',
|
||||
'sphinx.ext.viewcode',
|
||||
'sphinxcontrib.rsvgconverter',
|
||||
'openstackdocstheme',
|
||||
'oslo_config.sphinxconfiggen',
|
||||
'sphinxcontrib.apidoc',
|
||||
@ -94,15 +95,18 @@ html_last_updated_fmt = '%Y-%m-%d %H:%M'
|
||||
# Output file base name for HTML help builder.
|
||||
htmlhelp_basename = 'patroledoc'
|
||||
|
||||
# Example configuration for intersphinx: refer to the Python standard library.
|
||||
#intersphinx_mapping = {'http://docs.python.org/': None}
|
||||
|
||||
# -- Options for LaTeX output -------------------------------------------------
|
||||
|
||||
# Grouping the document tree into LaTeX files. List of tuples
|
||||
# (source start file, target name, title, author, documentclass
|
||||
# [howto/manual]).
|
||||
latex_documents = [
|
||||
('index',
|
||||
'patrole.tex',
|
||||
u'patrole Documentation',
|
||||
u'Patrole Developers', 'manual'),
|
||||
('index', 'doc-patrole.tex', u'Patrole: Tempest Plugin for RBAC Testing',
|
||||
u'OpenStack Foundation', 'manual'),
|
||||
]
|
||||
|
||||
# Example configuration for intersphinx: refer to the Python standard library.
|
||||
#intersphinx_mapping = {'http://docs.python.org/': None}
|
||||
# Disable usage of xindy https://bugzilla.redhat.com/show_bug.cgi?id=1643664
|
||||
latex_use_xindy = False
|
@ -71,7 +71,12 @@ Framework
|
||||
framework/rbac_utils
|
||||
framework/code/modules
|
||||
|
||||
Indices and tables
|
||||
==================
|
||||
Search
|
||||
======
|
||||
|
||||
* :ref:`search`
|
||||
.. only:: html
|
||||
|
||||
* :ref:`Patrole document search <search>`: Search the contents of this document.
|
||||
|
||||
* `OpenStack wide search <https://docs.openstack.org>`_: Search the wider
|
||||
set of OpenStack documentation, including forums.
|
||||
|
9
tox.ini
9
tox.ini
@ -64,6 +64,15 @@ commands =
|
||||
sphinx-build -W -b html doc/source doc/build/html
|
||||
whitelist_externals = rm
|
||||
|
||||
[testenv:pdf-docs]
|
||||
basepython = python3
|
||||
deps = {[testenv:docs]deps}
|
||||
whitelist_externals =
|
||||
make
|
||||
commands =
|
||||
sphinx-build -W -b latex doc/source doc/build/pdf
|
||||
make -C doc/build/pdf
|
||||
|
||||
[testenv:releasenotes]
|
||||
basepython = python3
|
||||
deps =
|
||||
|
Loading…
Reference in New Issue
Block a user