|
40 | 40 | }
|
41 | 41 |
|
42 | 42 | extensions = [
|
| 43 | + #"sphinxcontrib.mermaid", |
| 44 | + "sphinx.ext.extlinks", |
| 45 | + "sphinx.ext.napoleon", |
43 | 46 | 'sphinx.ext.duration',
|
44 | 47 | 'sphinx.ext.doctest',
|
45 | 48 | 'sphinx.ext.autodoc',
|
46 |
| - # 'autoapi.extension', |
| 49 | + 'autoapi.extension', |
47 | 50 | 'sphinx.ext.autosummary',
|
48 | 51 | 'sphinx_autosummary_accessors',
|
49 | 52 | 'sphinx.ext.intersphinx',
|
50 | 53 | 'sphinx.ext.viewcode',
|
51 | 54 | 'sphinx.ext.mathjax',
|
52 | 55 | 'sphinx_gallery.gen_gallery',
|
53 |
| - 'numpydoc', |
| 56 | + #'numpydoc', |
54 | 57 | 'matplotlib.sphinxext.plot_directive',
|
55 | 58 | ]
|
56 | 59 |
|
57 | 60 | intersphinx_mapping = {
|
58 | 61 | 'python': ('https://docs.python.org/3/', None),
|
| 62 | + 'numpy': ('https://numpy.org/doc/stable', None), |
| 63 | + 'matplotlib': ('https://matplotlib.org/stable/', None), |
| 64 | + 'scipy': ('https://docs.scipy.org/doc/scipy', None), |
| 65 | + 'cftime': ('https://unidata.github.io/cftime', None), |
59 | 66 | 'sphinx': ('https://www.sphinx-doc.org/en/master/', None),
|
60 |
| - "xarray": ("https://xarray.pydata.org/en/stable/", None), |
61 |
| - "pandas": ("https://pandas.pydata.org/pandas-docs/stable", None), |
| 67 | + 'xarray': ('https://xarray.pydata.org/en/stable/', None), |
| 68 | + 'pandas': ("https://pandas.pydata.org/pandas-docs/stable", None), |
62 | 69 | }
|
63 |
| -intersphinx_disabled_domains = ['std'] |
| 70 | +#intersphinx_disabled_domains = ['std'] |
64 | 71 |
|
65 | 72 | templates_path = ["_templates", sphinx_autosummary_accessors.templates_path]
|
66 | 73 |
|
|
77 | 84 | }
|
78 | 85 |
|
79 | 86 | autosummary_generate = True
|
80 |
| - |
81 |
| -autodoc_typehints = "description" |
| 87 | +autodoc_typehints = "none" |
82 | 88 | autodoc_typehints_description_target = "documented"
|
83 | 89 | autodoc_default_options = {
|
84 | 90 | "members": True,
|
85 | 91 | "undoc-members": True,
|
86 | 92 | "private-members": True,
|
87 | 93 | }
|
88 |
| -napoleon_use_param = True |
89 |
| -napoleon_use_rtype = True |
| 94 | + |
| 95 | +napoleon_google_docstring = False |
| 96 | +napoleon_numpy_docstring = True |
| 97 | +napoleon_use_param = False |
| 98 | +napoleon_use_ivar = True |
| 99 | +napoleon_use_rtype = False |
| 100 | +napoleon_preprocess_types = True |
| 101 | +napoleon_type_aliases = { |
| 102 | + # general terms |
| 103 | + "sequence": ":term:`sequence`", |
| 104 | + "iterable": ":term:`iterable`", |
| 105 | + "callable": ":py:func:`callable`", |
| 106 | + "dict_like": ":term:`dict-like <mapping>`", |
| 107 | + "dict-like": ":term:`dict-like <mapping>`", |
| 108 | + "path-like": ":term:`path-like <path-like object>`", |
| 109 | + "mapping": ":term:`mapping`", |
| 110 | + "file-like": ":term:`file-like <file-like object>`", |
| 111 | + # special terms |
| 112 | + # "same type as caller": "*same type as caller*", # does not work, yet |
| 113 | + # "same type as values": "*same type as values*", # does not work, yet |
| 114 | + # stdlib type aliases |
| 115 | + "MutableMapping": "~collections.abc.MutableMapping", |
| 116 | + "sys.stdout": ":obj:`sys.stdout`", |
| 117 | + "timedelta": "~datetime.timedelta", |
| 118 | + "string": ":class:`string <str>`", |
| 119 | + # numpy terms |
| 120 | + "array_like": ":term:`array_like`", |
| 121 | + "array-like": ":term:`array-like <array_like>`", |
| 122 | + "scalar": ":term:`scalar`", |
| 123 | + "array": ":term:`array`", |
| 124 | + "hashable": ":term:`hashable <name>`", |
| 125 | + # matplotlib terms |
| 126 | + "color-like": ":py:func:`color-like <matplotlib.colors.is_color_like>`", |
| 127 | + "matplotlib colormap name": ":doc:`matplotlib colormap name <matplotlib:gallery/color/colormap_reference>`", |
| 128 | + "matplotlib axes object": ":py:class:`matplotlib axes object <matplotlib.axes.Axes>`", |
| 129 | + "colormap": ":py:class:`colormap <matplotlib.colors.Colormap>`", |
| 130 | + # xarray terms |
| 131 | + "dim name": ":term:`dimension name <name>`", |
| 132 | + "var name": ":term:`variable name <name>`", |
| 133 | + # objects without namespace: xarray |
| 134 | + "DataArray": "~xarray.DataArray", |
| 135 | + "Dataset": "~xarray.Dataset", |
| 136 | + "Variable": "~xarray.Variable", |
| 137 | + "DataTree": "~xarray.DataTree", |
| 138 | + "DatasetGroupBy": "~xarray.core.groupby.DatasetGroupBy", |
| 139 | + "DataArrayGroupBy": "~xarray.core.groupby.DataArrayGroupBy", |
| 140 | + "Grouper": "~xarray.groupers.Grouper", |
| 141 | + "Resampler": "~xarray.groupers.Resampler", |
| 142 | + # objects without namespace: numpy |
| 143 | + "ndarray": "~numpy.ndarray", |
| 144 | + "MaskedArray": "~numpy.ma.MaskedArray", |
| 145 | + "dtype": "~numpy.dtype", |
| 146 | + "ComplexWarning": "~numpy.ComplexWarning", |
| 147 | + # objects without namespace: pandas |
| 148 | + "Index": "~pandas.Index", |
| 149 | + "MultiIndex": "~pandas.MultiIndex", |
| 150 | + "CategoricalIndex": "~pandas.CategoricalIndex", |
| 151 | + "TimedeltaIndex": "~pandas.TimedeltaIndex", |
| 152 | + "DatetimeIndex": "~pandas.DatetimeIndex", |
| 153 | + "IntervalIndex": "~pandas.IntervalIndex", |
| 154 | + "Series": "~pandas.Series", |
| 155 | + "DataFrame": "~pandas.DataFrame", |
| 156 | + "Categorical": "~pandas.Categorical", |
| 157 | + "Path": "~~pathlib.Path", |
| 158 | + # objects with abbreviated namespace (from pandas) |
| 159 | + "pd.Index": "~pandas.Index", |
| 160 | + "pd.NaT": "~pandas.NaT", |
| 161 | +} |
90 | 162 |
|
91 | 163 | # numpydoc_show_class_members = False
|
92 | 164 | # Report warnings for all validation checks except the ones listed after "all"
|
|
0 commit comments