Skip to content
This repository was archived by the owner on Nov 29, 2023. It is now read-only.

Commit 1cfbc7a

Browse files
authored
Merge branch 'main' into PDX-537
2 parents 05ec2d4 + f903829 commit 1cfbc7a

File tree

9 files changed

+236
-231
lines changed

9 files changed

+236
-231
lines changed

.github/CODEOWNERS

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
# Global rule:
2-
* @Bandwidth/dx
2+
* @Bandwidth/software-infrastructure

.github/workflows/listener.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ jobs:
8484
fi
8585
done < files.txt
8686
87-
- uses: bandwidth/[email protected].0
87+
- uses: bandwidth/[email protected].1
8888
with:
8989
repoName: api-docs
9090
prNumber: ${{ env.PR_NUMBER }}

.github/workflows/lts-release.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ name: Create LTS Versions
33
on:
44
schedule:
55
- cron: '0 0 1,16 * *'
6+
workflow_dispatch:
67

78
jobs:
89
lts_needed:
@@ -38,6 +39,8 @@ jobs:
3839
TOKEN: ${{ secrets.DX_GITHUB_TOKEN }}
3940
LTS_ZIP: ${{ needs.lts_needed.outputs.new_lts_zip }}
4041
REL_NAME: ${{ needs.lts_needed.outputs.release_name }}
42+
GOOGLE_ANALYTICS_TRACKING_ID: "12345"
43+
GTAG_TRACKING_ID: "12345"
4144

4245
- name: Update Bucket Name
4346
id: bucket_name

.github/workflows/pr-publish-docsite.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ concurrency:
1717
jobs:
1818
cypress:
1919
name: Cypress Tests
20+
if: github.event.pull_request.draft == false
2021
runs-on: ${{ matrix.os }}
2122
container:
2223
image: cypress/browsers:node16.13.2-chrome97-ff96
@@ -54,10 +55,11 @@ jobs:
5455
COMMIT_INFO_MESSAGE: ${{github.event.pull_request.title}}
5556
# re-enable PR comment bot
5657
COMMIT_INFO_SHA: ${{github.event.pull_request.head.sha}}
58+
GOOGLE_ANALYTICS_TRACKING_ID: "12345"
59+
GTAG_TRACKING_ID: "12345"
5760

5861
publish:
5962
name: Publish Temp Docsite
60-
needs: cypress
6163
runs-on: ubuntu-latest
6264
outputs:
6365
domain: ${{steps.distribution.outputs.distribution-domain}}
@@ -90,6 +92,9 @@ jobs:
9092
cd site
9193
yarn install --pure-lockfile
9294
npm run build
95+
env:
96+
GOOGLE_ANALYTICS_TRACKING_ID: "12345"
97+
GTAG_TRACKING_ID: "12345"
9398

9499
- name: Sync Zip to Bucket
95100
run: |

.github/workflows/publish-docsite.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,8 @@ jobs:
4646
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
4747
COMMIT_INFO_MESSAGE: ${{github.event.pull_request.title}}
4848
COMMIT_INFO_SHA: ${{github.event.pull_request.head.sha}}
49+
GOOGLE_ANALYTICS_TRACKING_ID: "12345"
50+
GTAG_TRACKING_ID: "12345"
4951

5052
publish:
5153
name: Publish Docsite
@@ -66,6 +68,9 @@ jobs:
6668
cd site
6769
yarn install --pure-lockfile
6870
npm run build
71+
env:
72+
GOOGLE_ANALYTICS_TRACKING_ID: ${{ secrets.GOOGLE_ANALYTICS_TRACKING_ID }}
73+
GTAG_TRACKING_ID: ${{ secrets. GTAG_TRACKING_ID}}
6974

7075
- name: Configure AWS Credentials
7176
uses: aws-actions/configure-aws-credentials@v1
@@ -142,6 +147,8 @@ jobs:
142147
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
143148
COMMIT_INFO_MESSAGE: ${{github.event.pull_request.title}}
144149
COMMIT_INFO_SHA: ${{github.event.pull_request.head.sha}}
150+
GOOGLE_ANALYTICS_TRACKING_ID: "12345"
151+
GTAG_TRACKING_ID: "12345"
145152

146153
notify_for_failures:
147154
name: Notify for Failures

site/docusaurus.config.js

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
require("dotenv").config();
12
const YAML = require("yaml");
23
const fs = require("fs");
34
const path = require("path");
@@ -132,9 +133,9 @@ module.exports = {
132133
},
133134
scripts: [
134135
{
135-
src: 'https://zna4mkbqfujeowh1i-voxbone.siteintercept.qualtrics.com/SIE/?Q_ZID=ZN_a4MKBQfuJeoWH1I',
136-
async: true
137-
}
136+
src: "https://zna4mkbqfujeowh1i-voxbone.siteintercept.qualtrics.com/SIE/?Q_ZID=ZN_a4MKBQfuJeoWH1I",
137+
async: true,
138+
},
138139
],
139140
presets: [
140141
[
@@ -153,11 +154,11 @@ module.exports = {
153154
customCss: require.resolve("./src/css/main.scss"),
154155
},
155156
googleAnalytics: {
156-
trackingID: "UA-62651840-1",
157+
trackingID: process.env.GOOGLE_ANALYTICS_TRACKING_ID,
157158
anonymizeIP: false,
158159
},
159160
gtag: {
160-
trackingID: "G-DGM69FKK2K",
161+
trackingID: process.env.GTAG_TRACKING_ID,
161162
anonymizeIP: false,
162163
},
163164
},

site/lts.config.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
[
2+
"v2023.04.12",
23
"v2023.03.29",
34
"v2023.03.15",
45
"v2023.02.27",
@@ -9,6 +10,5 @@
910
"v2022.12.15",
1011
"v2022.11.30",
1112
"v2022.11.09",
12-
"v2022.10.20",
13-
"v2022.10.17"
13+
"v2022.10.20"
1414
]

site/package.json

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,14 +17,15 @@
1717
},
1818
"dependencies": {
1919
"@algolia/client-search": "^4.9.1",
20-
"@docusaurus/core": "^2.3.1",
21-
"@docusaurus/plugin-google-gtag": "^2.3.1",
22-
"@docusaurus/preset-classic": "^2.3.1",
20+
"@docusaurus/core": "^2.4.0",
21+
"@docusaurus/plugin-google-gtag": "^2.4.0",
22+
"@docusaurus/preset-classic": "^2.4.0",
2323
"@types/react": "^17.0.0",
2424
"bandwidth-redoc": "^1.2.0",
2525
"buffer": "^6.0.3",
2626
"core-js": "^3.1.4",
2727
"docusaurus-plugin-sass": "^0.2.2",
28+
"dotenv": "^16.0.3",
2829
"js-yaml": "^4.1.0",
2930
"mobx": "^6.3.0",
3031
"react": "^17.0.1",
@@ -34,7 +35,7 @@
3435
"sass": "^1.56.1",
3536
"styled-components": "^5.2.3",
3637
"typescript": "^2.7",
37-
"webpack": "^5.0.0"
38+
"webpack": "^5.76.0"
3839
},
3940
"browserslist": {
4041
"production": [

0 commit comments

Comments
 (0)