Skip to content

Commit dc19528

Browse files
refactor: use official redoc upstream
1 parent 5b118a3 commit dc19528

File tree

3 files changed

+1
-2267
lines changed

3 files changed

+1
-2267
lines changed

.github/workflows/github-pages.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@ jobs:
1717
- name: Build site
1818
run: |
1919
rm -rf dist
20-
mkdir -p dist/scripts
2120
2221
pandoc README.md \
2322
--from=gfm \
@@ -28,7 +27,6 @@ jobs:
2827
2928
cp -R ./logo ./dist/logo
3029
cp ./docs.html ./dist/docs.html
31-
cp ./scripts/scripts/redoc.standalone-v3.0.0-rc.0.js ./dist/scripts/redoc.standalone-v3.0.0-rc.0.js
3230
- name: Upload Pages artifact
3331
uses: actions/upload-pages-artifact@v3
3432
with:

docs.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@
5050
`https://raw.githubusercontent.com/${user}/${repo}/${branch}/spec.yaml`;
5151

5252
const redocScriptUrl =
53-
`https://${user}.github.io/${repo}/scripts/redoc.standalone-v3.0.0-rc.0.js`;
53+
`https://cdn.redoc.ly/redoc/v3.0.0-rc.0/redoc.standalone.js`;
5454

5555
const redocEl = document.querySelector('redoc');
5656
redocEl.setAttribute('spec-url', specUrl);

0 commit comments

Comments
 (0)