diff --git a/docs-site/antora-parent-ci-playbook.yml b/docs-site/antora-parent-ci-playbook.yml index bcf5686147..95746524ad 100644 --- a/docs-site/antora-parent-ci-playbook.yml +++ b/docs-site/antora-parent-ci-playbook.yml @@ -4,6 +4,8 @@ site: title: Vulkan Documentation Project start_page: spec::index.adoc + keys: + google_analytics: ${GOOGLE_ANALYTICS_KEY} content: # Use worktree for guide and spec - local file URL, HEAD branch, not # specifying .git directory diff --git a/docs-site/antora-playbook.yml b/docs-site/antora-playbook.yml index f007488b49..61a3947cd3 100644 --- a/docs-site/antora-playbook.yml +++ b/docs-site/antora-playbook.yml @@ -4,6 +4,8 @@ site: title: Vulkan Documentation Project start_page: spec::index.adoc + keys: + google_analytics: ${GOOGLE_ANALYTICS_KEY} content: # Do not include 'Edit this Page' link per # https://docs.antora.org/antora/latest/playbook/content-edit-url/#disable-edit-u diff --git a/preview-src/ui-model.yml b/preview-src/ui-model.yml index 9fa2e1aff1..9d6b094f70 100644 --- a/preview-src/ui-model.yml +++ b/preview-src/ui-model.yml @@ -1,5 +1,7 @@ antoraVersion: '1.0.0' site: + keys: + google_analytics: G-XXXXXXXXXX url: http://localhost:5252 title: Brand Docs homeUrl: &home_url /xyz/5.2/index.html diff --git a/src/partials/head-scripts.hbs b/src/partials/head-scripts.hbs index 8dbc7d07fc..e49ab17d80 100644 --- a/src/partials/head-scripts.hbs +++ b/src/partials/head-scripts.hbs @@ -1,4 +1,4 @@ - {{#with site.keys.googleAnalytics}} + {{#with site.keys.google_analytics}} {{/with}}