diff --git a/build-and-publish.bat b/script/build-and-publish.bat similarity index 98% rename from build-and-publish.bat rename to script/build-and-publish.bat index 6d51315..fcfd5a4 100644 --- a/build-and-publish.bat +++ b/script/build-and-publish.bat @@ -4,8 +4,8 @@ setlocal EnableExtensions chcp 65001 >nul REM Paths and settings -set "ROOT_DIR=%~dp0" -set "PROJECT_DIR=%ROOT_DIR%" +cd /d "%~dp0.." +set "PROJECT_DIR=%CD%\" set "DIST_DIR=%PROJECT_DIR%docs\.vuepress\dist" set "PUBLISH_DIR=%PROJECT_DIR%_publish" set "REMOTE_URL=https://gitea.simengweb.com/si-meng-spec/build_notes_simengweb.git" diff --git a/start.bat b/script/start.bat similarity index 78% rename from start.bat rename to script/start.bat index 729c848..0a233cb 100644 --- a/start.bat +++ b/script/start.bat @@ -1,2 +1,3 @@ @echo off +cd /d "%~dp0.." npm run docs:dev -- --host 0.0.0.0 --port 8888 diff --git a/start.sh b/script/start.sh old mode 100755 new mode 100644 similarity index 66% rename from start.sh rename to script/start.sh index f054f58..d67d4b7 --- a/start.sh +++ b/script/start.sh @@ -1 +1,2 @@ +cd "$(dirname "$0")/.." npm run docs:dev -- --host 0.0.0.0 --port 8888