-
Notifications
You must be signed in to change notification settings - Fork 108
/
Copy pathconf.py
64 lines (56 loc) · 1.82 KB
/
conf.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
"""Sphinx configuration."""
# project information
project = "sectionproperties"
author = "Robbie van Leeuwen"
copyright = "2024, Robbie van Leeuwen" # noqa: A001
# sphinx config
templates_path = ["_templates"]
exclude_patterns = ["_build"]
extensions = [
"sphinx.ext.autodoc",
"sphinx.ext.autosummary",
"sphinx.ext.intersphinx",
"sphinx.ext.mathjax",
"sphinx.ext.napoleon",
"sphinx.ext.viewcode",
"matplotlib.sphinxext.plot_directive",
"nbsphinx",
"sphinx_copybutton",
"sphinxext.opengraph",
]
# autodoc config
autodoc_member_order = "bysource"
autodoc_typehints = "both"
autodoc_typehints_description_target = "documented_params"
# napoleon config
napoleon_numpy_docstring = False
napoleon_include_init_with_doc = True
napoleon_use_admonition_for_examples = True
napoleon_use_ivar = True
# nbsphinx config
nbsphinx_execute_arguments = [
"--InlineBackend.figure_formats={'svg', 'pdf'}",
"--InlineBackend.rc=figure.dpi=96",
]
# intersphinx mapping
intersphinx_mapping = {
"python": ("https://docs.python.org/3", None),
"numpy": ("https://numpy.org/doc/stable/", None),
"scipy": ("https://docs.scipy.org/doc/scipy/", None),
"matplotlib": ("https://matplotlib.org/stable/", None),
"shapely": ("https://shapely.readthedocs.io/en/stable/", None),
}
# html theme
html_theme = "furo"
html_static_path = ["_static"]
html_favicon = "_static/favicon.ico"
html_theme_options = {
"light_logo": "logo-light-mode.png", # add light mode logo
"dark_logo": "logo-dark-mode.png", # add dark mode logo
"sidebar_hide_name": True, # hide name of project in sidebar (already in logo)
"source_repository": "https://github.com/robbievanleeuwen/section-properties",
"source_branch": "master",
"source_directory": "docs/",
}
pygments_style = "sphinx"
pygments_dark_style = "monokai"