Skip to content
Myr

conf.py

This file

Path

docs/conf.py

53 lines · 1.9 KiB · Python

Last changed by

Merge branch '3.0.x'David Lordbefore adoptiond1ff9ce

History of this file

Take 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 --------------------------------------------------------------1213master_doc = "index"14extensions = [15    "sphinx.ext.autodoc",16    "sphinx.ext.intersphinx",17    "pallets_sphinx_themes",18    "sphinxcontrib.log_cabinet",19    "sphinx_issues",20]21autodoc_typehints = "description"22intersphinx_mapping = {"python": ("https://docs.python.org/3/", None)}23issues_github_path = "pallets/jinja"2425# HTML -----------------------------------------------------------------2627html_theme = "jinja"28html_theme_options = {"index_sidebar_logo": False}29html_context = {30    "project_links": [31        ProjectLink("Donate", "https://palletsprojects.com/donate"),32        ProjectLink("PyPI Releases", "https://pypi.org/project/Jinja2/"),33        ProjectLink("Source Code", "https://github.com/pallets/jinja/"),34        ProjectLink("Issue Tracker", "https://github.com/pallets/jinja/issues/"),35        ProjectLink("Website", "https://palletsprojects.com/p/jinja/"),36        ProjectLink("Twitter", "https://twitter.com/PalletsTeam"),37        ProjectLink("Chat", "https://discord.gg/pallets"),38    ]39}40html_sidebars = {41    "index": ["project.html", "localtoc.html", "searchbox.html", "ethicalads.html"],42    "**": ["localtoc.html", "relations.html", "searchbox.html", "ethicalads.html"],43}44singlehtml_sidebars = {"index": ["project.html", "localtoc.html", "ethicalads.html"]}45html_static_path = ["_static"]46html_favicon = "_static/jinja-logo-sidebar.png"47html_logo = "_static/jinja-logo-sidebar.png"48html_title = f"Jinja Documentation ({version})"49html_show_sourcelink = False5051# LaTeX ----------------------------------------------------------------5253latex_documents = [(master_doc, f"Jinja-{version}.tex", html_title, author, "manual")]