File tree Expand file tree Collapse file tree 2 files changed +66
-0
lines changed Expand file tree Collapse file tree 2 files changed +66
-0
lines changed Original file line number Diff line number Diff line change @@ -91,3 +91,35 @@ versions higher than 1.3.
9191
9292
9393.. _Sphinx : http://www.sphinx-doc.org/en/stable
94+
95+
96+ Quickstart
97+ ==========
98+
99+ In order to activate the autodocsumm extension, you have to list it in your
100+ ``conf.py ``:
101+
102+ .. code-block :: python
103+
104+ extensions = [
105+ ' sphinx.ext.autodoc' ,
106+ ... ,
107+ ' autodocsumm' ,
108+ ]
109+
110+ Once this is done, you can use the ``:autosummary: `` option for autodoc
111+ directives to generate a table at the top, e.g.:
112+
113+ .. code-block :: rst
114+
115+ .. automodule:: my.awesome.module
116+ :autosummary:
117+
118+ Optionally, you can make autodocsumm active by default for all autodoc
119+ directives by adding in ``conf.py ``:
120+
121+ .. code-block :: python
122+
123+ autodoc_default_options = {
124+ ' autosummary' : True ,
125+ }
Original file line number Diff line number Diff line change @@ -107,6 +107,40 @@ versions higher than 1.3.
107107.. _Sphinx : http://www.sphinx-doc.org/en/stable
108108
109109
110+ Quickstart
111+ ==========
112+
113+ In order to activate the autodocsumm extension, you have to list it in your
114+ ``conf.py ``:
115+
116+ .. code-block :: python
117+ :caption: conf.py
118+
119+ extensions = [
120+ ' sphinx.ext.autodoc' ,
121+ ... ,
122+ ' autodocsumm' ,
123+ ]
124+
125+ Once this is done, you can use the ``:autosummary: `` option for autodoc
126+ directives to generate a table at the top, e.g.:
127+
128+ .. code-block :: rst
129+
130+ .. automodule:: my.awesome.module
131+ :autosummary:
132+
133+ Optionally, you can make autodocsumm active by default for all autodoc
134+ directives by adding:
135+
136+ .. code-block :: python
137+ :caption: conf.py
138+
139+ autodoc_default_options = {
140+ ' autosummary' : True ,
141+ }
142+
143+
110144 Indices and tables
111145==================
112146
You can’t perform that action at this time.
0 commit comments