2024-02-02 09:01:31 +00:00
|
|
|
# Configuration file for the Sphinx documentation builder.
|
|
|
|
#
|
|
|
|
# For the full list of built-in configuration values, see the documentation:
|
|
|
|
# https://www.sphinx-doc.org/en/master/usage/configuration.html
|
|
|
|
|
|
|
|
# -- Project information -----------------------------------------------------
|
|
|
|
# https://www.sphinx-doc.org/en/master/usage/configuration.html#project-information
|
|
|
|
|
2024-05-21 04:16:16 +00:00
|
|
|
import importlib.metadata as metadata
|
|
|
|
|
2024-02-05 23:39:29 +00:00
|
|
|
project = "numpydantic"
|
|
|
|
copyright = "2024, Jonny Saunders"
|
|
|
|
author = "Jonny Saunders"
|
2024-05-21 04:16:16 +00:00
|
|
|
release = metadata.version("numpydantic")
|
2024-02-02 09:01:31 +00:00
|
|
|
|
|
|
|
# -- General configuration ---------------------------------------------------
|
|
|
|
# https://www.sphinx-doc.org/en/master/usage/configuration.html#general-configuration
|
|
|
|
|
|
|
|
extensions = [
|
2024-02-05 23:39:29 +00:00
|
|
|
"sphinx.ext.napoleon",
|
|
|
|
"sphinx.ext.autodoc",
|
|
|
|
"sphinxcontrib.autodoc_pydantic",
|
|
|
|
"sphinx.ext.intersphinx",
|
2024-05-09 07:42:44 +00:00
|
|
|
"sphinx.ext.viewcode",
|
2024-05-21 02:17:46 +00:00
|
|
|
"sphinx.ext.doctest",
|
2024-02-02 09:01:31 +00:00
|
|
|
"sphinx_design",
|
2024-02-05 23:39:29 +00:00
|
|
|
"myst_parser",
|
|
|
|
"sphinx.ext.todo",
|
2024-02-02 09:01:31 +00:00
|
|
|
]
|
|
|
|
|
2024-02-05 23:39:29 +00:00
|
|
|
templates_path = ["_templates"]
|
|
|
|
exclude_patterns = ["_build", "Thumbs.db", ".DS_Store"]
|
2024-02-02 09:01:31 +00:00
|
|
|
|
|
|
|
intersphinx_mapping = {
|
2024-02-05 23:39:29 +00:00
|
|
|
"python": ("https://docs.python.org/3", None),
|
|
|
|
"numpy": ("https://numpy.org/doc/stable/", None),
|
|
|
|
"pydantic": ("https://docs.pydantic.dev/latest/", None),
|
|
|
|
"linkml": ("https://linkml.io/linkml/", None),
|
|
|
|
"linkml_runtime": ("https://linkml.io/linkml/", None),
|
|
|
|
"linkml-runtime": ("https://linkml.io/linkml/", None),
|
2024-04-09 01:36:47 +00:00
|
|
|
"dask": ("https://docs.dask.org/en/stable/", None),
|
|
|
|
"h5py": ("https://docs.h5py.org/en/stable/", None),
|
2024-04-30 02:49:38 +00:00
|
|
|
"zarr": ("https://zarr.readthedocs.io/en/stable/", None),
|
2024-02-02 09:01:31 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
# -- Options for HTML output -------------------------------------------------
|
|
|
|
# https://www.sphinx-doc.org/en/master/usage/configuration.html#options-for-html-output
|
|
|
|
|
2024-02-05 23:39:29 +00:00
|
|
|
html_theme = "furo"
|
|
|
|
html_static_path = ["_static"]
|
2024-02-02 09:01:31 +00:00
|
|
|
|
|
|
|
# autodoc
|
2024-02-05 23:39:29 +00:00
|
|
|
autodoc_pydantic_model_show_json_error_strategy = "coerce"
|
2024-02-02 09:01:31 +00:00
|
|
|
autodoc_pydantic_model_show_json = False
|
2024-05-09 07:42:44 +00:00
|
|
|
|
2024-02-02 09:01:31 +00:00
|
|
|
autoclass_content = "both"
|
2024-02-05 23:39:29 +00:00
|
|
|
autodoc_member_order = "bysource"
|
2024-02-02 09:01:31 +00:00
|
|
|
add_module_names = False
|
|
|
|
|
|
|
|
# Napoleon settings
|
|
|
|
napoleon_google_docstring = True
|
|
|
|
napoleon_numpy_docstring = True
|
|
|
|
napoleon_include_init_with_doc = False
|
|
|
|
napoleon_include_private_with_doc = False
|
|
|
|
napoleon_include_special_with_doc = True
|
|
|
|
napoleon_use_admonition_for_examples = False
|
|
|
|
napoleon_use_admonition_for_notes = False
|
|
|
|
napoleon_use_admonition_for_references = False
|
|
|
|
napoleon_use_ivar = False
|
|
|
|
napoleon_use_param = True
|
|
|
|
napoleon_use_rtype = True
|
|
|
|
napoleon_preprocess_types = False
|
|
|
|
napoleon_type_aliases = None
|
|
|
|
napoleon_attr_annotations = True
|
|
|
|
|
|
|
|
# todo
|
|
|
|
todo_include_todos = True
|
2024-02-05 23:39:29 +00:00
|
|
|
todo_link_only = True
|