|
40 | 40 |
|
41 | 41 | # If your documentation needs a minimal Sphinx version, state it here. |
42 | 42 | # |
43 | | -needs_sphinx = "4.0" |
| 43 | +needs_sphinx = "5.0" |
44 | 44 |
|
45 | 45 | # Add any Sphinx extension module names here, as strings. They can be |
46 | 46 | # extensions coming with Sphinx (named 'sphinx.ext.*') or your custom |
|
57 | 57 | "sphinx_gallery.gen_gallery", |
58 | 58 | "sphinxcontrib.bibtex", |
59 | 59 | "sphinx_copybutton", |
| 60 | + # 'sphinx.ext.napoleon', |
60 | 61 | "numpydoc", |
61 | 62 | # "IPython.sphinxext.ipython_console_highlighting", |
62 | 63 | ] |
|
68 | 69 | # generate autosummary even if no references |
69 | 70 | # -- sphinx.ext.autosummary |
70 | 71 | autosummary_generate = True |
71 | | -autodoc_default_options = {"inherited-members": None} |
| 72 | +autodoc_default_options = { |
| 73 | + "inherited-members": None, |
| 74 | +} |
| 75 | +autodoc_inherit_docstrings = True |
72 | 76 | # autodoc_typehints = "signature" |
73 | 77 |
|
74 | 78 | # -- numpydoc |
75 | 79 | # Below is needed to prevent errors |
76 | | -numpydoc_xref_param_type = True |
| 80 | +# numpydoc_xref_param_type = True |
| 81 | +numpydoc_show_inherited_class_members = False |
| 82 | +numpydoc_show_class_members = False |
77 | 83 | numpydoc_class_members_toctree = False |
78 | 84 | numpydoc_attributes_as_param_list = True |
79 | 85 | numpydoc_use_blockquotes = True |
80 | | -numpydoc_validate = True |
| 86 | +# numpydoc_validate = True |
81 | 87 |
|
82 | 88 | numpydoc_xref_ignore = { |
83 | 89 | # words |
|
108 | 114 | "no", |
109 | 115 | "attributes", |
110 | 116 | "dictionary", |
111 | | - "ArrayLike", |
112 | 117 | "pywhy_nx.MixedEdgeGraph", |
113 | 118 | # pywhy-graphs |
114 | 119 | "causal", |
115 | 120 | "Node", |
116 | 121 | "circular", |
117 | 122 | "endpoint", |
| 123 | + "TsNode", |
| 124 | + "tsdict", |
| 125 | + "TimeSeriesGraph", |
| 126 | + "TimeSeriesDiGraph", |
118 | 127 | # networkx |
119 | 128 | "node", |
120 | 129 | "nodes", |
|
136 | 145 | "Graph", |
137 | 146 | "sets", |
138 | 147 | "value", |
| 148 | + 'edges is None', 'nodes is None', 'G = nx.DiGraph(D)', |
139 | 149 | # shapes |
140 | 150 | "n_times", |
141 | 151 | "obj", |
|
159 | 169 | "nx.MultiDiGraph": "networkx.MultiDiGraph", |
160 | 170 | "NetworkXError": "networkx.NetworkXError", |
161 | 171 | "pgmpy.models.BayesianNetwork": "pgmpy.models.BayesianNetwork", |
162 | | - "ArrayLike": "numpy.ndarray", |
| 172 | + "ArrayLike": "numpy.typing.ArrayLike", |
163 | 173 | # pywhy-graphs |
164 | 174 | "ADMG": "pywhy_graphs.ADMG", |
165 | 175 | "PAG": "pywhy_graphs.PAG", |
166 | 176 | "CPDAG": "pywhy_graphs.CPDAG", |
167 | 177 | "pywhy_nx.MixedEdgeGraph": "pywhy_graphs.networkx.MixedEdgeGraph", |
| 178 | + "TimeSeriesGraph": "pywhy_graphs.classes.timeseries.TimeSeriesGraph", |
| 179 | + "TimeSeriesDiGraph": "pywhy_graphs.classes.timeseries.TimeSeriesDiGraph", |
| 180 | + "TimeSeriesMixedEdgeGraph": "pywhy_graphs.classes.timeseries.TimeSeriesMixedEdgeGraph", |
168 | 181 | # joblib |
169 | 182 | "joblib.Parallel": "joblib.Parallel", |
170 | 183 | # pandas |
|
199 | 212 |
|
200 | 213 | intersphinx_mapping = { |
201 | 214 | "python": ("https://docs.python.org/3", None), |
202 | | - "numpy": ("https://numpy.org/devdocs", None), |
203 | | - "scipy": ("https://scipy.github.io/devdocs", None), |
| 215 | + "numpy": ("https://numpy.org/doc/stable/", None), |
| 216 | + "neps": ("https://numpy.org/neps", None), |
| 217 | + "scipy": ("https://docs.scipy.org/doc/scipy/reference", None), |
204 | 218 | "networkx": ("https://networkx.org/documentation/latest/", None), |
205 | 219 | "nx-guides": ("https://networkx.org/nx-guides/", None), |
206 | 220 | "matplotlib": ("https://matplotlib.org/stable", None), |
207 | | - "pandas": ("https://pandas.pydata.org/pandas-docs/dev", None), |
208 | | - "pgmpy": ("https://pgmpy.org", None), |
| 221 | + "pandas": ("https://pandas.pydata.org/pandas-docs/stable", None), |
209 | 222 | "sklearn": ("https://scikit-learn.org/stable", None), |
210 | 223 | "joblib": ("https://joblib.readthedocs.io/en/latest", None), |
| 224 | + "pygraphviz": ("https://pygraphviz.github.io/documentation/stable/", None), |
| 225 | + "graphviz": ("https://graphviz.readthedocs.io/en/stable/", None), |
| 226 | + "sphinx-gallery": ("https://sphinx-gallery.github.io/stable/", None), |
211 | 227 | } |
212 | 228 | intersphinx_timeout = 5 |
213 | 229 |
|
|
315 | 331 | ("py:obj", "networkx.MixedEdgeGraph"), |
316 | 332 | ("py:obj", "pywhy_graphs.networkx.MixedEdgeGraph"), |
317 | 333 | ("py:obj", "pywhy_nx.MixedEdgeGraph"), |
| 334 | + ("py:class", "optional"), |
| 335 | + ("py:class", "array"), |
| 336 | + ("py:class", "pywhy_nx.classes.timeseries.TimeSeriesGraph"), |
| 337 | + ("py:class", "pywhy_nx.classes.timeseries.TimeSeriesDiGraph"), |
| 338 | + ("py:class", "pywhy_nx.classes.timeseries.TimeSeriesMixedEdgeGraph"), |
| 339 | + ("py:class", "pywhy_nx.classes.timeseries.StationaryTimeSeriesGraph"), |
| 340 | + ("py:class", "pywhy_nx.classes.timeseries.StationaryTimeSeriesDiGraph"), |
| 341 | + ("py:class", "pywhy_nx.classes.timeseries.StationaryTimeSeriesMixedEdgeGraph"), |
| 342 | + ("py:class", "pywhy_graphs.classes.timeseries.base.tsdict"), |
318 | 343 | ("py:class", "networkx.classes.mixededge.MixedEdgeGraph"), |
319 | 344 | ("py:class", "numpy._typing._array_like._SupportsArray"), |
320 | 345 | ("py:class", "numpy._typing._nested_sequence._NestedSequence"), |
321 | 346 | ] |
| 347 | +nitpick_ignore_regex = [ |
| 348 | + ('py:obj', r"pywhy_graphs\.classes\.timeseries*"), |
| 349 | + ('py:obj', r"networkx*"), |
| 350 | +] |
322 | 351 |
|
323 | 352 |
|
324 | 353 | # -- Warnings management ----------------------------------------------------- |
|
0 commit comments