From 92dbf9833f07e1b7dc3a0023cad12e9fa4bd79c0 Mon Sep 17 00:00:00 2001 From: Swilder-M Date: Thu, 26 Sep 2024 11:25:52 +0800 Subject: [PATCH] chore(ci): fix redoc cli Signed-off-by: Swilder-M --- .github/workflows/deploy_docs.yaml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/deploy_docs.yaml b/.github/workflows/deploy_docs.yaml index 81b1ebe..b367f3c 100644 --- a/.github/workflows/deploy_docs.yaml +++ b/.github/workflows/deploy_docs.yaml @@ -102,9 +102,10 @@ jobs: - name: build redoc run: | cd frontend + npm i -g @redocly/cli@latest LANGS=(zh en) for lang in "${LANGS[@]}"; do - npx @redocly/cli build-docs redoc/api-swagger-${lang}.json \ + redocly build-docs redoc/api-swagger-${lang}.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'