Skip to content
This repository was archived by the owner on May 21, 2025. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 1 addition & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,16 +16,14 @@
"redoc-cli": "^0.9.6",
"remote-origin-url": "^2.0.0",
"shelljs": "^0.7.0",
"swagger-repo": "2.0.0-rc.15",
"@redocly/openapi-cli": "0.8.4",
"swagger-ui-dist": "3.24.0",
"update-notifier": "3.0.1",
"yargs-parser": "15.0.0"
},
"bin": "./dist/gh-openapi-docs.js",
"scripts": {
"fetch": "node src/fetchpages.js",
"swagger": "swagger-repo",
"redoc": "redoc-cli",
"build:swagger": "node src/swagger-ui.js",
"build:redoc": "node src/redoc-ui.js",
"clean": "rm -rf dist/* bin/*",
Expand Down
4 changes: 2 additions & 2 deletions src/lib/bundle.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,10 @@ const bundleSpec = async () => {
'text': OPENAPI_JSON_PATH
});
shell.exec(
`npm run swagger bundle -- -b ${specDir} -o ${OPENAPI_JSON_PATH}`
`openapi bundle -f --output ${OPENAPI_JSON_PATH} ${config.apiSpecPath}`
);
shell.exec(
`npm run swagger bundle -- --yaml -b ${specDir} -o ${OPENAPI_YAML_PATH}`
`openapi bundle -f --output ${OPENAPI_YAML_PATH} ${config.apiSpecPath}`
);
shell.rm('-rf', specDir);
};
Expand Down
2 changes: 1 addition & 1 deletion src/lib/redoc-ui.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ const setupUI = () => {
var indexPath = path.join(uiPath, 'index.html');
log.log(`Generating OpenAPI docs index at '${indexPath}'`);
shell.exec(
`npm run redoc bundle -- ${OPENAPI_YAML_PATH} --output ${indexPath}`
`redoc-cli bundle --output ${indexPath} ${OPENAPI_YAML_PATH}`
);
log.preview({
'title': 'OpenAPI docs folder contents',
Expand Down