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
|
import importlib.metadata
extensions = [
"sphinx.ext.autodoc",
"sphinx.ext.viewcode",
"sphinx.ext.intersphinx",
"sphinx_issues",
]
primary_domain = "py"
default_role = "py:obj"
github_user = "marshmallow-code"
github_repo = "webargs"
issues_github_path = f"{github_user}/{github_repo}"
intersphinx_mapping = {
"python": ("http://python.readthedocs.io/en/latest/", None),
"marshmallow": ("http://marshmallow.readthedocs.io/en/latest/", None),
}
# The master toctree document.
master_doc = "index"
language = "en"
html_domain_indices = False
source_suffix = ".rst"
project = "webargs"
copyright = "Steven Loria and contributors"
version = release = importlib.metadata.version("webargs")
templates_path = ["_templates"]
exclude_patterns = ["_build"]
# THEME
html_theme = "furo"
html_theme_options = {
"light_css_variables": {"color-brand-primary": "#268bd2"},
}
html_logo = "_static/logo.png"
html_context = {
"tidelift_url": (
"https://tidelift.com/subscription/pkg/pypi-webargs"
"?utm_source=pypi-webargs&utm_medium=referral&utm_campaign=docs"
),
"donate_url": "https://opencollective.com/marshmallow",
}
html_sidebars = {
"*": [
"sidebar/scroll-start.html",
"sidebar/brand.html",
"sidebar/search.html",
"sidebar/navigation.html",
"donate.html",
"sponsors.html",
"sidebar/ethical-ads.html",
"sidebar/scroll-end.html",
]
}
|