File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -15,3 +15,4 @@ dependencies:
1515 - pip :
1616 - cf_xarray
1717 - 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 1515import os
1616import sys
1717
18+ import sphinx_autosummary_accessors
19+
1820import cf_xarray # noqa
1921
2022# If extensions (or modules to document with autodoc) are in another directory,
4547 "IPython.sphinxext.ipython_console_highlighting" ,
4648 "IPython.sphinxext.ipython_directive" ,
4749 "nbsphinx" ,
50+ "sphinx_autosummary_accessors" ,
4851]
4952
5053extlinks = {
5356}
5457
5558# Add any paths that contain templates here, relative to this directory.
56- templates_path = ["_templates" ]
59+ templates_path = ["_templates" , sphinx_autosummary_accessors . templates_path ]
5760
5861# The suffix of source filenames.
5962source_suffix = ".rst"
294297 "python" : ("https://docs.python.org/3/" , None ),
295298 "xarray" : ("http://xarray.pydata.org/en/stable/" , None ),
296299}
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.
1515 examples/index
1616 roadmap
1717 contributing
18+ api
1819
1920Indices and tables
2021==================
You can’t perform that action at this time.
0 commit comments