| 1 |
import importlib.metadata |
| 2 |
|
| 3 |
# Project -------------------------------------------------------------- |
| 4 |
|
| 5 |
project = "Flask-DebugToolbar" |
| 6 |
version = release = importlib.metadata.version("flask-debugtoolbar").partition(".dev")[ |
| 7 |
0 |
| 8 |
] |
| 9 |
|
| 10 |
# General -------------------------------------------------------------- |
| 11 |
|
| 12 |
default_role = "code" |
| 13 |
extensions = [ |
| 14 |
"sphinx.ext.autodoc", |
| 15 |
"sphinx.ext.extlinks", |
| 16 |
"sphinx.ext.intersphinx", |
| 17 |
"sphinxcontrib.log_cabinet", |
| 18 |
"pallets_sphinx_themes", |
| 19 |
] |
| 20 |
autodoc_member_order = "bysource" |
| 21 |
autodoc_typehints = "description" |
| 22 |
autodoc_preserve_defaults = True |
| 23 |
extlinks = { |
| 24 |
"issue": ("https://github.com/pallets-eco/flask-debugtoolbar/issues/%s", "#%s"), |
| 25 |
"pr": ("https://github.com/pallets-eco/flask-debugtoolbar/pull/%s", "#%s"), |
| 26 |
} |
| 27 |
intersphinx_mapping = { |
| •28 |
"python": ("/usr/share/doc/python3/html", None), |
| 29 |
"flasksqlalchemy": ("/usr/share/doc/flask-sqlalchemy-doc/html", None) |
| 30 |
} |
| 31 |
|
| 32 |
# HTML ----------------------------------------------------------------- |
| 33 |
|
| 34 |
html_theme = "flask" |
| 35 |
html_static_path = ["_static"] |
| 36 |
html_copy_source = False |
| 37 |
html_show_copyright = False |
| 38 |
html_use_index = False |
| 39 |
html_domain_indices = False |