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>
Этот коммит содержится в:
@@ -60,7 +60,7 @@ build-v4: node_modules playbooks
|
|||||||
cd server && go run . $(V4_YAML)
|
cd server && go run . $(V4_YAML)
|
||||||
|
|
||||||
@node_modules/.bin/swagger-cli validate $(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
|
@echo Complete
|
||||||
|
|
||||||
node_modules: package.json $(wildcard package-lock.json)
|
node_modules: package.json $(wildcard package-lock.json)
|
||||||
@@ -72,7 +72,7 @@ node_modules: package.json $(wildcard package-lock.json)
|
|||||||
run:
|
run:
|
||||||
@echo Starting redoc server
|
@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:
|
clean:
|
||||||
@echo Cleaning
|
@echo Cleaning
|
||||||
|
|||||||
9239
api/package-lock.json
сгенерированный
9239
api/package-lock.json
сгенерированный
Разница между файлами не показана из-за своего большого размера
Загрузить разницу
@@ -4,11 +4,16 @@
|
|||||||
"description": "This respository holds the API reference available at [https://api.mattermost.com](https://api.mattermost.com).",
|
"description": "This respository holds the API reference available at [https://api.mattermost.com](https://api.mattermost.com).",
|
||||||
"main": "index.js",
|
"main": "index.js",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"redoc-cli": "0.13.17",
|
"@redocly/cli": "^1.13.0",
|
||||||
"swagger-cli": "4.0.4",
|
"swagger-cli": "4.0.4",
|
||||||
"sync-fetch": "0.4.1",
|
"sync-fetch": "0.4.1",
|
||||||
"yaml": "2.1.1"
|
"yaml": "2.1.1"
|
||||||
},
|
},
|
||||||
|
"overrides": {
|
||||||
|
"redoc": {
|
||||||
|
"react-tabs": "^6.0.0"
|
||||||
|
}
|
||||||
|
},
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"test": "echo \"Error: no test specified\" && exit 1"
|
"test": "echo \"Error: no test specified\" && exit 1"
|
||||||
},
|
},
|
||||||
|
|||||||
Ссылка в новой задаче
Block a user