-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
document_generator.bat
62 lines (44 loc) · 1.58 KB
/
document_generator.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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
ECHO OFF
@REM Cleaning all old files
ECHO ============================== Cleaning old docs ==============================
cd docs
echo Y | rmdir npm /s
echo Y | rmdir python /s
echo Y | rmdir java /s
cd ..
ECHO ============================== Cleaning completed =============================
ECHO =============================== Documenting NPM ===============================
@REM Generate JSDoc
cd npm
call npm i
call npm run document
cd ..
ECHO =================================== Completed =================================
ECHO ================================ Documenting JAVA =============================
@REM Generate JavaDoc
call mvn -B package --file ./java/Coded-Json/pom.xml
call mvn -f java/Coded-Json/pom.xml javadoc:javadoc
ECHO =================================== Completed =================================
ECHO ============================== Documenting Python ============================
@REM Generate PythonDoc for python repository
call pip install sphinx sphinx_rtd_theme
cd python/cjson
call make html
move _build/html ../../docs
cd ../../docs
rename html python
cd ../
ECHO =================================== Completed =================================
ECHO ================================== Documenting DotNet ==============================
cd dotnet/CJson
call dotnet build
call dotnet tool update -g docfx
call docfx docfx.json
move _site ../../docs
cd ../../docs
rename _site dotnet
ECHO =================================== Completed =================================
cd docs
dir
cd ..
ECHO ================================ Task completed ================================