doc migration

- fix sphinx errors
- enable warning-is-error
- reorganize structure
- use openstackdocstheme

Change-Id: I87df64b3a57e03618072a53bbe66bd3e83ac4e72
This commit is contained in:
Eric Kao 2017-07-17 15:06:22 -07:00
parent 91b58c72c1
commit 2ad2a87fa8
9 changed files with 32 additions and 14 deletions

View File

@ -18,7 +18,9 @@ from keystoneauth1 import adapter
class Client(object):
"""Client for the Congress v1 API.
Example::
Example
::
from keystoneauth1.identity import v2
from keystoneauth1 import session
from congressclient.v1 import client

View File

@ -1,4 +1,4 @@
============
Contributing
============
.. include:: ../../CONTRIBUTING.rst
.. include:: ../../../CONTRIBUTING.rst

View File

@ -9,16 +9,21 @@ Welcome to python-congressclient's documentation!
Contents:
.. toctree::
:maxdepth: 2
:maxdepth: 1
readme
installation
usage
contributing
Indices and tables
==================
user/readme
install/index
user/index
contributor/index
reference/index
* :ref:`genindex`
* :ref:`modindex`
* :ref:`search`
.. # Below are items we don't want to show doc consumers but need to be
# included to avoid sphinx warning/error.
# api/autoindex hidden because the information is already in modindex above
.. toctree::
:hidden:
reference/api/autoindex

View File

@ -1 +0,0 @@
.. include:: ../../README.rst

View File

@ -0,0 +1,5 @@
==========
References
==========
* :ref:`modindex`

View File

@ -1,6 +1,6 @@
========
=====
Usage
========
=====
To use python-congressclient in a project::

View File

@ -0,0 +1,5 @@
##########
README
##########
.. include:: ../../../README.rst

View File

@ -58,12 +58,14 @@ openstack.congressclient.v1 =
[pbr]
autodoc_index_modules = True
api_doc_dir = reference/api
warnerrors = True
[build_sphinx]
source-dir = doc/source
build-dir = doc/build
all_files = 1
warning-is-error = 1
[upload_sphinx]
upload-dir = doc/build/html