mirror of
https://github.com/readthedocs/sphinx-autoapi
synced 2024-11-04 12:00:16 +00:00
More updating of readme
This commit is contained in:
parent
31924ec371
commit
33914e992c
@ -69,9 +69,14 @@ Then add it to your Sphinx project's ``conf.py``:
|
||||
|
||||
extensions = ['autoapi.extension']
|
||||
|
||||
# Document Python Code
|
||||
autoapi_type = 'python'
|
||||
autoapi_dir = 'path/to/python/files'
|
||||
|
||||
# Or, Document Go Code
|
||||
autoapi_type = 'go'
|
||||
autoapi_dir = 'path/to/go/files'
|
||||
|
||||
Then in your ``index.rst``, add autoapi to your TOC tree:
|
||||
|
||||
.. code:: rst
|
||||
@ -84,6 +89,9 @@ This is needed because we will be outputting rst files into the ``autoapi`` dire
|
||||
This adds it into the global TOCTree for your project,
|
||||
so that it appears in the menus.
|
||||
|
||||
We hope to be able to dynamically add items into the TOCTree, and remove this step.
|
||||
However, it is currently required.
|
||||
|
||||
See all available configuration options in :doc:`config`.
|
||||
|
||||
Customize
|
||||
|
Loading…
Reference in New Issue
Block a user