Update conf.py

This commit is contained in:
Robert Chacón authored and GitHub committed 2025-10-31 14:35:30 -06:00
1 parent ff2ab11dc7
commit b974fb0fca
1 file changed
+25 -5
+25 -5
View File
@@ -6,16 +6,22 @@
# -- Project information -----------------------------------------------------
# https://www.sphinx-doc.org/en/master/usage/configuration.html#project-information
project = "LibreQoS"
copyright = "2024, LibreQoE, LLC"
author = "Zach Biles"
release = "2.0"
import datetime
year = datetime.date.today().year
project = "LibreQoE"
copyright = str(year) + ", LibreQoE, LLC"
author = "LibreQoE, LLC"
# -- General configuration ---------------------------------------------------
# https://www.sphinx-doc.org/en/master/usage/configuration.html#general-configuration
extensions = ["myst_parser"]
myst_enable_extensions = [
'substitution'
]
templates_path = ["_templates"]
exclude_patterns = ["_build", "Thumbs.db", ".DS_Store"]
@@ -39,4 +45,18 @@ html_theme_options = {
'sticky_navigation': True,
'includehidden': True,
'titles_only': False
}
}
def ultimateReplace(app, docname, source):
result = source[0]
for key in app.config.ultimate_replacements:
result = result.replace(key, app.config.ultimate_replacements[key])
source[0] = result
ultimate_replacements = {
"{deb_url_v1_5}" : "https://download.libreqos.com/libreqos_1.5-RC2.202510052233-1_amd64.deb"
}
def setup(app):
app.add_config_value('ultimate_replacements', {}, True)
app.connect('source-read', ultimateReplace)