blob: 59d83ae9791dd65715928497ea971d5789ccbda1 (
plain) (
blame)
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
|
@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\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\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
)
endlocal
|