Debian Codegraph @

docs/conf.py

raw ◀ ▶
1 Debian patch touch this file
1 import importlib.metadata
•2 from src.flask_session import __version__
3
•4 version = release = __version__
5 project = "Flask-Session"
6 author = "Pallets Community Ecosystem"
7 copyright = f"2014, {author}"
8
9 # General --------------------------------------------------------------
10
11 extensions = ["sphinx.ext.autodoc", "sphinx.ext.intersphinx", "sphinx_favicon"]
12
13 intersphinx_mapping = {
14 "python": ("https://docs.python.org/", None),
15 "flask": ("https://flask.palletsprojects.com/", None),
16 "werkzeug": ("https://werkzeug.palletsprojects.com/", None),
17 "flask-sqlalchemy": ("https://flask-sqlalchemy.palletsprojects.com/", None),
18 "redis": ("https://redis-py.readthedocs.io/en/stable/", None),
19 }
20
21
22 # HTML -----------------------------------------------------------------
23
24 favicons = [
25 {
26 "rel": "icon",
27 "sizes": "16x16",
28 "href": "icon/favicon-16x16.png",
29 "type": "image/png",
30 },
31 {
32 "rel": "icon",
33 "sizes": "32x32",
34 "href": "icon/favicon-32x32.png",
35 "type": "image/png",
36 },
37 {
38 "rel": "icon",
39 "sizes": "48x48",
40 "href": "icon/favicon-48x48.png",
41 "type": "image/png",
42 },
43 {
44 "rel": "icon",
45 "sizes": "192x192",
46 "href": "icon/favicon-192x192.png",
47 "type": "image/png",
48 },
49 {
50 "rel": "icon",
51 "sizes": "512x512",
52 "href": "icon/favicon-512x512.png",
53 "type": "image/png",
54 },
55 {
56 "rel": "apple-touch-icon",
57 "sizes": "180x180",
58 "href": "icon/apple-touch-icon-180x180.png",
59 "type": "image/png",
60 },
61 {
62 "rel": "mask-icon",
63 "href": "icon/safari-pinned-tab.svg",
64 },
65 ]
66 html_copy_source = False
67 html_css_files = [
68 "styles.css",
69 "https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0/css/fontawesome.min.css",
70 "https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0/css/solid.min.css",
71 "https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0/css/brands.min.css",
72 ]
73 html_domain_indices = False
74 html_static_path = ["_static"]
75 html_theme = "furo"
76 html_theme_options = {
77 "announcement": "Flask-Session is switching serializer to msgspec in 1.0.0. Version 0.7.0 will migrate existing sessions upon read or write.",
78 "source_repository": "https://github.com/pallets-eco/flask-session/",
79 "source_branch": "main",
80 "source_directory": "docs/",
81 "light_logo": "logo/logo-light.png",
82 "dark_logo": "logo/logo-dark.png",
83 "light_css_variables": {
84 "font-stack": "'Atkinson Hyperlegible', sans-serif",
85 "font-stack--monospace": "'Source Code Pro', monospace",
86 "color-brand-primary": "#39A9BE",
87 "color-brand-content": "#39A9BE",
88 },
89 "dark_css_variables": {
90 "font-stack": "'Atkinson Hyperlegible', sans-serif",
91 "font-stack--monospace": "'Source Code Pro', monospace",
92 "color-brand-primary": "#39A9BE",
93 "color-brand-content": "#39A9BE",
94 },
95 "sidebar_hide_name": True,
96 "navigation_with_keys": True,
97 "footer_icons": [
98 {
99 "name": "GitHub",
100 "url": "https://github.com/pallets-eco/flask-session",
101 "html": "",
102 "class": "fa-brands fa-solid fa-github fa-lg",
103 },
104 {
105 "name": "Discord",
106 "url": "https://discord.gg/pallets",
107 "html": "",
108 "class": "fa-brands fa-solid fa-discord fa-lg",
109 },
110 {
111 "name": "PyPI",
112 "url": "https://pypi.org/project/Flask-Session/",
113 "html": "",
114 "class": "fa-brands fa-solid fa-python fa-lg",
115 },
116 ],
117 }
118 html_use_index = False