Update conf.py

This commit is contained in:
Robert Chacón authored and GitHub committed 2025-10-31 14:29:45 -06:00
1 parent 76565a4341
commit fc4bd1bd48
1 file changed
+12 -2
+12 -2
View File
@@ -28,6 +28,16 @@ exclude_patterns = ["_build", "Thumbs.db", ".DS_Store"]
html_theme = "sphinx_rtd_theme"
html_static_path = ["_static"]
myst_substitutions = {
'deb_url_v1_5': 'https://download.libreqos.com/libreqos_1.5-RC2.202510052233-1_amd64.deb'
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)