conf.py
This file
Path
docs/conf.py
56 lines · 1.9 KiB · Python
Last changed by
Rewrite testing docs and move from rst to myst (#2857)Rowlando13before adoption854cfb1
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")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 "myst_parser",22]23autodoc_member_order = "bysource"24autodoc_typehints = "description"25autodoc_preserve_defaults = True26extlinks = {27 "issue": ("https://github.com/pallets/click/issues/%s", "#%s"),28 "pr": ("https://github.com/pallets/click/pull/%s", "#%s"),29}30intersphinx_mapping = {31 "python": ("https://docs.python.org/3/", None),32}3334# HTML -----------------------------------------------------------------3536html_theme = "click"37html_theme_options = {"index_sidebar_logo": False}38html_context = {39 "project_links": [40 ProjectLink("Donate", "https://palletsprojects.com/donate"),41 ProjectLink("PyPI Releases", "https://pypi.org/project/click/"),42 ProjectLink("Source Code", "https://github.com/pallets/click/"),43 ProjectLink("Issue Tracker", "https://github.com/pallets/click/issues/"),44 ProjectLink("Chat", "https://discord.gg/pallets"),45 ]46}47html_sidebars = {48 "index": ["project.html", "localtoc.html", "searchbox.html", "ethicalads.html"],49 "**": ["localtoc.html", "relations.html", "searchbox.html", "ethicalads.html"],50}51singlehtml_sidebars = {"index": ["project.html", "localtoc.html", "ethicalads.html"]}52html_static_path = ["_static"]53html_favicon = "_static/click-icon.png"54html_logo = "_static/click-logo-sidebar.png"55html_title = f"Click Documentation ({version})"56html_show_sourcelink = False