|
| 1 | +import importlib.metadata |
| 2 | +import os |
| 3 | +import sys |
| 4 | +from datetime import datetime |
| 5 | + |
| 6 | +sys.path.insert(0, os.path.abspath("../..")) |
| 7 | + |
| 8 | +# -- Project information ----------------------------------------------------- |
| 9 | +# https://www.sphinx-doc.org/en/master/usage/configuration.html#project-information |
| 10 | + |
| 11 | +project = "SpatialLeiden" |
| 12 | +copyright = f""" |
| 13 | +{datetime.now():%Y}, Niklas Müller-Bötticher, Shashwat Sahay, Naveed Ishaque, Roland Eils, |
| 14 | +Berlin Institute of Health @ Charité""" |
| 15 | +author = "Niklas Müller-Bötticher & Shashwat Sahay" |
| 16 | +version = importlib.metadata.version("spatialleiden") |
| 17 | +release = version |
| 18 | + |
| 19 | +# -- General configuration --------------------------------------------------- |
| 20 | +# https://www.sphinx-doc.org/en/master/usage/configuration.html#general-configuration |
| 21 | + |
| 22 | + |
| 23 | +extensions = [ |
| 24 | + "sphinx_copybutton", |
| 25 | + "sphinx.ext.autodoc", |
| 26 | + "sphinx.ext.intersphinx", |
| 27 | + "sphinx.ext.napoleon", |
| 28 | + "sphinx.ext.autosummary", |
| 29 | + "sphinx.ext.mathjax", |
| 30 | +] |
| 31 | + |
| 32 | + |
| 33 | +autodoc_typehints = "none" |
| 34 | +autodoc_typehints_format = "short" |
| 35 | + |
| 36 | +python_use_unqualified_type_names = True # still experimental |
| 37 | + |
| 38 | +autosummary_generate = True |
| 39 | +autosummary_imported_members = True |
| 40 | + |
| 41 | +nitpicky = True |
| 42 | +nitpick_ignore = [("py:class", "optional")] |
| 43 | + |
| 44 | + |
| 45 | +exclude_patterns: list[str] = [] |
| 46 | + |
| 47 | +intersphinx_mapping = dict( |
| 48 | + anndata=("https://anndata.readthedocs.io/en/stable/", None), |
| 49 | + matplotlib=("https://matplotlib.org/stable/", None), |
| 50 | + numpy=("https://numpy.org/doc/stable/", None), |
| 51 | + python=("https://docs.python.org/3", None), |
| 52 | + scanpy=("https://scanpy.readthedocs.io/en/stable/", None), |
| 53 | + scipy=("https://docs.scipy.org/doc/scipy/", None), |
| 54 | +) |
| 55 | + |
| 56 | +# -- Options for HTML output ------------------------------------------------- |
| 57 | +# https://www.sphinx-doc.org/en/master/usage/configuration.html#options-for-html-output |
| 58 | + |
| 59 | +html_theme = "sphinx_rtd_theme" |
| 60 | +html_static_path: list[str] = [] |
0 commit comments