From fc4bd1bd48e628cf689db528b6b780a174359b3d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20Chac=C3=B3n?= Date: Fri, 31 Oct 2025 14:29:45 -0600 Subject: [PATCH] Update conf.py --- conf.py | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/conf.py b/conf.py index d9b77531..a1040526 100644 --- a/conf.py +++ b/conf.py @@ -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)