Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions docs-site/antora-parent-ci-playbook.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 2 additions & 0 deletions docs-site/antora-playbook.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 2 additions & 0 deletions preview-src/ui-model.yml
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 1 addition & 1 deletion src/partials/head-scripts.hbs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{{#with site.keys.googleAnalytics}}
{{#with site.keys.google_analytics}}
<script async src="https://www.googletagmanager.com/gtag/js?id={{this}}"></script>
<script>function gtag(){dataLayer.push(arguments)};window.dataLayer=window.dataLayer||[];gtag('js',new Date());gtag('config','{{this}}')</script>
{{/with}}
Expand Down
Loading