From 883e9318cf64e29bb4b48f8b1f81150b564b154b Mon Sep 17 00:00:00 2001 From: Florian Date: Mon, 9 Mar 2026 09:31:27 -0500 Subject: [PATCH] [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 --- scripts/ci_site.sh | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/scripts/ci_site.sh b/scripts/ci_site.sh index 3d072a7..19cbb00 100755 --- a/scripts/ci_site.sh +++ b/scripts/ci_site.sh @@ -113,11 +113,8 @@ create_configuration_files() { local url_prefix="$1" local version="$2" local mode="$3" - local dest_line="" - - if [[ "$mode" == "dev" ]]; then - dest_line=" \"dest\": \"generated/site/dev\"," - fi + # Note: dest is always "generated/site" (from defaults.json). + # The dev subdirectory is handled by destination_dir in the GitHub Actions deploy step. # download common config download_common_config @@ -130,7 +127,6 @@ create_configuration_files() { "title": "Theengs OpenMQTTGateway", "version": "${version}", "url_prefix": "${url_prefix}", - ${dest_line} "mode": "${mode}" } EOF