File tree Expand file tree Collapse file tree 4 files changed +49
-1
lines changed Expand file tree Collapse file tree 4 files changed +49
-1
lines changed Original file line number Diff line number Diff line change @@ -15,3 +15,4 @@ dependencies:
15
15
- pip :
16
16
- cf_xarray
17
17
- sphinx-book-theme
18
+ - git+https://github.com/keewis/sphinx-autosummary-accessors
Original file line number Diff line number Diff line change
1
+ .. currentmodule :: xarray
2
+
3
+ API
4
+ ===
5
+
6
+ DataArray
7
+ ---------
8
+
9
+ .. autosummary ::
10
+ :toctree: generated/
11
+ :template: autosummary/accessor_attribute.rst
12
+
13
+
14
+
15
+ .. autosummary ::
16
+ :toctree: generated/
17
+ :template: autosummary/accessor_method.rst
18
+
19
+ DataArray.cf.describe
20
+ DataArray.cf.get_valid_keys
21
+
22
+ Dataset
23
+ -------
24
+
25
+ .. autosummary ::
26
+ :toctree: generated/
27
+ :template: autosummary/accessor_attribute.rst
28
+
29
+
30
+
31
+ .. autosummary ::
32
+ :toctree: generated/
33
+ :template: autosummary/accessor_method.rst
34
+
35
+ Dataset.cf.describe
36
+ Dataset.cf.get_valid_keys
Original file line number Diff line number Diff line change 15
15
import os
16
16
import sys
17
17
18
+ import sphinx_autosummary_accessors
19
+
18
20
import cf_xarray # noqa
19
21
20
22
# If extensions (or modules to document with autodoc) are in another directory,
45
47
"IPython.sphinxext.ipython_console_highlighting" ,
46
48
"IPython.sphinxext.ipython_directive" ,
47
49
"nbsphinx" ,
50
+ "sphinx_autosummary_accessors" ,
48
51
]
49
52
50
53
extlinks = {
53
56
}
54
57
55
58
# Add any paths that contain templates here, relative to this directory.
56
- templates_path = ["_templates" ]
59
+ templates_path = ["_templates" , sphinx_autosummary_accessors . templates_path ]
57
60
58
61
# The suffix of source filenames.
59
62
source_suffix = ".rst"
294
297
"python" : ("https://docs.python.org/3/" , None ),
295
298
"xarray" : ("http://xarray.pydata.org/en/stable/" , None ),
296
299
}
300
+
301
+ autosummary_generate = True
302
+
303
+ autodoc_typehints = "none"
304
+
305
+ napoleon_use_param = True
306
+ napoleon_use_rtype = True
Original file line number Diff line number Diff line change @@ -15,6 +15,7 @@ on xarray objects.
15
15
examples/index
16
16
roadmap
17
17
contributing
18
+ api
18
19
19
20
Indices and tables
20
21
==================
You can’t perform that action at this time.
0 commit comments