We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0f3a6aa commit 6c4cbbaCopy full SHA for 6c4cbba
generator/build/main.sh
@@ -121,7 +121,12 @@ sudo chmod -R a+rX "$WRKDIR"/masterfiles
121
echo "branch: $BRANCH" >> "$WRKDIR"/documentation/generator/_config.yml
122
123
# replace %branch% placeholder with actual branch name
124
-sed -i "s/%branch%/$BRANCH/g" "$WRKDIR"/documentation/hugo/config.toml
+if [ "$BRANCH" = "lts" ]; then
125
+ # For lts branch, remove %branch% and the space before it
126
+ sed -i "s/ %branch%//g" "$WRKDIR"/documentation/hugo/config.toml
127
+else
128
+ sed -i "s/%branch%/$BRANCH/g" "$WRKDIR"/documentation/hugo/config.toml
129
+fi
130
131
# Generate syntax data
132
./_regenerate_json.sh || exit 4
0 commit comments