diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 7a8b043bc04..3fbe32ef636 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -39,14 +39,18 @@ jobs: - name: Build env: NODE_OPTIONS: "--max-old-space-size=4096" + BUILD_OUT_DIR: build/documentation/us/en/software/session-smart-router run: npm run build - name: Build Offline Bundle env: NODE_OPTIONS: "--max-old-space-size=4096" + BUILD_OUT_DIR: build/documentation/us/en/software/session-smart-router run: npm run build:offline - name: Check Links + env: + LINKINATOR_PATH: "documentation/us/en/software/session-smart-router/**/*.html" run: npm run check-links - name: Deploy diff --git a/docusaurus.config.js b/docusaurus.config.js index d48f1f277bb..fe59b2eeb63 100644 --- a/docusaurus.config.js +++ b/docusaurus.config.js @@ -1,8 +1,10 @@ const config = { 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.ico', organizationName: '128technology', // Usually your GitHub org/user name. projectName: 'docs', // Usually your repo name. diff --git a/linkinator.config.json b/linkinator.config.json index 7dbc0af6012..2710a5c1a24 100644 --- a/linkinator.config.json +++ b/linkinator.config.json @@ -6,6 +6,7 @@ "skip": [ "^mailto:", "^https://docs\\.128technology\\.com", + "^https://uat\\.juniper\\.net", "^https://tools\\.ietf\\.org", "^https://www\\.wireguard\\.com", "^https://regexr\\.com", diff --git a/src/components/adobe-analytics-plugin.js b/src/components/adobe-analytics-plugin.js new file mode 100644 index 00000000000..cd3c04eabcf --- /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();', + }, + }, + ], + }; + }, + }; +};