Skip to content

Commit bc449c6

Browse files
refactor: use redoc upstream
1 parent 212765d commit bc449c6

File tree

3 files changed

+2
-2267
lines changed

3 files changed

+2
-2267
lines changed

.github/workflows/github-pages.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717
- name: Build site
1818
run: |
1919
rm -rf dist
20-
mkdir -p dist/scripts
20+
mkdir -p dist
2121
2222
pandoc README.md \
2323
--from=gfm \
@@ -28,7 +28,6 @@ jobs:
2828
2929
cp -R ./logo ./dist/logo
3030
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
3231
- name: Upload Pages artifact
3332
uses: actions/upload-pages-artifact@v3
3433
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)