Debian Codegraph @

docs/conf.py

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