Skip to content

Commit

Permalink
Merge pull request #92 from emqx/ci
Browse files Browse the repository at this point in the history
update api-swagger.json
  • Loading branch information
Red-Asuka authored Sep 27, 2024
2 parents 16dce10 + bd08241 commit 5cf3ab1
Show file tree
Hide file tree
Showing 4 changed files with 8,322 additions and 28,734 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/deploy_docs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ on:
- v*
branches:
- main
- ci

jobs:
deploy:
Expand Down Expand Up @@ -102,10 +103,11 @@ jobs:
- name: build redoc
run: |
cd frontend
npm i -g @redocly/cli@latest
set -x
echo ${VERSION}
LANGS=(zh en)
for lang in "${LANGS[@]}"; do
redocly build-docs redoc/api-swagger-${lang}.json \
npx @redocly/cli build-docs redoc/api-swagger.json \
--output docs/.vitepress/dist/${lang}/neuronex/${VERSION}/api/api-docs.html \
--theme.openapi.theme.colors.primary.main=#00b173 \
--theme.openapi.theme.typography.headings.fontFamily='Roboto, sans-serif'
Expand Down
Loading

0 comments on commit 5cf3ab1

Please sign in to comment.