Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update Prod #3911

Merged
merged 3 commits into from
Nov 23, 2024
Merged
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: 1 addition & 1 deletion scripts/build/antora_build_docs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ npm ls -g --depth=0
if [ "$PROD_SITE" = true ]
then
# Enable google analytics in docs
antora --fetch --stacktrace --key google-analytics=GTM-TKP3KJ7 src/main/content/docs/antora-playbook.yml
antora --fetch --stacktrace --key google-analytics=G-PXYTWCYE18 src/main/content/docs/antora-playbook.yml
else
antora --fetch --stacktrace src/main/content/docs/antora-playbook.yml
fi
2 changes: 1 addition & 1 deletion src/main/content/_google_analytics.yml
Original file line number Diff line number Diff line change
@@ -1 +1 @@
google_tag_manager: GTM-TKP3KJ7
google_tag_manager: G-PXYTWCYE18
3 changes: 0 additions & 3 deletions src/main/content/_includes/analytics.html

This file was deleted.

4 changes: 0 additions & 4 deletions src/main/content/_includes/google_tag_manager_body.html

This file was deleted.

12 changes: 7 additions & 5 deletions src/main/content/_includes/google_tag_manager_head.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<script>(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':
new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],
j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=
'https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);
})(window,document,'script','dataLayer','{{ site.google_tag_manager }}');</script>
<script async src="https://www.googletagmanager.com/gtag/js?id=G-PXYTWCYE18"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'G-PXYTWCYE18');
</script>
2 changes: 0 additions & 2 deletions src/main/content/_layouts/default.html
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,6 @@

<body>

{% include_cached analytics.html %}

{% include_cached header.html %}

<main aria-label="Content">
Expand Down
3 changes: 0 additions & 3 deletions src/main/content/antora_ui/src/layouts/config.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,6 @@
{{> head defaultPageTitle="Untitled"}}
</head>
<body class="article">
{{#if site.keys.googleAnalytics}}
{{> google_tag_manager_body }}
{{/if}}
{{> header}}
{{> body}}
{{> footer}}
Expand Down
3 changes: 0 additions & 3 deletions src/main/content/antora_ui/src/layouts/default.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,6 @@
{{> head defaultPageTitle='Untitled'}}
</head>
<body class="article">
{{#if site.keys.googleAnalytics}}
{{> google_tag_manager_body }}
{{/if}}
{{> header}}
{{> body}}
{{> footer}}
Expand Down
3 changes: 0 additions & 3 deletions src/main/content/antora_ui/src/layouts/general-reference.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,6 @@
{{> head defaultPageTitle="Untitled"}}
</head>
<body class="article">
{{#if site.keys.googleAnalytics}}
{{> google_tag_manager_body }}
{{/if}}
{{> header}}
{{> body}}
{{> footer}}
Expand Down
3 changes: 0 additions & 3 deletions src/main/content/antora_ui/src/layouts/javadoc.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,6 @@
{{> head defaultPageTitle="Javadoc"}}
</head>
<body class="article">
{{#if site.keys.googleAnalytics}}
{{> google_tag_manager_body }}
{{/if}}
{{> header}}
{{> body}}
{{> footer}}
Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@

<script>(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':
new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],
j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=
'https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);
})(window,document,'script','dataLayer','{{ site.keys.googleAnalytics }}');</script>
<script async src="https://www.googletagmanager.com/gtag/js?id=G-PXYTWCYE18"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'G-PXYTWCYE18');
</script>
Loading