Debian Codegraph @

docs/conf.py

raw ◀ ▶
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-SQLAlchemy"
7 copyright = "2010 Pallets"
8 author = "Pallets"
9 release, version = get_version("Flask-SQLAlchemy")
10
11 # General --------------------------------------------------------------
12
13 extensions = [
14 "sphinx.ext.autodoc",
15 "sphinx.ext.intersphinx",
16 "pallets_sphinx_themes",
17 "sphinx_issues",
18 ]
19 autodoc_typehints = "description"
20 intersphinx_mapping = {
21 "python": ("https://docs.python.org/3/", None),
22 "flask": ("https://flask.palletsprojects.com/", None),
23 "sqlalchemy": ("https://docs.sqlalchemy.org/", None),
24 }
25 issues_github_path = "pallets-eco/flask-sqlalchemy"
26
27 # HTML -----------------------------------------------------------------
28
29 html_theme = "flask"
30 html_context = {
31 "project_links": [
32 ProjectLink("Donate", "https://palletsprojects.com/donate"),
33 ProjectLink("PyPI Releases", "https://pypi.org/project/Flask-SQLAlchemy/"),
34 ProjectLink("Source Code", "https://github.com/pallets-eco/flask-sqlalchemy/"),
35 ProjectLink(
36 "Issue Tracker", "https://github.com/pallets-eco/flask-sqlalchemy/issues/"
37 ),
38 ProjectLink("Website", "https://palletsprojects.com/"),
39 ProjectLink("Twitter", "https://twitter.com/PalletsTeam"),
40 ProjectLink("Chat", "https://discord.gg/pallets"),
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-sqlalchemy-logo.png"
50 html_logo = "_static/flask-sqlalchemy-logo.png"
51 html_title = f"Flask-SQLAlchemy Documentation ({version})"
52 html_show_sourcelink = False