add sphinx instructions to build API reference docs

Change-Id: I216d6e8ef7afa7c1de47f28a6e33ca0a10975912
Signed-off-by: Doug Hellmann <doug@doughellmann.com>
This commit is contained in:
Doug Hellmann 2017-07-07 14:51:10 -04:00
parent 10b2dbb376
commit 2574b6c0b7
4 changed files with 13 additions and 9 deletions

1
.gitignore vendored
View File

@ -53,3 +53,4 @@ ChangeLog
# reno build
releasenotes/build
/doc/source/reference/api/

View File

@ -2,11 +2,7 @@
API
=====
.. Use autodoc directives to describe the *public* modules and classes
in the library.
.. toctree::
:maxdepth: 2
If the modules are completely unrelated, create an api subdirectory
and use a separate file for each (see oslo.utils).
If there is only one submodule, a single api.rst file like this
sufficient (see oslo.i18n).
api/autoindex

View File

@ -77,8 +77,8 @@ def init(root_helper=None):
user id, forking, or anything else "odd".
:param root_helper: List of command and arguments to prefix
privsep-helper with, in order to run helper as root. Note,
ignored if context's helper_command config option is set.
privsep-helper with, in order to run helper as root. Note,
ignored if context's helper_command config option is set.
"""
if root_helper:

View File

@ -22,6 +22,13 @@ classifier =
packages =
oslo_privsep
[pbr]
autodoc_index_modules = True
api_doc_dir = reference/api
autodoc_exclude_modules =
oslo_privsep.tests.*
oslo_privsep._*
[build_sphinx]
source-dir = doc/source
build-dir = doc/build