mirror of
https://github.com/pallets-eco/flask-debugtoolbar.git
synced 2025-12-31 02:29:33 -06:00
use standard project layout and tool config across all pallets and pallets-eco projects * add issue templates * add dependabot grouped updates for actions and pypi * add lock inactive closed issues workflow * add publish workflow with slsa and trusted publishing * simplify tests workflow matrix * simplify docs config.py * show license in docs * use pip-compile to pin development dependencies * rename test to tests * add .editorconfig * simplify .gitignore * add pre-commit hooks (will run formatters in a subsequent PR) * pin os and python in .readthedocs.yaml * update license with original commit date and pallets-eco * use pyproject.toml and flit_core instead of setuptools * only declare flask dependency * add config for mypy and pyright (will add typing in a subsequent PR) * readme is markdown * add pallets-eco message to readme * remove install and docs links from readme * add style, typing, docs tox envs * use faster wheel building tox config * add tox command to update dev dependencies
40 lines
1.1 KiB
Python
40 lines
1.1 KiB
Python
import importlib.metadata
|
|
|
|
# Project --------------------------------------------------------------
|
|
|
|
project = "Flask-DebugToolbar"
|
|
version = release = importlib.metadata.version("flask-debugtoolbar").partition(".dev")[
|
|
0
|
|
]
|
|
|
|
# General --------------------------------------------------------------
|
|
|
|
default_role = "code"
|
|
extensions = [
|
|
"sphinx.ext.autodoc",
|
|
"sphinx.ext.extlinks",
|
|
"sphinx.ext.intersphinx",
|
|
"sphinxcontrib.log_cabinet",
|
|
"pallets_sphinx_themes",
|
|
]
|
|
autodoc_member_order = "bysource"
|
|
autodoc_typehints = "description"
|
|
autodoc_preserve_defaults = True
|
|
extlinks = {
|
|
"issue": ("https://github.com/pallets-eco/flask-debugtoolbar/issues/%s", "#%s"),
|
|
"pr": ("https://github.com/pallets-eco/flask-debugtoolbar/pull/%s", "#%s"),
|
|
}
|
|
intersphinx_mapping = {
|
|
"python": ("https://docs.python.org/3/", None),
|
|
"flasksqlalchemy": ("https://flask-sqlalchemy.palletsprojects.com", None),
|
|
}
|
|
|
|
# HTML -----------------------------------------------------------------
|
|
|
|
html_theme = "flask"
|
|
html_static_path = ["_static"]
|
|
html_copy_source = False
|
|
html_show_copyright = False
|
|
html_use_index = False
|
|
html_domain_indices = False
|