-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy pathconf.py
More file actions
54 lines (44 loc) · 1.38 KB
/
conf.py
File metadata and controls
54 lines (44 loc) · 1.38 KB
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
"""Sphinx configuration for python-discovery documentation."""
from __future__ import annotations
from datetime import datetime, timezone
from python_discovery import __version__
company = "tox-dev"
name = "python-discovery"
version = ".".join(__version__.split(".")[:2])
release = __version__
copyright = f"2026-{datetime.now(tz=timezone.utc).year}, {company}" # noqa: A001
extensions = [
"sphinx.ext.autodoc",
"sphinx.ext.autosectionlabel",
"sphinx.ext.extlinks",
"sphinx.ext.intersphinx",
"sphinx_autodoc_typehints",
"sphinxcontrib.mermaid",
]
extlinks = {
"issue": ("https://github.com/tox-dev/python-discovery/issues/%s", "#%s"),
"pull": ("https://github.com/tox-dev/python-discovery/pull/%s", "PR #%s"),
"user": ("https://github.com/%s", "@%s"),
}
intersphinx_mapping = {
"python": ("https://docs.python.org/3", None),
}
templates_path = []
source_suffix = ".rst"
exclude_patterns = ["_build", "changelog/*.rst"]
main_doc = "index"
pygments_style = "default"
always_document_param_types = True
project = name
html_theme = "furo"
html_title = project
html_last_updated_fmt = datetime.now(tz=timezone.utc).isoformat()
pygments_dark_style = "monokai"
html_show_sourcelink = False
html_static_path = ["_static"]
html_theme_options = {
"light_logo": "logo.svg",
"dark_logo": "logo.svg",
"sidebar_hide_name": True,
}
html_css_files = ["custom.css"]