File tree Expand file tree Collapse file tree 2 files changed +8
-5
lines changed Expand file tree Collapse file tree 2 files changed +8
-5
lines changed Original file line number Diff line number Diff line change 3030npm run build:all || exit 2
3131
3232cd $WRKDIR /documentation/generator
33- mkdir -p $WRKDIR /documentation/generator/_site/assets/searchIndex
33+ mkdir -p $WRKDIR /documentation/generator/_site/assets/searchIndex/documents
3434cp -rf $WRKDIR /documentation/hugo/scripts/search/index/searchIndex/* $WRKDIR /documentation/generator/_site/assets/searchIndex
35- cp -rf $WRKDIR /documentation/hugo/scripts/search/index/documents $WRKDIR /documentation/generator/_site/assets/searchIndex/documents
35+ cp -rf $WRKDIR /documentation/hugo/scripts/search/index/documents/ * $WRKDIR /documentation/generator/_site/assets/searchIndex/documents/
3636cp -f $WRKDIR /documentation/redirects.conf $WRKDIR /documentation/generator/_site/
3737
3838$WRKDIR /documentation/generator/_scripts/cfdoc_postprocess.py " $@ "
Original file line number Diff line number Diff line change @@ -122,13 +122,16 @@ sudo chmod -R a+rX "$WRKDIR"/masterfiles
122122echo " branch: $BRANCH " >> " $WRKDIR " /documentation/generator/_config.yml
123123
124124# replace %branch% placeholder with actual branch name
125+ CONFIG_TOML=" $WRKDIR /documentation/hugo/config.toml"
125126if [ " $BRANCH " = " lts" ]; then
126127 # First, remove %branch% from the title line
127- sed -i ' /^title = /s/ %branch%//' " $WRKDIR " /documentation/hugo/config.toml
128+ sed -i ' /^title = /s/ %branch%//' " $CONFIG_TOML "
129+ # Replace %branch% in searchBaseUrl with "lts"
130+ sed -i ' /^searchBaseUrl = /s/%branch%/lts/' " $CONFIG_TOML "
128131 # Then replace remaining %branch% with LTS_VERSION
129- sed -i " s/%branch%/$LTS_VERSION /g" " $WRKDIR " /documentation/hugo/config.toml
132+ sed -i " s/%branch%/$LTS_VERSION /g" " $CONFIG_TOML "
130133else
131- sed -i " s/%branch%/$BRANCH /g" " $WRKDIR " /documentation/hugo/config.toml
134+ sed -i " s/%branch%/$BRANCH /g" " $CONFIG_TOML "
132135fi
133136
134137# Generate syntax data
You can’t perform that action at this time.
0 commit comments