conf.py
This file
Path
docs/conf.py
55 lines · 1.9 KiB · Python
Last changed by
Merge branch 'stable'David Lordbefore adoption0514dce
History of this fileTake it
1from pallets_sphinx_themes import get_version2from pallets_sphinx_themes import ProjectLink34# Project --------------------------------------------------------------56project = "Jinja"7copyright = "2007 Pallets"8author = "Pallets"9release, version = get_version("Jinja2")1011# General --------------------------------------------------------------1213default_role = "code"14extensions = [15 "sphinx.ext.autodoc",16 "sphinx.ext.extlinks",17 "sphinx.ext.intersphinx",18 "sphinxcontrib.log_cabinet",19 "pallets_sphinx_themes",20]21autodoc_member_order = "bysource"22autodoc_typehints = "description"23autodoc_preserve_defaults = True24extlinks = {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}29intersphinx_mapping = {30 "python": ("https://docs.python.org/3/", None),31}3233# HTML -----------------------------------------------------------------3435html_theme = "jinja"36html_theme_options = {"index_sidebar_logo": False}37html_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}46html_sidebars = {47 "index": ["project.html", "localtoc.html", "searchbox.html", "ethicalads.html"],48 "**": ["localtoc.html", "relations.html", "searchbox.html", "ethicalads.html"],49}50singlehtml_sidebars = {"index": ["project.html", "localtoc.html", "ethicalads.html"]}51html_static_path = ["_static"]52html_favicon = "_static/jinja-icon.svg"53html_logo = "_static/jinja-logo.svg"54html_title = f"Jinja Documentation ({version})"55html_show_sourcelink = False