Skip to content

Commit e7f52f2

Browse files
committed
Use sphinx-apidoc to to generate API docs
1 parent c88e3ce commit e7f52f2

File tree

5 files changed

+5
-66
lines changed

5 files changed

+5
-66
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,3 +9,4 @@ servers/*/kafka-bin
99
.coverage
1010
.noseids
1111
docs/_build
12+
docs/apidoc

docs/api_reference.rst

Lines changed: 0 additions & 64 deletions
This file was deleted.

docs/conf.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@
3030
# ones.
3131
extensions = [
3232
'sphinx.ext.autodoc',
33+
'sphinx.ext.intersphinx',
3334
'sphinx.ext.viewcode',
3435
'sphinxcontrib.napoleon',
3536
]
@@ -57,7 +58,7 @@
5758
# The short X.Y version.
5859
with open('../VERSION') as version_file:
5960
version = version_file.read()
60-
61+
6162
# The full version, including alpha/beta/rc tags.
6263
release = version
6364

docs/index.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ Contents
4848
install
4949
tests
5050
usage
51-
api_reference
51+
API reference </apidoc/modules>
5252

5353
Indices and tables
5454
==================

tox.ini

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,4 +46,5 @@ deps =
4646
sphinx
4747

4848
commands =
49+
sphinx-apidoc -o docs/apidoc/ kafka/
4950
sphinx-build -b html docs/ docs/_build

0 commit comments

Comments
 (0)