Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/workflows/github-pages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
- name: Build site
run: |
rm -rf dist
mkdir -p dist/scripts
mkdir -p dist

pandoc README.md \
--from=gfm \
Expand All @@ -26,9 +26,9 @@ jobs:
--metadata title="README" \
-o dist/index.html

cp ./logo/OpenCloudMesh-text-vertical-300x116.png ./dist/logo.png
cp -R ./logo ./dist/logo
cp ./docs.html ./dist/docs.html
cp ./scripts/scripts/redoc.standalone-v3.0.0-rc.0.js ./dist/scripts/redoc.standalone-v3.0.0-rc.0.js
- name: Upload Pages artifact
uses: actions/upload-pages-artifact@v3
with:
Expand Down
3 changes: 2 additions & 1 deletion docs.html
Original file line number Diff line number Diff line change
Expand Up @@ -50,13 +50,14 @@
`https://raw.githubusercontent.com/${user}/${repo}/${branch}/spec.yaml`;

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

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

const script = document.createElement('script');
script.src = redocScriptUrl;
script.type = 'module';
script.async = true;
script.defer = true;
document.body.appendChild(script);
Expand Down
Loading
Loading