From a90f5df4bc9a2ab749b52bddbcb38ed5d4d249ba Mon Sep 17 00:00:00 2001 From: wakadakawaka Date: Wed, 7 May 2025 21:22:30 +0500 Subject: [PATCH] add script --- update-site.bat | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 update-site.bat diff --git a/update-site.bat b/update-site.bat new file mode 100644 index 0000000..f61385a --- /dev/null +++ b/update-site.bat @@ -0,0 +1,13 @@ +@echo off +cd /d C:\kb-personal +echo Updating project... + +git reset --hard +git clean -fd +git pull +call python "C:\scripts\add-slug.py" "C:\kb-personal\src\content\docs\knowledge-base" +call npm install +call npm run build + +robocopy dist C:\Apache24\htdocs\kb-personal /MIR /NP /NFL /NDL +exit /b 0 \ No newline at end of file