-
-
Notifications
You must be signed in to change notification settings - Fork 10
Expand file tree
/
Copy pathconf.py
More file actions
104 lines (90 loc) · 3 KB
/
conf.py
File metadata and controls
104 lines (90 loc) · 3 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
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
98
99
100
101
102
103
104
import datetime
import os
import sys
from importlib import metadata
sys.path.insert(0, os.path.abspath(".."))
sys.path.insert(0, os.path.abspath("../scim2_models"))
# -- General configuration ------------------------------------------------
extensions = [
"sphinx.ext.autodoc",
"sphinx.ext.doctest",
"sphinx.ext.graphviz",
"sphinx.ext.intersphinx",
"sphinx.ext.todo",
"sphinx.ext.viewcode",
"sphinxcontrib.autodoc_pydantic",
"sphinx_issues",
"sphinx_paramlinks",
"sphinx_togglebutton",
"myst_parser",
]
templates_path = ["_templates"]
master_doc = "index"
project = "scim2-models"
year = datetime.datetime.now().strftime("%Y")
copyright = f"{year}, Yaal Coop"
author = "Yaal Coop"
source_suffix = {
".rst": "restructuredtext",
".txt": "markdown",
".md": "markdown",
}
version = metadata.version("scim2-models")
language = "en"
pygments_style = "sphinx"
todo_include_todos = True
toctree_collapse = False
intersphinx_mapping = {
"python": ("https://docs.python.org/3", None),
"pydantic": ("https://docs.pydantic.dev/latest/", None),
"flask": ("https://flask.palletsprojects.com/en/stable/", None),
}
# -- Options for HTML output ----------------------------------------------
html_theme = "shibuya"
# html_static_path = ["_static"]
html_baseurl = "https://scim2-models.readthedocs.io"
html_logo = "_static/python-scim.svg"
html_theme_options = {
"globaltoc_expand_depth": 3,
"accent_color": "amber",
"github_url": "https://github.com/python-scim/scim2-models",
"mastodon_url": "https://toot.aquilenet.fr/@yaal",
"nav_links": [
{"title": "scim2-client", "url": "https://scim2-client.readthedocs.io"},
{"title": "scim2-tester", "url": "https://scim2-tester.readthedocs.io"},
{
"title": "scim2-cli",
"url": "https://scim2-cli.readthedocs.io",
},
{
"title": "scim2-server",
"url": "https://github.com/python-scim/scim2-server",
},
{
"title": "pytest-scim2-server",
"url": "https://github.com/pytest-dev/pytest-scim2-server",
},
],
}
html_context = {
"source_type": "github",
"source_user": "python-scim",
"source_repo": "scim2-models",
"source_version": "main",
"source_docs_path": "/doc/",
}
# -- Options for autodoc_pydantic_settings -------------------------------------------
autodoc_pydantic_model_show_config_summary = False
autodoc_pydantic_model_show_field_summary = False
autodoc_pydantic_model_show_json = False
autodoc_pydantic_model_show_validator_summary = False
autodoc_pydantic_model_show_validator_members = False
autodoc_pydantic_field_show_constraints = False
autodoc_pydantic_field_list_validators = False
autodoc_pydantic_field_doc_policy = "docstring"
# -- Options for doctest -------------------------------------------
doctest_global_setup = """
from scim2_models import *
"""
# -- Options for sphinx-issues -------------------------------------
issues_github_path = "python-scim/scim2-models"