[DOCS] Fix dev docs deploying to /dev/dev/ instead of /dev/ (#2289)
The ci_site.sh script was overriding the VuePress dest to "generated/site/dev" in dev mode. Since task-docs.yml already sets destination_dir: "dev" in the GitHub Pages deploy step, this caused the site to be nested at /dev/dev/ on gh-pages, leaving docs.openmqttgateway.com/dev/ empty. Remove the dest override and let the deploy action handle the subdirectory placement. Co-authored-by: Florian <1technophile@users.noreply.github.com> Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
1 file changed
+2
-6
+2
-6
@@ -113,11 +113,8 @@ create_configuration_files() {
|
|||||||
local url_prefix="$1"
|
local url_prefix="$1"
|
||||||
local version="$2"
|
local version="$2"
|
||||||
local mode="$3"
|
local mode="$3"
|
||||||
local dest_line=""
|
# Note: dest is always "generated/site" (from defaults.json).
|
||||||
|
# The dev subdirectory is handled by destination_dir in the GitHub Actions deploy step.
|
||||||
if [[ "$mode" == "dev" ]]; then
|
|
||||||
dest_line=" \"dest\": \"generated/site/dev\","
|
|
||||||
fi
|
|
||||||
|
|
||||||
# download common config
|
# download common config
|
||||||
download_common_config
|
download_common_config
|
||||||
@@ -130,7 +127,6 @@ create_configuration_files() {
|
|||||||
"title": "Theengs OpenMQTTGateway",
|
"title": "Theengs OpenMQTTGateway",
|
||||||
"version": "${version}",
|
"version": "${version}",
|
||||||
"url_prefix": "${url_prefix}",
|
"url_prefix": "${url_prefix}",
|
||||||
${dest_line}
|
|
||||||
"mode": "${mode}"
|
"mode": "${mode}"
|
||||||
}
|
}
|
||||||
EOF
|
EOF
|
||||||
|
|||||||
Reference in new issue
Block a user