File tree Expand file tree Collapse file tree 2 files changed +31
-0
lines changed Expand file tree Collapse file tree 2 files changed +31
-0
lines changed Original file line number Diff line number Diff line change @@ -20,11 +20,38 @@ node {
20
20
deleteDir()
21
21
checkout scm
22
22
sh " git fetch"
23
+
24
+ dir(' ReDoc-Customized' ) {
25
+ checkout poll : false , scm : [
26
+ $class : ' GitSCM' ,
27
+ branches : [[name : ' development' ]],
28
+ doGenerateSubmoduleConfigurations : false ,
29
+ credentialsId : " baker" ,
30
+ extensions : [[
31
+ $class : ' WipeWorkspace' ,
32
+ ], [
33
+ $class : ' RelativeTargetDirectory' ,
34
+ relativeTargetDir : ' ReDoc-customized' ,
35
+ ], [
36
+ $class : ' CloneOption' ,
37
+ noTags : false ,
38
+ ]],
39
+ userRemoteConfigs : [[
40
+ refspec : " +refs/heads/*:refs/remotes/origin/*" ,
41
+ url :
' [email protected] :LinodeAPI/ReDoc-customized' ,
42
+ ]]
43
+ ]
44
+ }
23
45
}
24
46
25
47
stage(' Build Docker' ) {
26
48
BUILD_NAME = URLDecoder . decode(env. BUILD_TAG , " UTF-8" ). replaceAll(" [^a-zA-Z0-9_.-]" , " _" )
27
49
image = docker. build(BUILD_NAME . toLowerCase(), ' .' )
50
+ image. inside() { c ->
51
+ dir(' ReDoc-customized/ReDoc-customized' ) {
52
+ sh " yarn install"
53
+ sh " yarn bundle"
54
+ }
28
55
}
29
56
30
57
stage (' Apply Substitutions' ) {
Original file line number Diff line number Diff line change @@ -8,6 +8,10 @@ set -x -e
8
8
# if run from the vagrant project switch to linode-api-docs to mimic baker
9
9
[[ -d " linode-api-docs" ]] && cd linode-api-docs
10
10
11
+ # run the static site builder
12
+ redoc-cli bundle openapi.yaml --options.hideDownloadButton=true --options.pathInMiddlePanel=true --options.requiredPropsFirst=true --options.expandResponses=" 200,"
13
+
14
+
11
15
export HOME=' /target'
12
16
echo $HOME
13
17
You can’t perform that action at this time.
0 commit comments