a b/docs/source/conf.py
1
# Configuration file for the Sphinx documentation builder.
2
#
3
# For the full list of built-in configuration values, see the documentation:
4
# https://www.sphinx-doc.org/en/master/usage/configuration.html
5
6
import inmoose
7
8
# -- Project information -----------------------------------------------------
9
# https://www.sphinx-doc.org/en/master/usage/configuration.html#project-information
10
11
project = "InMoose"
12
copyright = "2022-2024, Maximilien Colange"
13
author = "Maximilien Colange"
14
15
version = inmoose.__version__
16
release = version
17
18
# -- General configuration ---------------------------------------------------
19
# https://www.sphinx-doc.org/en/master/usage/configuration.html#general-configuration
20
21
# logo
22
html_logo = "inmoose.png"
23
html_favicon = "epigenelogo_favicon.png"
24
25
extensions = [
26
    "sphinx.ext.napoleon",
27
    "sphinx.ext.autodoc",
28
    "sphinx.ext.autosummary",
29
    "sphinx.ext.extlinks",
30
    "sphinx_rtd_theme",
31
    "sphinxcontrib.repl",
32
]
33
34
nitpick_ignore = [("py:class", "optional"), ("py:class", "array-like")]
35
36
# Napoleon settings
37
# https://www.sphinx-doc.org/en/master/usage/extensions/napoleon.html
38
napoleon_google_docstring = False
39
napoleon_numpy_docstring = True
40
41
# Turn on autosummary
42
autosummary_generate = True
43
autosummary_generate_overwrite = False
44
45
# Add a doi role
46
extlinks = {
47
    "doi": ("https://dx.doi.org/%s", "doi:%s"),
48
}
49
50
templates_path = ["_templates"]
51
exclude_patterns = ["_build", "Thumbs.db", ".DS_Store"]
52
53
54
# -- Options for HTML output -------------------------------------------------
55
# https://www.sphinx-doc.org/en/master/usage/configuration.html#options-for-html-output
56
57
html_theme = "sphinx_rtd_theme"
58
html_static_path = ["_static"]
59
60
# TODO temporary work-around
61
autodoc_mock_imports = ["edgepy_cpp"]