Defined constants to reduce duplication
"localtoc.html" and "ethicalads.html" were repeated 3 times. Defined constants to reduce code duplication.
This commit is contained in:
parent
b109b092a9
commit
284f09cdb8
3 changed files with 18 additions and 4 deletions
|
|
@ -6,6 +6,15 @@ Version 2.2.0
|
||||||
Unreleased
|
Unreleased
|
||||||
|
|
||||||
|
|
||||||
|
Version 2.1.1
|
||||||
|
-------------
|
||||||
|
|
||||||
|
Released on 2022-03-30
|
||||||
|
|
||||||
|
- Set the minimum required version of importlib_metadata to 3.6.0,
|
||||||
|
which is required on Python < 3.10. :issue:`4502`
|
||||||
|
|
||||||
|
|
||||||
Version 2.1.0
|
Version 2.1.0
|
||||||
-------------
|
-------------
|
||||||
|
|
||||||
|
|
|
||||||
11
docs/conf.py
11
docs/conf.py
|
|
@ -2,6 +2,11 @@ import packaging.version
|
||||||
from pallets_sphinx_themes import get_version
|
from pallets_sphinx_themes import get_version
|
||||||
from pallets_sphinx_themes import ProjectLink
|
from pallets_sphinx_themes import ProjectLink
|
||||||
|
|
||||||
|
# Constants ------------------------------------------------------------
|
||||||
|
ETHICALADS_PATH="ethicalads.html"
|
||||||
|
LOCALTOC_PATH="localtoc.html"
|
||||||
|
|
||||||
|
|
||||||
# Project --------------------------------------------------------------
|
# Project --------------------------------------------------------------
|
||||||
|
|
||||||
project = "Flask"
|
project = "Flask"
|
||||||
|
|
@ -49,10 +54,10 @@ html_context = {
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
html_sidebars = {
|
html_sidebars = {
|
||||||
"index": ["project.html", "localtoc.html", "searchbox.html", "ethicalads.html"],
|
"index": ["project.html", LOCALTOC_PATH, "searchbox.html", ETHICALADS_PATH],
|
||||||
"**": ["localtoc.html", "relations.html", "searchbox.html", "ethicalads.html"],
|
"**": [LOCALTOC_PATH, "relations.html", "searchbox.html", ETHICALADS_PATH],
|
||||||
}
|
}
|
||||||
singlehtml_sidebars = {"index": ["project.html", "localtoc.html", "ethicalads.html"]}
|
singlehtml_sidebars = {"index": ["project.html", LOCALTOC_PATH, ETHICALADS_PATH]}
|
||||||
html_static_path = ["_static"]
|
html_static_path = ["_static"]
|
||||||
html_favicon = "_static/flask-icon.png"
|
html_favicon = "_static/flask-icon.png"
|
||||||
html_logo = "_static/flask-icon.png"
|
html_logo = "_static/flask-icon.png"
|
||||||
|
|
|
||||||
2
setup.py
2
setup.py
|
|
@ -8,7 +8,7 @@ setup(
|
||||||
"Jinja2 >= 3.0",
|
"Jinja2 >= 3.0",
|
||||||
"itsdangerous >= 2.0",
|
"itsdangerous >= 2.0",
|
||||||
"click >= 8.0",
|
"click >= 8.0",
|
||||||
"importlib-metadata; python_version < '3.10'",
|
"importlib-metadata >= 3.6.0; python_version < '3.10'",
|
||||||
],
|
],
|
||||||
extras_require={
|
extras_require={
|
||||||
"async": ["asgiref >= 3.2"],
|
"async": ["asgiref >= 3.2"],
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue