-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild_docs.bat
More file actions
45 lines (38 loc) · 943 Bytes
/
build_docs.bat
File metadata and controls
45 lines (38 loc) · 943 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
@echo off
REM Build MkDocs Documentation
REM This script builds the static documentation site
echo Building MkDocs documentation...
echo.
REM Activate virtual environment if it exists
if exist "venv\Scripts\activate.bat" (
echo Activating virtual environment...
call venv\Scripts\activate.bat
)
REM Check if MkDocs is installed
mkdocs --version >nul 2>&1
if %errorlevel% neq 0 (
echo MkDocs not found. Installing...
pip install -r requirements.txt
)
REM Clean previous build
if exist "site" (
echo Removing previous build...
rmdir /s /q site
)
REM Build documentation
echo Building site...
mkdocs build --strict
REM Check build status
if %errorlevel% equ 0 (
echo.
echo Documentation built successfully!
echo Output directory: site\
echo.
echo To deploy to GitHub Pages, run:
echo mkdocs gh-deploy
) else (
echo.
echo Build failed. Check the errors above.
exit /b 1
)
pause