Merge "Follow the new PTI for document build"
This commit is contained in:
commit
dfa2d6e153
8
doc/requirements.txt
Normal file
8
doc/requirements.txt
Normal 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
|
@ -70,7 +70,7 @@ Response:
|
||||
Request:
|
||||
********
|
||||
|
||||
.. code-block:: javascript
|
||||
.. code-block:: console
|
||||
|
||||
GET {container_ref}/consumers?limit=1\&offset=1
|
||||
Headers:
|
||||
|
@ -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
|
||||
|
||||
|
@ -279,7 +279,7 @@ What you might see
|
||||
.. code-block:: json
|
||||
|
||||
{
|
||||
title: "Malformed JSON"
|
||||
"title": "Malformed JSON"
|
||||
}
|
||||
|
||||
|
||||
|
@ -31,7 +31,7 @@ Sample Files
|
||||
============
|
||||
|
||||
.. toctree::
|
||||
:maxdepth: 1
|
||||
:maxdepth: 1
|
||||
|
||||
sample_config
|
||||
sample_policy
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
3
tox.ini
3
tox.ini
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user