Debian Codegraph @

docs/conf.py

raw symbols ◀ ▶
Source reconstructed at patch state 0 of 1 — not the installed (fully patched) source.
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": ("https://docs.python.org/3/", None),
23 "flask": ("https://flask.palletsprojects.com/", None),
24 "wtforms": ("https://wtforms.readthedocs.io/", None),
25 }
26 issues_github_path = "pallets-eco/flask-wtf"
27
28 # HTML -----------------------------------------------------------------
29
30 html_theme = "flask"
31 html_theme_options = {"index_sidebar_logo": False}
32 html_context = {
33 "project_links": [
34 ProjectLink("PyPI Releases", "https://pypi.org/project/Flask-WTF/"),
35 ProjectLink("Source Code", "https://github.com/pallets-eco/flask-wtf/"),
36 ProjectLink(
37 "Issue Tracker", "https://github.com/pallets-eco/flask-wtf/issues/"
38 ),
39 ProjectLink("Chat", "https://discord.gg/pallets"),
40 ]
41 }
42 html_sidebars = {
43 "index": ["project.html", "localtoc.html", "searchbox.html", "ethicalads.html"],
44 "**": ["localtoc.html", "relations.html", "searchbox.html", "ethicalads.html"],
45 }
46 singlehtml_sidebars = {"index": ["project.html", "localtoc.html", "ethicalads.html"]}
47 html_static_path = ["_static"]
48 html_favicon = "_static/flask-wtf-icon.png"
49 html_logo = "_static/flask-wtf-icon.png"
50 html_title = f"{project} Documentation ({version})"
51 html_show_sourcelink = False