Debian Codegraph @

docs/conf.py

raw ◀ ▶
Source reconstructed at patch state 0 of 1 — not the installed (fully patched) source.
1 Debian patch touch this file
1 from pallets_sphinx_themes import get_version
2 from pallets_sphinx_themes import ProjectLink
3
4 # Project --------------------------------------------------------------
5
6 project = "Jinja"
7 copyright = "2007 Pallets"
8 author = "Pallets"
9 release, version = get_version("Jinja2")
10
11 # General --------------------------------------------------------------
12
13 default_role = "code"
14 extensions = [
15 "sphinx.ext.autodoc",
16 "sphinx.ext.extlinks",
17 "sphinx.ext.intersphinx",
18 "sphinxcontrib.log_cabinet",
19 "pallets_sphinx_themes",
20 ]
21 autodoc_member_order = "bysource"
22 autodoc_typehints = "description"
23 autodoc_preserve_defaults = True
24 extlinks = {
25 "issue": ("https://github.com/pallets/jinja/issues/%s", "#%s"),
26 "pr": ("https://github.com/pallets/jinja/pull/%s", "#%s"),
27 "ghsa": ("https://github.com/pallets/jinja/security/advisories/GHSA-%s", "GHSA-%s"),
28 }
29 intersphinx_mapping = {
30 "python": ("https://docs.python.org/3/", None),
31 }
32
33 # HTML -----------------------------------------------------------------
34
35 html_theme = "jinja"
36 html_theme_options = {"index_sidebar_logo": False}
37 html_context = {
38 "project_links": [
39 ProjectLink("Donate", "https://palletsprojects.com/donate"),
40 ProjectLink("PyPI Releases", "https://pypi.org/project/Jinja2/"),
41 ProjectLink("Source Code", "https://github.com/pallets/jinja/"),
42 ProjectLink("Issue Tracker", "https://github.com/pallets/jinja/issues/"),
43 ProjectLink("Chat", "https://discord.gg/pallets"),
44 ]
45 }
46 html_sidebars = {
47 "index": ["project.html", "localtoc.html", "searchbox.html", "ethicalads.html"],
48 "**": ["localtoc.html", "relations.html", "searchbox.html", "ethicalads.html"],
49 }
50 singlehtml_sidebars = {"index": ["project.html", "localtoc.html", "ethicalads.html"]}
51 html_static_path = ["_static"]
52 html_favicon = "_static/jinja-logo-sidebar.png"
53 html_logo = "_static/jinja-logo-sidebar.png"
54 html_title = f"Jinja Documentation ({version})"
55 html_show_sourcelink = False