aboutsummaryrefslogtreecommitdiff
path: root/.init/generate_docs.bat
diff options
context:
space:
mode:
Diffstat (limited to '.init/generate_docs.bat')
-rw-r--r--.init/generate_docs.bat12
1 files changed, 4 insertions, 8 deletions
diff --git a/.init/generate_docs.bat b/.init/generate_docs.bat
index 829946a..59d83ae 100644
--- a/.init/generate_docs.bat
+++ b/.init/generate_docs.bat
@@ -1,30 +1,26 @@
@echo off
setlocal enabledelayedexpansion
-:: 定义全局参数
set DOC_ROOT=..\doc
set CLIENT_DOC=%DOC_ROOT%\client-documents
set CORE_DOC=%DOC_ROOT%\core-documents
-:: 清理旧文档目录
if exist "%CLIENT_DOC%" rmdir /s /q "%CLIENT_DOC%"
if exist "%CORE_DOC%" rmdir /s /q "%CORE_DOC%"
-:: 生成客户端文档
cd ..\client
cargo doc --no-deps > nul 2>&1
-if exist "..\shared\target\doc\phantomlink_gamepad_client" (
- move "..\shared\target\doc\phantomlink_gamepad_client" "%CLIENT_DOC%"
+if exist "..\shared\target\doc\there_is_nopads_client" (
+ move "..\shared\target\doc\there_is_nopads_client" "%CLIENT_DOC%"
echo [SUCCESS] Client docs moved to: %CLIENT_DOC%
) else (
echo [ERROR] Client docs generation failed
)
-:: 生成核心库文档
cd ..\core
cargo doc --no-deps > nul 2>&1
-if exist "..\shared\target\doc\phantomlink_gamepad_core" (
- move "..\shared\target\doc\phantomlink_gamepad_core" "%CORE_DOC%"
+if exist "..\shared\target\doc\there_is_nopads_core" (
+ move "..\shared\target\doc\there_is_nopads_core" "%CORE_DOC%"
echo [SUCCESS] Core docs moved to: %CORE_DOC%
) else (
echo [ERROR] Core docs generation failed