|
7 | 7 | else: |
8 | 8 | import tomllib |
9 | 9 |
|
10 | | -from sphinx_asdf.conf import * # noqa: F403 |
11 | | - |
12 | 10 | # The standard library importlib.metadata returns duplicate entrypoints |
13 | 11 | # for all python versions up to and including 3.11 |
14 | 12 | # https://github.com/python/importlib_metadata/issues/410#issuecomment-1304258228 |
|
59 | 57 | ] |
60 | 58 |
|
61 | 59 | # Add intersphinx mappings |
62 | | -intersphinx_mapping["semantic_version"] = ("https://python-semanticversion.readthedocs.io/en/latest/", None) |
63 | | -intersphinx_mapping["jsonschema"] = ("https://python-jsonschema.readthedocs.io/en/stable/", None) |
64 | | -intersphinx_mapping["stdatamodels"] = ("https://stdatamodels.readthedocs.io/en/latest/", None) |
65 | | -intersphinx_mapping["pytest"] = ("https://docs.pytest.org/en/latest/", None) |
| 60 | +intersphinx_mapping = { |
| 61 | + "numpy": ("https://numpy.org/doc/stable/", None), |
| 62 | + "pypa-packaging": ("https://packaging.python.org/en/latest/", None), |
| 63 | + "pytest": ("https://docs.pytest.org/en/latest/", None), |
| 64 | + "python": ("https://docs.python.org/3/", None), |
| 65 | + "semantic_version": ("https://python-semanticversion.readthedocs.io/en/latest/", None), |
| 66 | + "stdatamodels": ("https://stdatamodels.readthedocs.io/en/latest/", None), |
| 67 | +} |
| 68 | + |
66 | 69 |
|
67 | 70 | # Docs are hosted as a "subproject" under the main project's domain: https://www.asdf-format.org/projects |
68 | 71 | # This requires including links to main project (asdf-website) and the other asdf subprojects |
|
77 | 80 | "asdf-wcs-schemas": ("https://www.asdf-format.org/projects/asdf-wcs-schemas/en/latest/", None), |
78 | 81 | } |
79 | 82 |
|
80 | | -intersphinx_mapping.update(subprojects) # noqa: F405 |
81 | 83 |
|
82 | | -extensions += ["sphinx_inline_tabs", "sphinx.ext.intersphinx", "sphinx.ext.extlinks"] # noqa: F405 |
| 84 | +intersphinx_mapping.update(subprojects) |
| 85 | + |
| 86 | +extensions = [ |
| 87 | + # TODO clean these up, do we need them all? |
| 88 | + "sphinx_inline_tabs", |
| 89 | + "sphinx.ext.intersphinx", |
| 90 | + "sphinx.ext.extlinks", |
| 91 | + "sphinx_asdf", |
| 92 | + "sphinx.ext.autodoc", |
| 93 | + "sphinx.ext.coverage", |
| 94 | + "sphinx.ext.inheritance_diagram", |
| 95 | + "sphinx.ext.intersphinx", |
| 96 | + "sphinx.ext.mathjax", |
| 97 | + "sphinx.ext.todo", |
| 98 | + "sphinx.ext.viewcode", |
| 99 | + "sphinxcontrib.jquery", |
| 100 | + "numpydoc", |
| 101 | + "sphinx_automodapi.automodapi", |
| 102 | + "sphinx_automodapi.smart_resolver", |
| 103 | +] |
| 104 | + |
| 105 | +# List of patterns, relative to source directory, that match files and |
| 106 | +# directories to ignore when looking for source files. |
| 107 | +exclude_patterns = ["_build"] |
| 108 | + |
| 109 | +# The suffix of source filenames. |
| 110 | +source_suffix = ".rst" |
| 111 | + |
| 112 | +# The master toctree document. |
| 113 | +master_doc = "index" |
| 114 | + |
| 115 | +# The reST default role (used for this markup: `text`) to use for all |
| 116 | +# documents. Set to the "smart" one. |
| 117 | +default_role = "obj" |
| 118 | + |
| 119 | +# Don't show summaries of the members in each class along with the |
| 120 | +# class' docstring |
| 121 | +numpydoc_show_class_members = False |
| 122 | + |
| 123 | +autosummary_generate = True |
| 124 | + |
| 125 | +automodapi_toctreedirnm = "api" |
| 126 | + |
| 127 | +# Class documentation should contain *both* the class docstring and |
| 128 | +# the __init__ docstring |
| 129 | +autoclass_content = "both" |
83 | 130 |
|
84 | 131 | html_theme = "furo" |
85 | 132 | html_static_path = ["_static"] |
86 | | -# Override default settings from sphinx_asdf / sphinx_astropy (incompatible with furo) |
87 | 133 | html_sidebars = {} |
88 | 134 | # The name of an image file (within the static path) to use as favicon of the |
89 | 135 | # docs. This file should be a Windows icon file (.ico) being 16x16 or 32x32 |
90 | 136 | # pixels large. |
91 | 137 | html_favicon = "_static/images/favicon.ico" |
92 | 138 | html_logo = "" |
| 139 | +html_last_updated_fmt = "%d %b %Y" |
93 | 140 |
|
94 | 141 | globalnavlinks = { |
95 | 142 | "ASDF Projects": "https://www.asdf-format.org", |
|
0 commit comments