Skip to content
Myr

conf.py

This file

Path

docs/conf.py

55 lines · 1.9 KiB · Python

Last changed by

Merge pull request #1532 from pallets/drop-python2David Lordbefore adoption97de2c9

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", version_length=1)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]26intersphinx_mapping = {"python": ("https://docs.python.org/3/", None)}27issues_github_path = "pallets/click"2829# HTML -----------------------------------------------------------------3031html_theme = "click"32html_theme_options = {"index_sidebar_logo": False}33html_context = {34    "project_links": [35        ProjectLink("Donate to Pallets", "https://palletsprojects.com/donate"),36        ProjectLink("Click Website", "https://palletsprojects.com/p/click/"),37        ProjectLink("PyPI releases", "https://pypi.org/project/click/"),38        ProjectLink("Source Code", "https://github.com/pallets/click/"),39        ProjectLink("Issue Tracker", "https://github.com/pallets/click/issues/"),40    ]41}42html_sidebars = {43    "index": ["project.html", "localtoc.html", "searchbox.html"],44    "**": ["localtoc.html", "relations.html", "searchbox.html"],45}46singlehtml_sidebars = {"index": ["project.html", "localtoc.html"]}47html_static_path = ["_static"]48html_favicon = "_static/click-icon.png"49html_logo = "_static/click-logo-sidebar.png"50html_title = f"Click Documentation ({version})"51html_show_sourcelink = False5253# LaTeX ----------------------------------------------------------------5455latex_documents = [(master_doc, f"Click-{version}.tex", html_title, author, "manual")]