Merge "Follow the new PTI for document build"

This commit is contained in:
Zuul 2018-06-11 14:44:33 +00:00 committed by Gerrit Code Review
commit dfa2d6e153
8 changed files with 16 additions and 18 deletions

8
doc/requirements.txt Normal file
View File

@ -0,0 +1,8 @@
sphinx!=1.6.6,!=1.6.7,>=1.6.2 # BSD
sphinxcontrib-httpdomain>=1.3.0 # BSD
sphinxcontrib-blockdiag>=1.5.4 # BSD
reno>=2.5.0 # Apache-2.0
os-api-ref>=1.4.0 # Apache-2.0
openstackdocstheme>=1.18.1 # Apache-2.0
castellan >= 0.17 # Apache-2.0
pykmip==0.7.0 # Apache 2.0 License

View File

@ -70,7 +70,7 @@ Response:
Request:
********
.. code-block:: javascript
.. code-block:: console
GET {container_ref}/consumers?limit=1\&offset=1
Headers:

View File

@ -152,7 +152,7 @@ we will be using a metadata-only POST followed by a PUT.
This should return a reference (URI) for the secret that was created:
.. code-block:: json
.. code-block:: console
200 OK
@ -173,7 +173,7 @@ We can use this reference to add the payload with a PUT request:
The server should respond with a 2xx response to indicate that the PUT request
was processed successfully:
.. code-block:: json
.. code-block:: console
204 - No Content
@ -249,7 +249,7 @@ we will be using a single POST request.
This should return a reference (URI) for the secret that was created.
.. code-block:: json
.. code-block:: console
200 OK

View File

@ -279,7 +279,7 @@ What you might see
.. code-block:: json
{
title: "Malformed JSON"
"title": "Malformed JSON"
}

View File

@ -31,7 +31,7 @@ Sample Files
============
.. toctree::
:maxdepth: 1
:maxdepth: 1
sample_config
sample_policy

View File

@ -79,10 +79,6 @@ oslo.config.opts =
barbican.certificate.plugin.snakeoil = barbican.plugin.snakeoil_ca:list_opts
oslo.config.opts.defaults =
barbican.common.config = barbican.common.config:set_middleware_defaults
[build_sphinx]
all_files = 1
build-dir = doc/build
source-dir = doc/source
[build_apiguide]
all_files = 1

View File

@ -21,10 +21,3 @@ tempest>=17.1.0 # Apache-2.0
# Bandit build requirements
bandit>=1.1.0 # Apache-2.0
# Documentation build requirements
sphinx!=1.6.6,!=1.6.7,>=1.6.2 # BSD
os-api-ref>=1.4.0 # Apache-2.0
reno>=2.5.0 # Apache-2.0
openstackdocstheme>=1.18.1 # Apache-2.0
castellan >= 0.17 # Apache-2.0

View File

@ -62,9 +62,10 @@ commands =
flake8 barbican setup.py
[testenv:docs]
deps = -r{toxinidir}/doc/requirements.txt
commands=
rm -rf doc/build api-guide/build api-ref/build
python setup.py build_sphinx
sphinx-build -W -b html doc/source doc/build/html
sphinx-build -W -b html api-guide/source api-guide/build/html
sphinx-build -W -b html api-ref/source api-ref/build/html
whitelist_externals = rm