-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathbuild.bat
47 lines (32 loc) · 1.02 KB
/
build.bat
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
46
47
@echo off
echo Welcome to WSOFTDocs!
echo Copyright (c) 2022 WSOFT All Rights Reserved.
echo;
echo WSOFTDocs's build has a need to Python3,MkDocs,Lantana,CEI and its dependents.
echo Moreover, You can build legal docs, but documents that aren't from WSOFT shall have no legal effect.
echo To learn more about it, please check at https://docs.wsoft.ws/
echo;
echo If you are attempting to build on a non-x64 processor,
echo change the contents of this variable.
set CEI_FILE_NAME=cei-win-x64.exe
echo CEI will use %CEI_FILE_NAME%
echo;
:build
where pip3 2> nul > nul || goto :pip_notfound
where mkdocs 2> nul > nul || goto :mkdocs_notfound
echo Building the WSOFTDocs...
echo;
mkdocs build --site-dir site
echo Replacing WSOFT Common Tags...
.\tools\cei\%CEI_FILE_NAME% https://wsoft.ws/common/layout.html --min site
echo Build completed. Please check /site directory.
goto :end
:mkdocs_notfound
echo Mkdocs Doesn't exist!
echo Now installing...
CALL install.sh
goto :build
:pip_notfound
echo Pypl3 Doesn't exist!
goto :end
:end