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

Commit

Permalink
SWI-3589 Add emergency provisioning docs (#1172)
Browse files Browse the repository at this point in the history
* Add Code Snippets to Spec Files

* Add Emergency Provisioning public page

* SWI-3711 Replace `hub` with `gh` (#1171)

* SWI-3711 Github Machine Broke

* dont copy paste blindly

* Use the right flags

* Update .github/workflows/listener.yml

Co-authored-by: Cameron Koegel <[email protected]>

---------

Co-authored-by: Cameron Koegel <[email protected]>

---------

Co-authored-by: DX-Bandwidth <[email protected]>
Co-authored-by: Cameron Koegel <[email protected]>
  • Loading branch information
3 people authored Oct 11, 2023
1 parent d832682 commit d765fbb
Show file tree
Hide file tree
Showing 6 changed files with 2,940 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/listener.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ jobs:
- name: Open Pull Request
if: steps.replace-specs-snippets.outputs.needs_pr
run: |
hub pull-request --base Bandwidth:main $(if ${{ github.event.client_payload.draftPr }} ; then echo "-d" ; fi) -m '${{ github.event.client_payload.branchName }}' -m 'Update API specs from upstream api-specs repository. Opened By: @${{ github.event.client_payload.author }}'
gh pr create -B main $(if ${{ github.event.client_payload.draftPr }} ; then echo "-d" ; fi) -t '${{ github.event.client_payload.branchName }}' -b 'Update API specs from upstream api-specs repository. Opened By: @${{ github.event.client_payload.author }}'
env:
GITHUB_TOKEN: ${{ secrets.DX_GITHUB_TOKEN }}

Expand Down
3 changes: 2 additions & 1 deletion site/custom.config.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,6 @@
"dashSpecLink": "https://github.com/Bandwidth/api-docs/blob/main/site/specs/dash.json",
"dashNotificationsSpecLink": "https://github.com/Bandwidth/api-docs/blob/main/site/specs/dashNotifications.json",
"identitySpecLink": "https://github.com/Bandwidth/api-docs/blob/main/site/specs/one-identity-management.yml",
"insightsSpecLink": "https://github.com/Bandwidth/api-docs/blob/main/site/specs/insights.yml"
"insightsSpecLink": "https://github.com/Bandwidth/api-docs/blob/main/site/specs/insights.yml",
"emergencyProvisioningSpec": "https://github.com/Bandwidth/api-docs/blob/main/site/specs/emergency.yml"
}
4 changes: 4 additions & 0 deletions site/docusaurus.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,8 @@ const identitySpec = fs.readFileSync(
const identityspecLink = "";
const insightsSpec = fs.readFileSync("./specs/insights.yml", "utf-8");

const emergencyProvisioningSpec = fs.readFileSync("./specs/emergency.yml", "utf-8");

module.exports = {
title: "Bandwidth API Docs",
tagline: "Learn About Bandwidth's Product APIs",
Expand Down Expand Up @@ -200,6 +202,8 @@ module.exports = {
identitySpecLink: `${customConfig.dashNotificationsSpecLink}`,
insightsSpec: YAML.parse(insightsSpec),
insightsSpecLink: `${customConfig.insightsSpecLink}`,
emergencyProvisioningSpec: YAML.parse(emergencyProvisioningSpec),
emergencyProvisioningSpecLink: `${customConfig.emergencyProvisioningSpecLink}`,

blogPosts: blogPosts,

Expand Down
Loading

0 comments on commit d765fbb

Please sign in to comment.