Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 448d13f

Browse files
committed
More improvements to documentation
1 parent 6747464 commit 448d13f

File tree

2 files changed

+17
-7
lines changed

2 files changed

+17
-7
lines changed

docs/conf.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -339,3 +339,5 @@
339339
# If true, do not generate a @detailmenu in the "Top" node's menu.
340340
#
341341
# texinfo_no_detailmenu = False
342+
343+
nitpicky = True

docs/index.rst

Lines changed: 15 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
Documentation for sphinx_automodapi
1+
Documentation for sphinx-automodapi
22
===================================
33

44
The sphinx-automodapi package provides Sphinx directives that help faciliate
@@ -29,16 +29,24 @@ To use this extension, you will need to add the following entries to the
2929
'sphinx_automodapi.automodsumm',
3030
'sphinx_automodapi.automodapi']
3131

32+
.. TODO: we could make automodsumm be automatically set up when automodapi is set up
33+
3234
You can then add an ``automodapi`` block anywhere that you want to generate
3335
documentation for a module::
3436

3537
.. automodapi:: mypackage.mymodule
3638

37-
This will add a section with a list of objects (functions, classes, etc.),
38-
and for objects like classes, a table of attributes/methods will be shown.
39+
This will add a section with the docstring of the module, followed by a list of
40+
functions, and by a list of classes. For each function and class, a full API
41+
page will be generated.
42+
43+
By default, sphinx_automodapi will try and make a diagram showing an
44+
inheritance graph of all the classes in the module. This requires graphviz to
45+
be installed. To disable the inheritance diagram, you can do::
46+
47+
.. automodapi:: mypackage.mymodule
48+
:no-inheritance-diagram:
3949

40-
User guide
41-
----------
50+
.. TODO: disable inheritance diagram by default!
4251
43-
.. automodapi:: sphinx_automodapi.test
44-
:no-inheritance-diagram:
52+
.. TODO: mention about api directory being excluded

0 commit comments

Comments
 (0)