mirror of
https://github.com/LibreQoE/LibreQoS.git
synced 2026-11-02 08:10:02 -06:00
Update conf.py
This commit is contained in:
1 parent
76565a4341
commit
fc4bd1bd48
1 file changed
+12
-2
@@ -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)
|
||||
Reference in new issue
Block a user