summaryrefslogtreecommitdiff
path: root/docs/conf.py
diff options
context:
space:
mode:
authorYuriy Andamasov <yuriy@vyos.io>2026-05-07 17:53:34 +0300
committerYuriy Andamasov <yuriy@vyos.io>2026-05-07 18:23:25 +0300
commit53eda167df8f0f983ee34fd33e90524dcecb08de (patch)
treebd74666897b7ea6be6e285353455a460a6ca0d5c /docs/conf.py
parent9a92db9d232d9f15eedb3b11a5e3190d164c99d8 (diff)
downloadvyos-documentation-53eda167df8f0f983ee34fd33e90524dcecb08de.tar.gz
vyos-documentation-53eda167df8f0f983ee34fd33e90524dcecb08de.zip
feat(docs): move Cookiebot CBID to COOKIEBOT_ID env var
Read COOKIEBOT_ID from the environment via conf.py html_context, replacing the hardcoded data-cbid value in layout.html. Guards tightened to {% if gtm_id and cookiebot_id %} so neither GTM nor Cookiebot loads unless both IDs are present. 🤖 Generated by [robots](https://vyos.io)
Diffstat (limited to 'docs/conf.py')
-rw-r--r--docs/conf.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/docs/conf.py b/docs/conf.py
index 74ad1ff6..083482a8 100644
--- a/docs/conf.py
+++ b/docs/conf.py
@@ -148,6 +148,7 @@ html_context = {
'github_version': _github_version,
'conf_py_path': '/docs/',
'gtm_id': os.environ.get('GTM_ID', ''),
+ 'cookiebot_id': os.environ.get('COOKIEBOT_ID', ''),
}
# sphinx-sitemap: baseurl already includes /en/rolling/, so skip lang+version