chore(api): replace redoc-cli with @redocly/cli (#27144)

redoc-cli was deprecated in favor of @redocly/cli.

Signed-off-by: Takuya Noguchi <takninnovationresearch@gmail.com>
Co-authored-by: Mattermost Build <build@mattermost.com>
This commit is contained in:
Takuya N
2024-06-21 00:54:41 +09:00
committed by GitHub
parent 09792aee4e
commit efe04e31b0
3 changed files with 3972 additions and 5278 deletions

View File

@@ -60,7 +60,7 @@ build-v4: node_modules playbooks
cd server && go run . $(V4_YAML)
@node_modules/.bin/swagger-cli validate $(V4_YAML)
@node_modules/.bin/redoc-cli -t ./v4/html/ssr_template.hbs build ./v4/html/static/mattermost-openapi-v4.yaml -o ./v4/html/index.html --options.noAutoAuth --options.suppressWarnings
@node_modules/.bin/redocly -t ./v4/html/ssr_template.hbs build-docs ./v4/html/static/mattermost-openapi-v4.yaml -o ./v4/html/index.html
@echo Complete
node_modules: package.json $(wildcard package-lock.json)
@@ -72,7 +72,7 @@ node_modules: package.json $(wildcard package-lock.json)
run:
@echo Starting redoc server
@node_modules/.bin/redoc-cli -t ./v4/html/ssr_template.hbs serve ./v4/html/static/mattermost-openapi-v4.yaml --options.noAutoAuth --options.suppressWarnings --ssr
@node_modules/.bin/redocly preview-docs ./v4/html/static/mattermost-openapi-v4.yaml
clean:
@echo Cleaning

9239
api/package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@@ -4,11 +4,16 @@
"description": "This respository holds the API reference available at [https://api.mattermost.com](https://api.mattermost.com).",
"main": "index.js",
"dependencies": {
"redoc-cli": "0.13.17",
"@redocly/cli": "^1.13.0",
"swagger-cli": "4.0.4",
"sync-fetch": "0.4.1",
"yaml": "2.1.1"
},
"overrides": {
"redoc": {
"react-tabs": "^6.0.0"
}
},
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},