|
1 |
| -Documentation for sphinx_automodapi |
| 1 | +Documentation for sphinx-automodapi |
2 | 2 | ===================================
|
3 | 3 |
|
4 | 4 | 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
|
29 | 29 | 'sphinx_automodapi.automodsumm',
|
30 | 30 | 'sphinx_automodapi.automodapi']
|
31 | 31 |
|
| 32 | +.. TODO: we could make automodsumm be automatically set up when automodapi is set up |
| 33 | +
|
32 | 34 | You can then add an ``automodapi`` block anywhere that you want to generate
|
33 | 35 | documentation for a module::
|
34 | 36 |
|
35 | 37 | .. automodapi:: mypackage.mymodule
|
36 | 38 |
|
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: |
39 | 49 |
|
40 |
| -User guide |
41 |
| ----------- |
| 50 | +.. TODO: disable inheritance diagram by default! |
42 | 51 |
|
43 |
| -.. automodapi:: sphinx_automodapi.test |
44 |
| - :no-inheritance-diagram: |
| 52 | +.. TODO: mention about api directory being excluded |
0 commit comments