diff options
| author | Yuriy Andamasov <yuriy@vyos.io> | 2026-05-07 17:19:44 +0300 |
|---|---|---|
| committer | Yuriy Andamasov <yuriy@vyos.io> | 2026-05-07 18:23:56 +0300 |
| commit | 8d5187cd45fefc2b0803eba0545960de348615bd (patch) | |
| tree | 9366def4c9ea208428f47f9c30240a116b878673 /docs/conf.py | |
| parent | bcdfb210fb08c9039210284b7b9e9d2f5b042152 (diff) | |
| download | vyos-documentation-8d5187cd45fefc2b0803eba0545960de348615bd.tar.gz vyos-documentation-8d5187cd45fefc2b0803eba0545960de348615bd.zip | |
feat(docs): read GTM_ID from environment instead of hardcoding
Move the Google Tag Manager container ID out of the template and into
conf.py via os.environ.get('GTM_ID', ''), exposed to Jinja via
html_context. Set GTM_ID in the RTD project environment variables.
🤖 Generated by [robots](https://vyos.io)
Diffstat (limited to 'docs/conf.py')
| -rw-r--r-- | docs/conf.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/docs/conf.py b/docs/conf.py index 1cfe669e..fa0e9349 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -142,6 +142,7 @@ html_context = { 'github_repo': 'vyos-documentation', 'github_version': _github_version, 'conf_py_path': '/docs/', + 'gtm_id': os.environ.get('GTM_ID', ''), } # sphinx-sitemap: baseurl already includes /en/1.5/, so skip lang+version @@ -152,7 +153,6 @@ sitemap_url_scheme = '{link}' # _templates/llms.txt.j2 by the _write_llms_txt() build-finished hook # below; llms-full.txt is still auto-generated by sphinx-llms-txt. llms_txt_file = False - # Custom sidebar templates, must be a dictionary that maps document names # to template names. # |
