From b974fb0fcab4804912bfceaa9ee1e270a4295121 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20Chac=C3=B3n?= Date: Fri, 31 Oct 2025 14:35:30 -0600 Subject: [PATCH] Update conf.py --- docs-es/conf.py | 30 +++++++++++++++++++++++++----- 1 file changed, 25 insertions(+), 5 deletions(-) diff --git a/docs-es/conf.py b/docs-es/conf.py index 2a77e4fb..4931d3e6 100644 --- a/docs-es/conf.py +++ b/docs-es/conf.py @@ -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 -} \ No newline at end of file +} + +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)