-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconf.py
97 lines (76 loc) · 2.63 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
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
#!/usr/bin/env python3
import datetime
import os
import sys
from importlib import metadata
sys.path.insert(0, os.path.abspath(".."))
sys.path.insert(0, os.path.abspath("../pytest_iam"))
# -- General configuration ------------------------------------------------
extensions = [
"sphinx.ext.autodoc",
"sphinx.ext.doctest",
"sphinx.ext.graphviz",
"sphinx.ext.intersphinx",
"sphinx.ext.todo",
"sphinx.ext.viewcode",
"sphinx_issues",
"myst_parser",
]
templates_path = ["_templates"]
source_suffix = [".rst", ".md"]
master_doc = "index"
project = "pytest_iam"
year = datetime.datetime.now().strftime("%Y")
copyright = f"{year}, Yaal Coop"
author = "Yaal Coop"
release = metadata.version("pytest_iam")
version = "{}.{}".format(*tuple(map(int, release.split(".")[:2])))
language = "en"
exclude_patterns = []
pygments_style = "sphinx"
todo_include_todos = False
intersphinx_mapping = {
"python": ("https://docs.python.org/3", None),
"canaille": ("https://canaille.readthedocs.io/en/latest/", None),
"flask": ("https://flask.palletsprojects.com/en/latest/", None),
"werkzeug": ("https://werkzeug.palletsprojects.com/en/latest/", None),
"authlib": ("https://docs.authlib.org/en/latest/", None),
}
issues_uri = "https://github.com/pytest-dev/pytest_iam/-/issues/{issue}"
issues_pr_uri = "https://github.com/pytest-dev/pytest_iam/-/merge_requests/{pr}"
issues_commit_uri = "https://github.com/pytest-dev/pytest_iam/-/commit/{commit}"
# -- Options for HTML output ----------------------------------------------
html_theme = "shibuya"
html_baseurl = "https://pytest-iam.readthedocs.io"
html_theme_options = {
"github_url": "https://github.com/pytest-dev/pytest-iam",
}
html_context = {
"source_type": "github",
"source_user": "pytest-dev",
"source_repo": "pytest-iam",
"source_version": "main",
"source_docs_path": "/doc/",
}
# -- Options for HTMLHelp output ------------------------------------------
htmlhelp_basename = "pytest_iamdoc"
# html_logo = ""
# -- Options for LaTeX output ---------------------------------------------
latex_elements = {}
latex_documents = [
(master_doc, "pytest_iam.tex", "pytest_iam documentation", "Yaal Coop", "manual")
]
# -- Options for manual page output ---------------------------------------
man_pages = [(master_doc, "pytest_iam", "pytest_iam Documentation", [author], 1)]
# -- Options for Texinfo output -------------------------------------------
texinfo_documents = [
(
master_doc,
"pytest_iam",
"pytest_iam documentation",
author,
"pytest_iam",
"One line description of project.",
"Miscellaneous",
)
]