|
39 | 39 | # Add any Sphinx extension module names here, as strings. They can be extensions
|
40 | 40 | # coming with Sphinx (named 'sphinx.ext.*') or your custom ones.
|
41 | 41 | extensions = [
|
42 |
| - "numpydoc", |
43 | 42 | "sphinx.ext.autodoc",
|
44 | 43 | "sphinx.ext.viewcode",
|
45 | 44 | "sphinx.ext.linkcode",
|
|
57 | 56 | ]
|
58 | 57 |
|
59 | 58 | extlinks = {
|
60 |
| - "issue": ("https://github.com/TomNicholas/datatree/issues/%s", "GH#"), |
61 |
| - "pull": ("https://github.com/TomNicholas/datatree/pull/%s", "GH#"), |
| 59 | + "issue": ("https://github.com/xarray-contrib/datatree/issues/%s", "GH#%s"), |
| 60 | + "pull": ("https://github.com/xarray-contrib/datatree/pull/%s", "GH#%s"), |
62 | 61 | }
|
63 | 62 | # Add any paths that contain templates here, relative to this directory.
|
64 | 63 | templates_path = ["_templates", sphinx_autosummary_accessors.templates_path]
|
65 | 64 |
|
66 | 65 | # Generate the API documentation when building
|
67 | 66 | autosummary_generate = True
|
68 | 67 |
|
| 68 | + |
| 69 | +# Napoleon configurations |
| 70 | + |
| 71 | +napoleon_google_docstring = False |
| 72 | +napoleon_numpy_docstring = True |
| 73 | +napoleon_use_param = False |
| 74 | +napoleon_use_rtype = False |
| 75 | +napoleon_preprocess_types = True |
| 76 | +napoleon_type_aliases = { |
| 77 | + # general terms |
| 78 | + "sequence": ":term:`sequence`", |
| 79 | + "iterable": ":term:`iterable`", |
| 80 | + "callable": ":py:func:`callable`", |
| 81 | + "dict_like": ":term:`dict-like <mapping>`", |
| 82 | + "dict-like": ":term:`dict-like <mapping>`", |
| 83 | + "path-like": ":term:`path-like <path-like object>`", |
| 84 | + "mapping": ":term:`mapping`", |
| 85 | + "file-like": ":term:`file-like <file-like object>`", |
| 86 | + # special terms |
| 87 | + # "same type as caller": "*same type as caller*", # does not work, yet |
| 88 | + # "same type as values": "*same type as values*", # does not work, yet |
| 89 | + # stdlib type aliases |
| 90 | + "MutableMapping": "~collections.abc.MutableMapping", |
| 91 | + "sys.stdout": ":obj:`sys.stdout`", |
| 92 | + "timedelta": "~datetime.timedelta", |
| 93 | + "string": ":class:`string <str>`", |
| 94 | + # numpy terms |
| 95 | + "array_like": ":term:`array_like`", |
| 96 | + "array-like": ":term:`array-like <array_like>`", |
| 97 | + "scalar": ":term:`scalar`", |
| 98 | + "array": ":term:`array`", |
| 99 | + "hashable": ":term:`hashable <name>`", |
| 100 | + # matplotlib terms |
| 101 | + "color-like": ":py:func:`color-like <matplotlib.colors.is_color_like>`", |
| 102 | + "matplotlib colormap name": ":doc:`matplotlib colormap name <matplotlib:gallery/color/colormap_reference>`", |
| 103 | + "matplotlib axes object": ":py:class:`matplotlib axes object <matplotlib.axes.Axes>`", |
| 104 | + "colormap": ":py:class:`colormap <matplotlib.colors.Colormap>`", |
| 105 | + # objects without namespace: xarray |
| 106 | + "DataArray": "~xarray.DataArray", |
| 107 | + "Dataset": "~xarray.Dataset", |
| 108 | + "Variable": "~xarray.Variable", |
| 109 | + "DatasetGroupBy": "~xarray.core.groupby.DatasetGroupBy", |
| 110 | + "DataArrayGroupBy": "~xarray.core.groupby.DataArrayGroupBy", |
| 111 | + # objects without namespace: numpy |
| 112 | + "ndarray": "~numpy.ndarray", |
| 113 | + "MaskedArray": "~numpy.ma.MaskedArray", |
| 114 | + "dtype": "~numpy.dtype", |
| 115 | + "ComplexWarning": "~numpy.ComplexWarning", |
| 116 | + # objects without namespace: pandas |
| 117 | + "Index": "~pandas.Index", |
| 118 | + "MultiIndex": "~pandas.MultiIndex", |
| 119 | + "CategoricalIndex": "~pandas.CategoricalIndex", |
| 120 | + "TimedeltaIndex": "~pandas.TimedeltaIndex", |
| 121 | + "DatetimeIndex": "~pandas.DatetimeIndex", |
| 122 | + "Series": "~pandas.Series", |
| 123 | + "DataFrame": "~pandas.DataFrame", |
| 124 | + "Categorical": "~pandas.Categorical", |
| 125 | + "Path": "~~pathlib.Path", |
| 126 | + # objects with abbreviated namespace (from pandas) |
| 127 | + "pd.Index": "~pandas.Index", |
| 128 | + "pd.NaT": "~pandas.NaT", |
| 129 | +} |
| 130 | + |
69 | 131 | # The suffix of source filenames.
|
70 | 132 | source_suffix = ".rst"
|
71 | 133 |
|
|
177 | 239 | # pixels large.
|
178 | 240 | # html_favicon = None
|
179 | 241 |
|
180 |
| -# Add any paths that contain custom static files (such as style sheets) here, |
181 |
| -# relative to this directory. They are copied after the builtin static files, |
182 |
| -# so a file named "default.css" will overwrite the builtin "default.css". |
183 |
| -html_static_path = ["_static"] |
184 |
| - |
185 | 242 | # If not '', a 'Last updated on:' timestamp is inserted at every page bottom,
|
186 | 243 | # using the given strftime format.
|
187 | 244 | # html_last_updated_fmt = '%b %d, %Y'
|
|
0 commit comments