Updated documentation

Closes #120
implicit_namespaces
Ashley Whetter 6 years ago
parent 9e9c28e15b
commit 03f601ed41

@ -41,6 +41,8 @@ Contents
:maxdepth: 2
design
directives
Basic Workflow
--------------
@ -196,6 +198,12 @@ All of the pages that AutoAPI generates are templated with Jinja2 templates.
You can fully customize how pages are displayed on a per-object basis.
Read more about it in :doc:`templates`.
Directives
----------
Instead of generating API documentation,
you can write the documentation yourself with :doc:`directives`.
Design
------
@ -204,7 +212,7 @@ Read more about the deisgn in our :doc:`design`.
Currently Implemented
---------------------
* Python (2 only -- Epydoc doesn't support Python 3)
* Python (2.7+ and 3.4+)
* .NET
* Go
* Javascript

@ -25,7 +25,7 @@ Configuration Options
A directory that has user-defined templates to override our default templates.
You can see the existing files in the `autoapi/templates`_ directory.
You can see the existing files in the `autoapi_templates`_ directory.
.. confval:: autoapi_file_patterns
@ -33,6 +33,15 @@ Configuration Options
A list containing the file patterns to look for when generating documentation. Python for example is ``['*.py']``.
... confval:: autoapi_generate_api_docs
Default: ``True``
Whether to generate API documentation.
If this is ``False``, documentation should be generated though the
:doc:`directives`.
Customization Options
---------------------
@ -88,7 +97,7 @@ Customization Options
:param class: Use only the class docstring.
:param both: Use the concatentation of the class docstring and the
``__init__``/``__new__`` docstring.
``__init__``/``__new__`` docstring.
:param init: Use only the ``__init__``/``__new__`` docstring.
If the class does not have an ``__init__`` or the ``__init__``
@ -105,4 +114,4 @@ Debugging Options
Keep the AutoAPI generated files on the filesystem after the run.
Useful for debugging.
.. _autoapi/templates:: https://github.com/rtfd/sphinx-autoapi/tree/master/autoapi/templates
.. _autoapi_templates: https://github.com/rtfd/sphinx-autoapi/tree/master/autoapi/templates

@ -0,0 +1,34 @@
Autodoc-Style Directives
------------------------
You can opt to write API documentation yourself using autodoc style directives.
These directives work similarly to autodoc,
but docstring are retrieved through static analysis instead of through imports.
To use these directives you will need to enable the autodoc extension
in your Sphinx project's ``conf.py``:
.. code:: python
extensions = ['sphinx.ext.autodoc', 'autoapi.extension']
For Python, all directives have an autodoc equivalent
and accept the same options.
The following directives are available:
.. rst:directive:: autoapimodule
autoapiclass
autoapiexception
Equivalent to :rst:dir:`automodule`, :rst:dir:`autoclass`,
and :rst:dir:`autoexception` respectively.
:confval:`autodoc_inherit_docstrings` does not currently work.
.. rst:directive:: autoapifunction
autoapidata
autoapimethod
autoapiattribute
Equivalent to :rst:dir:`autofunction`, :rst:dir:`autodata`,
:rst:dir:`automethod`, and :rst:dir:`autoattribute` respectively.
Loading…
Cancel
Save