Debian Codegraph @

docs/conf.py

raw ◀ ▶
Source reconstructed at patch state 1 of 2 — not the installed (fully patched) source.
2 Debian patches touch this file
1 from pallets_sphinx_themes import get_version
2 from pallets_sphinx_themes import ProjectLink
3
4 # Project --------------------------------------------------------------
5
6 project = "Click"
7 copyright = "2014 Pallets"
8 author = "Pallets"
9 release, version = get_version("Click")
10
11 # General --------------------------------------------------------------
12
13 master_doc = "index"
14 default_role = "code"
15 extensions = [
16 "sphinx.ext.autodoc",
17 "sphinx.ext.extlinks",
18 "sphinx.ext.intersphinx",
19 "sphinx_tabs.tabs",
20 "sphinxcontrib.log_cabinet",
21 "pallets_sphinx_themes",
22 "myst_parser",
23 ]
24 autodoc_member_order = "bysource"
25 autodoc_typehints = "description"
26 autodoc_preserve_defaults = True
27 extlinks = {
28 "issue": ("https://github.com/pallets/click/issues/%s", "#%s"),
29 "pr": ("https://github.com/pallets/click/pull/%s", "#%s"),
30 }
31 intersphinx_mapping = {
32 "python": ("/usr/share/doc/python3-doc/html", None),
33 }
34
35 # HTML -----------------------------------------------------------------
36
37 html_theme = "click"
38 html_theme_options = {"index_sidebar_logo": False}
39 html_context = {
40 "project_links": [
41 ProjectLink("Donate", "https://palletsprojects.com/donate"),
42 ProjectLink("PyPI Releases", "https://pypi.org/project/click/"),
43 ProjectLink("Source Code", "https://github.com/pallets/click/"),
44 ProjectLink("Issue Tracker", "https://github.com/pallets/click/issues/"),
45 ProjectLink("Chat", "https://discord.gg/pallets"),
46 ]
47 }
48 html_sidebars = {
49 "index": ["project.html", "localtoc.html", "searchbox.html", "ethicalads.html"],
50 "**": ["localtoc.html", "relations.html", "searchbox.html", "ethicalads.html"],
51 }
52 singlehtml_sidebars = {"index": ["project.html", "localtoc.html", "ethicalads.html"]}
53 html_static_path = ["_static"]
54 html_favicon = "_static/click-icon.svg"
55 html_logo = "_static/click-logo.svg"
56 html_title = f"Click Documentation ({version})"
57 html_show_sourcelink = False