Skip to content

Commit d29d4a7

Browse files
committed
Compile the CLI, run it directly
1 parent 6ca33d7 commit d29d4a7

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Jenkinsfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ node {
4848
BUILD_NAME = URLDecoder.decode(env.BUILD_TAG, "UTF-8").replaceAll("[^a-zA-Z0-9_.-]", "_")
4949
image = docker.build(BUILD_NAME.toLowerCase(), '.')
5050
image.inside() { c ->
51-
sh "cd ReDoc-customized/ReDoc-customized && yarn install && yarn bundle"
51+
sh "cd ReDoc-customized/ReDoc-customized && yarn install && yarn bundle && yarn compile:cli"
5252
}
5353
}
5454

build-docs.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ set -x -e
99
[[ -d "linode-api-docs" ]] && cd linode-api-docs
1010

1111
# run the static site builder
12-
redoc-cli bundle openapi.yaml --options.hideDownloadButton=true --options.pathInMiddlePanel=true --options.requiredPropsFirst=true --options.expandResponses="200,"
12+
./ReDoc-customized/ReDoc-customized/cli/index.js bundle openapi.yaml --options.hideDownloadButton=true --options.pathInMiddlePanel=true --options.requiredPropsFirst=true --options.expandResponses="200,"
1313

1414

1515
export HOME='/target'

0 commit comments

Comments
 (0)