|
1 | | -# noqa: D100 |
2 | 1 | from __future__ import annotations |
3 | 2 |
|
| 3 | +from datetime import datetime, timezone |
| 4 | + |
4 | 5 | from py_discovery import __version__ |
5 | 6 |
|
6 | | -project = name = "py_discovery" |
7 | 7 | company = "tox-dev" |
8 | | -copyright = f"{company}" # noqa: A001 |
9 | | -version, release = __version__, __version__.split("+")[0] |
| 8 | +name = "py-discovery" |
| 9 | +version = ".".join(__version__.split(".")[:2]) |
| 10 | +release = __version__ |
| 11 | +copyright = f"2024-{datetime.now(tz=timezone.utc).year}, {company}" # noqa: A001 |
10 | 12 |
|
11 | 13 | extensions = [ |
| 14 | + "sphinx.ext.autodoc", |
12 | 15 | "sphinx.ext.autosectionlabel", |
13 | 16 | "sphinx.ext.extlinks", |
14 | | - "sphinx.ext.autodoc", |
15 | | - "sphinx_autodoc_typehints", |
16 | | - "sphinx.ext.viewcode", |
17 | 17 | "sphinx.ext.intersphinx", |
| 18 | + "sphinx_autodoc_typehints", |
18 | 19 | ] |
19 | | -master_doc, source_suffix = "index", ".rst" |
20 | | - |
21 | | -html_theme = "furo" |
22 | | -html_title, html_last_updated_fmt = "py-discovery docs", "%Y-%m-%dT%H:%M:%S" |
23 | | -pygments_style, pygments_dark_style = "sphinx", "monokai" |
24 | | - |
25 | | -autoclass_content, autodoc_typehints = "both", "none" |
26 | | -autodoc_default_options = {"members": True, "member-order": "bysource", "undoc-members": True, "show-inheritance": True} |
27 | | -inheritance_alias = {} |
28 | 20 |
|
29 | | -extlinks = { |
30 | | - "issue": ("https://github.com/tox-dev/py-discovery/issues/%s", "#%s"), |
31 | | - "pull": ("https://github.com/tox-dev/py-discovery/pull/%s", "PR #%s"), |
32 | | - "user": ("https://github.com/%s", "@%s"), |
33 | | -} |
34 | 21 | intersphinx_mapping = { |
35 | 22 | "python": ("https://docs.python.org/3", None), |
36 | | - "packaging": ("https://packaging.pypa.io/en/latest", None), |
37 | 23 | } |
38 | 24 |
|
39 | | -nitpicky = True |
40 | | -nitpick_ignore = [] |
| 25 | +templates_path = [] |
| 26 | +source_suffix = ".rst" |
| 27 | +exclude_patterns = ["_build"] |
| 28 | + |
| 29 | +main_doc = "index" |
| 30 | +pygments_style = "default" |
| 31 | +always_document_param_types = True |
| 32 | +project = name |
| 33 | + |
| 34 | +html_theme = "furo" |
| 35 | +html_title = project |
| 36 | +html_last_updated_fmt = datetime.now(tz=timezone.utc).isoformat() |
| 37 | +pygments_dark_style = "monokai" |
| 38 | +html_show_sourcelink = False |
0 commit comments