Skip to content
Myr

conf.py

This file

Path

docs/conf.py

55 lines · 1.9 KiB · Python

Last changed by

Merge branch '8.1.x'David Lordbefore adoption99015e1

History of this file

Take it

1from pallets_sphinx_themes import get_version2from pallets_sphinx_themes import ProjectLink34# Project --------------------------------------------------------------56project = "Click"7copyright = "2014 Pallets"8author = "Pallets"9release, version = get_version("Click")1011# General --------------------------------------------------------------1213default_role = "code"14extensions = [15    "sphinx.ext.autodoc",16    "sphinx.ext.extlinks",17    "sphinx.ext.intersphinx",18    "sphinx_tabs.tabs",19    "sphinxcontrib.log_cabinet",20    "pallets_sphinx_themes",21]22autodoc_member_order = "bysource"23autodoc_typehints = "description"24autodoc_preserve_defaults = True25extlinks = {26    "issue": ("https://github.com/pallets/click/issues/%s", "#%s"),27    "pr": ("https://github.com/pallets/click/pull/%s", "#%s"),28}29intersphinx_mapping = {30    "python": ("https://docs.python.org/3/", None),31}3233# HTML -----------------------------------------------------------------3435html_theme = "click"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/click/"),41        ProjectLink("Source Code", "https://github.com/pallets/click/"),42        ProjectLink("Issue Tracker", "https://github.com/pallets/click/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/click-icon.png"53html_logo = "_static/click-logo-sidebar.png"54html_title = f"Click Documentation ({version})"55html_show_sourcelink = False