Debian Codegraph @

docs/conf.py

raw
1 from pallets_sphinx_themes import get_version
2 from pallets_sphinx_themes import ProjectLink
3
4 project = "Flask-Caching"
5 copyright = "2016, Thadeus Burgess, Peter Justin"
6 author = "Thadeus Burgess, Peter Justin"
7 release, version = get_version("Flask-Caching")
8
9 extensions = [
10 "sphinx.ext.autodoc",
11 "sphinx.ext.extlinks",
12 "sphinx.ext.intersphinx",
13 "pallets_sphinx_themes",
14 "sphinxcontrib.log_cabinet",
15 ]
16 autodoc_member_order = "bysource"
17 autodoc_typehints = "description"
18 autodoc_preserve_defaults = True
19 # Show just the class name in signatures instead of the full dotted path.
20 add_module_names = False
21 extlinks = {
22 "issue": ("https://github.com/pallets-eco/flask-caching/issues/%s", "#%s"),
23 "pr": ("https://github.com/pallets-eco/flask-caching/pull/%s", "#%s"),
24 }
25 intersphinx_mapping = {
26 "python": ("https://docs.python.org/3/", None),
27 "flask": ("https://flask.palletsprojects.com/", None),
28 }
29
30 issues_github_path = "pallets-eco/flask-caching"
31
32
33 html_theme = "flask"
34 html_context = {
35 "project_links": [
36 ProjectLink("PyPI Releases", "https://pypi.python.org/pypi/Flask-Caching/"),
37 ProjectLink("Source Code", "https://github.com/pallets-eco/Flask-Caching"),
38 ProjectLink(
39 "Issue Tracker", "https://github.com/pallets-eco/Flask-Caching/issues/"
40 ),
41 ]
42 }
43 html_sidebars = {
44 "index": ["project.html", "localtoc.html", "searchbox.html"],
45 "**": ["localtoc.html", "relations.html", "searchbox.html"],
46 }
47 singlehtml_sidebars = {"index": ["project.html", "localtoc.html"]}
48 html_static_path = ["_static"]
49 html_favicon = "_static/flask-cache.png"
50 html_logo = "_static/flask-cache.png"
51 html_title = f"Flask-Caching Documentation ({version})"
52 html_show_sourcelink = False