File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ @ echo off
2+
3+ :: Remove the docs directory
4+ echo Removing docs directory...
5+ rmdir /s /q docs
6+
7+ :: Create the docs directory
8+ echo Creating docs directory...
9+ mkdir docs
10+
11+ :: Unzip website.zip into the docs directory
12+ echo Unpacking website.zip into docs...
13+ if exist tmp\website.zip (
14+ powershell -Command " Expand-Archive -Path tmp\website.zip -DestinationPath docs -Force"
15+ echo Unpacking complete.
16+ ) else (
17+ echo website.zip not found in tmp directory. Exiting.
18+ exit /b 1
19+ )
20+
21+ :: Copy contents of extra-files into the docs directory
22+ echo Copying extra files from extra-files to docs...
23+ if exist extra-files (
24+ xcopy extra-files\* docs\ /e /i /q /y
25+ echo Extra files copied successfully.
26+ ) else (
27+ echo Directory extra-files does not exist. Skipping extra files setup.
28+ )
29+
30+ echo All tasks completed.
Original file line number Diff line number Diff line change 1+ # Remove the docs directory
2+ Write-Host " Removing docs directory..."
3+ if (Test-Path - Path " docs" ) {
4+ Remove-Item - Recurse - Force " docs"
5+ }
6+
7+ # Create the docs directory
8+ Write-Host " Creating docs directory..."
9+ New-Item - ItemType Directory - Path " docs" | Out-Null
10+
11+ # Unzip website.zip into the docs directory
12+ Write-Host " Unpacking website.zip into docs..."
13+ if (Test-Path - Path " tmp/website.zip" ) {
14+ Expand-Archive - Path " tmp/website.zip" - DestinationPath " docs" - Force
15+ Write-Host " Unpacking complete."
16+ } else {
17+ Write-Host " website.zip not found in tmp directory. Exiting."
18+ exit 1
19+ }
20+
21+ # Copy contents of extra-files into the docs directory
22+ Write-Host " Copying extra files from extra-files to docs..."
23+ if (Test-Path - Path " extra-files" ) {
24+ Copy-Item - Path " extra-files\*" - Destination " docs" - Recurse - Force
25+ Write-Host " Extra files copied successfully."
26+ } else {
27+ Write-Host " Directory extra-files does not exist. Skipping extra files setup."
28+ }
29+
30+ Write-Host " All tasks completed."
You can’t perform that action at this time.
0 commit comments