From 0d57796da34fdfb30922cece10b37ffaeea15c60 Mon Sep 17 00:00:00 2001 From: Michael Baj Date: Thu, 14 Mar 2024 18:48:31 -0400 Subject: [PATCH] Restoring juniper-docs-migration diffs --- docusaurus.config.js | 6 +++-- src/components/adobe-analytics-plugin.js | 28 ++++++++++++++++++++++++ 2 files changed, 32 insertions(+), 2 deletions(-) create mode 100644 src/components/adobe-analytics-plugin.js diff --git a/docusaurus.config.js b/docusaurus.config.js index 7fdf4a933c..647356d04b 100644 --- a/docusaurus.config.js +++ b/docusaurus.config.js @@ -1,8 +1,10 @@ module.exports = { title: 'SSN Docs', tagline: 'The documentation source for the Session Smart Networking Platform', - url: 'https://docs.128technology.com', - baseUrl: process.env.OFFLINE_DOCS ? '/offline-docs/' : '/', + //url: 'https://docs.128technology.com', + url: 'https://uat.juniper.net', + //baseUrl: process.env.OFFLINE_DOCS ? '/offline-docs/' : '/', + baseUrl: '/documentation/us/en/software/session-smart-router/', favicon: 'img/favicon.png', organizationName: '128technology', // Usually your GitHub org/user name. projectName: 'docs', // Usually your repo name. diff --git a/src/components/adobe-analytics-plugin.js b/src/components/adobe-analytics-plugin.js new file mode 100644 index 0000000000..cd3c04eabc --- /dev/null +++ b/src/components/adobe-analytics-plugin.js @@ -0,0 +1,28 @@ +module.exports = function (context, options) { + return { + name: 'adobe-analytics-plugin', + injectHtmlTags() { + return { + headTags: [ + { + tagName: 'script', + attributes: { + type: 'text/javascript', + src: '//assets.adobedtm.com/998b2d6d4944658536fe36266a249b07e626b86d/satelliteLib-6d05b7c7a99e1cbbdcac4fcfe7005e6bee80a0e9.js', + async: true, + }, + }, + ], + postBodyTags: [ + { + tagName: 'script', + attributes: { + type: 'text/javascript', + src: '_satellite.pageBottom();', + }, + }, + ], + }; + }, + }; +};