Skip to content
Myr

conf.py

This file

Path

docs/conf.py

59 lines · 2.1 KiB · Python

Last changed by

Merge pull request #2065 from greyli/patch-1David Lordbefore adoption7c12750

History of this file

Take it

1from pallets_sphinx_themes import get_version2from pallets_sphinx_themes import ProjectLink34import click._compat56# compat until pallets-sphinx-themes is updated7click._compat.text_type = str89# Project --------------------------------------------------------------1011project = "Click"12copyright = "2014 Pallets"13author = "Pallets"14release, version = get_version("Click")1516# General --------------------------------------------------------------1718master_doc = "index"19extensions = [20    "sphinx.ext.autodoc",21    "sphinx.ext.intersphinx",22    "sphinxcontrib.log_cabinet",23    "pallets_sphinx_themes",24    "sphinx_issues",25    "sphinx_tabs.tabs",26]27autodoc_typehints = "description"28intersphinx_mapping = {"python": ("https://docs.python.org/3/", None)}29issues_github_path = "pallets/click"3031# HTML -----------------------------------------------------------------3233html_theme = "click"34html_theme_options = {"index_sidebar_logo": False}35html_context = {36    "project_links": [37        ProjectLink("Donate", "https://palletsprojects.com/donate"),38        ProjectLink("PyPI Releases", "https://pypi.org/project/click/"),39        ProjectLink("Source Code", "https://github.com/pallets/click/"),40        ProjectLink("Issue Tracker", "https://github.com/pallets/click/issues/"),41        ProjectLink("Website", "https://palletsprojects.com/p/click"),42        ProjectLink("Twitter", "https://twitter.com/PalletsTeam"),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 = False5657# LaTeX ----------------------------------------------------------------5859latex_documents = [(master_doc, f"Click-{version}.tex", html_title, author, "manual")]