|
24 | 24 |
|
25 | 25 | # -- General configuration ----------------------------------------------- |
26 | 26 |
|
| 27 | +# sphinxcontrib.apidoc was added to sphinx in 8.2.0 as sphinx.etx.apidoc |
| 28 | +needs_sphinx = "8.2.0" |
| 29 | + |
27 | 30 | # Add any Sphinx extension module names here, as strings. They can be extensions |
28 | 31 | # coming with Sphinx (named 'sphinx.ext.*') or your custom ones. |
29 | 32 | extensions = [ |
30 | 33 | 'sphinx.ext.doctest', 'sphinx.ext.autodoc', 'sphinx.ext.napoleon', 'sphinx.ext.intersphinx', |
31 | | - 'sphinx_reredirects', 'doi_role', |
| 34 | + 'sphinx.ext.apidoc', 'sphinx_reredirects', 'doi_role', "sphinx_autodoc_typehints", |
32 | 35 | ] |
33 | 36 |
|
34 | 37 | # DocTest Settings |
|
52 | 55 | Basemap = None |
53 | 56 | ''' |
54 | 57 |
|
| 58 | +# API docs |
| 59 | +apidoc_modules = [ |
| 60 | + { |
| 61 | + "path": "../../pyresample", |
| 62 | + "destination": "api/", |
| 63 | + "exclude_patterns": [ |
| 64 | + # Prefer to not document test modules. Most users will look at |
| 65 | + # source code if needed and we want to avoid documentation builds |
| 66 | + # suffering from import-time test data creation. We want to keep |
| 67 | + # things contributors might be interested in like satpy.tests.utils. |
| 68 | + "../../pyresample/test/test_*.py", |
| 69 | + "../../pyresample/test/**/test_*.py", |
| 70 | + ], |
| 71 | + }, |
| 72 | +] |
| 73 | +apidoc_separate_modules = True |
| 74 | +apidoc_include_private = True |
| 75 | + |
| 76 | +autodoc_mock_imports = ["hashlib._Hash"] |
| 77 | +autodoc_type_aliases = { |
| 78 | + "ArrayLike": "numpy.typing.ArrayLike", |
| 79 | + "DTypeLike": "numpy.typing.DTypeLike", |
| 80 | +} |
| 81 | +autodoc_default_options = { |
| 82 | + "special-members": "__init__, __reduce_ex__", |
| 83 | +} |
| 84 | +nitpick_ignore_regex: list[tuple[str, str]] = [] |
| 85 | +autoclass_content = "both" # append class __init__ docstring to the class docstring |
| 86 | + |
| 87 | + |
| 88 | + |
55 | 89 | # Napoleon Settings (to support numpy style docs) |
56 | 90 | napoleon_numpy_docstring = True |
57 | 91 | napoleon_use_admonition_for_examples = True |
|
252 | 286 | 'trollsift': ('https://trollsift.readthedocs.io/en/stable', None), |
253 | 287 | 'trollimage': ('https://trollimage.readthedocs.io/en/stable', None), |
254 | 288 | 'pyproj': ('https://pyproj4.github.io/pyproj/dev/', None), |
255 | | - 'proj': ('https://proj.org', None), |
| 289 | + 'proj': ('https://proj.org/en/stable', None), |
256 | 290 | 'satpy': ('https://satpy.readthedocs.io/en/stable', None), |
257 | 291 | 'donfig': ('https://donfig.readthedocs.io/en/latest', None), |
258 | 292 | } |
0 commit comments