| 1 |
from pallets_sphinx_themes import get_version |
| 2 |
from pallets_sphinx_themes import ProjectLink |
| 3 |
|
| 4 |
project = "Flask-Caching" |
| 5 |
copyright = "2016, Thadeus Burgess, Peter Justin" |
| 6 |
author = "Thadeus Burgess, Peter Justin" |
| 7 |
release, version = get_version("Flask-Caching") |
| 8 |
|
| 9 |
extensions = [ |
| 10 |
"sphinx.ext.autodoc", |
| 11 |
"sphinx.ext.extlinks", |
| 12 |
"sphinx.ext.intersphinx", |
| 13 |
"pallets_sphinx_themes", |
| 14 |
"sphinxcontrib.log_cabinet", |
| 15 |
] |
| 16 |
autodoc_member_order = "bysource" |
| 17 |
autodoc_typehints = "description" |
| 18 |
autodoc_preserve_defaults = True |
| 19 |
extlinks = { |
| 20 |
"issue": ("https://github.com/pallets-eco/flask-caching/issues/%s", "#%s"), |
| 21 |
"pr": ("https://github.com/pallets-eco/flask-caching/pull/%s", "#%s"), |
| 22 |
} |
| 23 |
intersphinx_mapping = { |
| 24 |
"python": ("https://docs.python.org/3/", None), |
| 25 |
"flask": ("https://flask.palletsprojects.com/", None), |
| 26 |
} |
| 27 |
|
| 28 |
issues_github_path = "pallets-eco/flask-caching" |
| 29 |
|
| 30 |
|
| 31 |
html_theme = "flask" |
| 32 |
html_context = { |
| 33 |
"project_links": [ |
| 34 |
ProjectLink("PyPI Releases", "https://pypi.python.org/pypi/Flask-Caching/"), |
| 35 |
ProjectLink("Source Code", "https://github.com/pallets-eco/Flask-Caching"), |
| 36 |
ProjectLink( |
| 37 |
"Issue Tracker", "https://github.com/pallets-eco/Flask-Caching/issues/" |
| 38 |
), |
| 39 |
] |
| 40 |
} |
| 41 |
html_sidebars = { |
| 42 |
"index": ["project.html", "localtoc.html", "searchbox.html"], |
| 43 |
"**": ["localtoc.html", "relations.html", "searchbox.html"], |
| 44 |
} |
| 45 |
singlehtml_sidebars = {"index": ["project.html", "localtoc.html"]} |
| 46 |
html_static_path = ["_static"] |
| 47 |
html_favicon = "_static/flask-cache.png" |
| 48 |
html_logo = "_static/flask-cache.png" |
| 49 |
html_title = f"Flask-Caching Documentation ({version})" |
| 50 |
html_show_sourcelink = False |