conf.py
This file
Path
docs/conf.py
52 lines · 1.8 KiB · Python
Last changed by
reformat changelog, update docs configDavid Lordbefore adoption02756dd
History of this fileTake 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", version_length=1)1011# General --------------------------------------------------------------1213master_doc = "index"14extensions = [15 "sphinx.ext.autodoc",16 "sphinx.ext.intersphinx",17 "sphinxcontrib.log_cabinet",18 "pallets_sphinx_themes",19 "sphinx_issues",20]21intersphinx_mapping = {"python": ("https://docs.python.org/3/", None)}22issues_github_path = "pallets/click"2324# HTML -----------------------------------------------------------------2526html_theme = "click"27html_theme_options = {"index_sidebar_logo": False}28html_context = {29 "project_links": [30 ProjectLink("Donate to Pallets", "https://palletsprojects.com/donate"),31 ProjectLink("Click Website", "https://palletsprojects.com/p/click/"),32 ProjectLink("PyPI releases", "https://pypi.org/project/click/"),33 ProjectLink("Source Code", "https://github.com/pallets/click/"),34 ProjectLink("Issue Tracker", "https://github.com/pallets/click/issues/"),35 ]36}37html_sidebars = {38 "index": ["project.html", "localtoc.html", "searchbox.html"],39 "**": ["localtoc.html", "relations.html", "searchbox.html"],40}41singlehtml_sidebars = {"index": ["project.html", "localtoc.html"]}42html_static_path = ["_static"]43html_favicon = "_static/click-icon.png"44html_logo = "_static/click-logo-sidebar.png"45html_title = f"Click Documentation ({version})"46html_show_sourcelink = False4748# LaTeX ----------------------------------------------------------------4950latex_documents = [51 (master_doc, f"Click-{version}.tex", html_title, author, "manual")52]