-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathupdate-api-metadata.bat
More file actions
40 lines (36 loc) · 1014 Bytes
/
update-api-metadata.bat
File metadata and controls
40 lines (36 loc) · 1014 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
@echo off
REM Update API metadata for DocFX documentation
REM Run this after making code changes to update the API docs
REM Then commit the api/*.yml files
echo ========================================
echo Archon Engine - Update API Metadata
echo ========================================
echo.
REM Check if docfx is installed
where docfx >nul 2>nul
if %ERRORLEVEL% NEQ 0 (
echo ERROR: docfx not found. Install it with:
echo dotnet tool install -g docfx
echo.
pause
exit /b 1
)
echo Generating API metadata from C# projects...
docfx metadata docfx.json
if %ERRORLEVEL% NEQ 0 (
echo ERROR: Failed to generate metadata
echo.
echo Make sure Unity has generated the .csproj files.
pause
exit /b 1
)
echo.
echo ========================================
echo API metadata updated successfully!
echo.
echo Don't forget to commit the api/*.yml files:
echo git add api/*.yml
echo git commit -m "Update API metadata"
echo ========================================
echo.
pause