Skip to content

Commit

Permalink
docusaurus.config.js: Fix usage of headTags
Browse files Browse the repository at this point in the history
The documentation for `headTags` was fixed in Docusaurus 3.2.1
(facebook/docusaurus#10014). The fact that they didn't work for us was
not related to a problem in Docusuaurs (#facebook/docusaurus#9792), but
an incorrect use on our side.
  • Loading branch information
dumbbell committed Apr 9, 2024
1 parent 9fae1fe commit aa8c66f
Showing 1 changed file with 17 additions and 14 deletions.
31 changes: 17 additions & 14 deletions docusaurus.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -360,20 +360,6 @@ const config = {
content: 'https://tags.tiqcdn.com/utag/vmware/microsites-privacy/prod/utag.js',
},
],
headTags: [
{
tagName: 'script',
attributes: { src: '//www.vmware.com/files/templates/inc/utag_data.js' },
},
{
tagName: 'script',
attributes: { src: '//tags.tiqcdn.com/utag/vmware/microsites-privacy/prod/utag.sync.js' },
},
{
tagName: 'script',
innerHTML: "function OptanonWrapper() { { window.dataLayer.push({ event: 'OneTrustGroupsUpdated' }); } }",
},
],
}),

headTags: [
Expand All @@ -384,6 +370,23 @@ const config = {
href: 'https://fonts.googleapis.com/css?family=Raleway:400,700',
},
},
{
tagName: 'script',
attributes: {
href: '//www.vmware.com/files/templates/inc/utag_data.js',
},
},
{
tagName: 'script',
attributes: {
href: '//tags.tiqcdn.com/utag/vmware/microsites-privacy/prod/utag.sync.js',
},
},
{
tagName: 'script',
attributes: {},
innerHTML: "function OptanonWrapper() { { window.dataLayer.push({ event: 'OneTrustGroupsUpdated' }); } }",
},
],

markdown: {
Expand Down

0 comments on commit aa8c66f

Please sign in to comment.