diff --git a/.github/workflows/deploy.yaml b/.github/workflows/deploy.yaml index 14618d6a3..27ca9cda7 100644 --- a/.github/workflows/deploy.yaml +++ b/.github/workflows/deploy.yaml @@ -27,7 +27,9 @@ jobs: - name: Install and Bundle run: | yarn install - yarn bundle:redoc + yarn bundle:redocly + yarn redocly:split + yarn redocly:site yarn bundle:swagger - name: Deploy Local diff --git a/package.json b/package.json index 73a5d535b..b2446814a 100644 --- a/package.json +++ b/package.json @@ -13,6 +13,9 @@ }, "scripts": { "serve": "redoc-cli serve --template redoc/template.hbs.html --options='{\"menuToggle\":true,\"expandSingleSchemaField\":true,\"sortPropsAlphabetically\":true,\"generatedPayloadSamplesMaxDepth\":20,\"theme\":{\"colors\":{\"primary\":{\"main\":\"#0086ff\"}}}}' --watch api/spot.yaml", + "bundle:redocly": "redocly bundle api/spot.yaml --output build/temp.yaml", + "redocly:split": "redocly split build/temp.yaml --outDir build", + "redocly:site": "redocly build-docs build/openapi.yaml -t redoc/template.hbs.html -o build/index.html", "bundle:redoc": "redoc-cli bundle --template redoc/template.hbs.html --options='{\"menuToggle\":true,\"expandSingleSchemaField\":true,\"sortPropsAlphabetically\":true,\"generatedPayloadSamplesMaxDepth\":20,\"theme\":{\"colors\":{\"primary\":{\"main\":\"#0086ff\"}}}}' --output build/index.html api/spot.yaml", "bundle:swagger": "swagger-cli bundle --outfile build/openapi.json api/spot.yaml", "validate": "swagger-cli validate --no-schema api/spot.yaml", @@ -21,7 +24,8 @@ "devDependencies": { "prettier": "^2.6.2", "redoc-cli": "^0.13.20", - "swagger-cli": "^4.0.4" + "swagger-cli": "^4.0.4", + "@redocly/cli": "1.4.0" }, "engines": { "node": ">=12"