Debian Codegraph @

docs/conf.py

raw symbols ◀ ▶ SCIP
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 = "Flask-WTF"
7 copyright = "2010 WTForms"
8 author = "WTForms"
9 release, version = get_version("Flask-WTF")
10
11 # General --------------------------------------------------------------
12
13 extensions = [
14 "sphinx.ext.autodoc",
15 "sphinx.ext.intersphinx",
16 "sphinxcontrib.log_cabinet",
17 "pallets_sphinx_themes",
18 "sphinx_issues",
19 ]
20 autodoc_typehints = "description"
21 intersphinx_mapping = {
•22 "python": ("/usr/share/doc/python3-doc/html", None),
23 "flask": ("/usr/share/doc/python-flask-doc/html", None),
24 "wtforms": ("/usr/share/doc/python-wtforms-doc/html", None),
25 }
26
27 issues_github_path = "pallets-eco/flask-wtf"
28
29 # HTML -----------------------------------------------------------------
30
31 html_theme = "flask"
32 html_theme_options = {"index_sidebar_logo": False}
33 html_context = {
34 "project_links": [
35 ProjectLink("PyPI Releases", "https://pypi.org/project/Flask-WTF/"),
36 ProjectLink("Source Code", "https://github.com/pallets-eco/flask-wtf/"),
37 ProjectLink(
38 "Issue Tracker", "https://github.com/pallets-eco/flask-wtf/issues/"
39 ),
40 ProjectLink("Chat", "https://discord.gg/pallets"),
41 ]
42 }
43 html_sidebars = {
44 "index": ["project.html", "localtoc.html", "searchbox.html", "ethicalads.html"],
45 "**": ["localtoc.html", "relations.html", "searchbox.html", "ethicalads.html"],
46 }
47 singlehtml_sidebars = {"index": ["project.html", "localtoc.html", "ethicalads.html"]}
48 html_static_path = ["_static"]
49 html_favicon = "_static/flask-wtf-icon.png"
50 html_logo = "_static/flask-wtf-icon.png"
51 html_title = f"{project} Documentation ({version})"
52 html_show_sourcelink = False