17
17
# # ---------------------------------------------------------------------------
18
18
# bin/sh
19
19
echo " start building servicecomb-docs."
20
+ echo " Python version:"
21
+ python --version
22
+
20
23
CUR_DIR=$PWD
21
24
echo " env CUR_DIR=$CUR_DIR "
22
25
23
26
echo " Starting install software"
24
- npm install gitbook-cli -g
25
- sudo pip install mkdocs
27
+ sudo pip install mkdocs==1.6.1
28
+ sudo pip install mkdocs-material==9.5.31
29
+
26
30
git clone https://github.com/apache/servicecomb-docs.git
27
- sudo pip install mkdocs-material
28
31
29
32
echo " Starting compile docs"
30
- cd $CUR_DIR /servicecomb-docs
31
- gitbook build saga-reference docs/saga
32
- gitbook build service-center-reference docs/service-center
33
-
34
33
cd $CUR_DIR /servicecomb-docs/java-chassis-reference/zh_CN
35
34
mkdocs build -d ../../docs/java-chassis/zh_CN
36
- cd $CUR_DIR /servicecomb-docs/java-chassis-reference/en_US
37
- mkdocs build -d ../../docs/java-chassis/en_US
38
- cd $CUR_DIR
39
-
40
35
41
36
echo " Starting coping docs"
37
+ cd $CUR_DIR
42
38
rm -r docs/java-chassis/zh_CN/*
43
- rm -r docs/java-chassis/en_US/*
44
- rm -r docs/saga/*
45
- rm -r docs/service-center/*
46
- cp -r servicecomb-docs/docs/ ./
39
+ cp -r servicecomb-docs/docs/java-chassis/zh_CN ./docs/java-chassis/
47
40
48
41
# add some debug infos
42
+ echo " ls -l ./docs"
49
43
ls -l ./docs
44
+ echo " ls -l ./docs/java-chassis"
50
45
ls -l ./docs/java-chassis
51
- ls -l ./docs/java-chassis/1.x
52
- ls -l ./docs/java-chassis/2.x
46
+ echo " ls -l ./docs/java-chassis/zh_CN "
47
+ ls -l ./docs/java-chassis/zh_CN
53
48
54
49
echo " Starting preparing push docs"
55
50
rm -r servicecomb-docs
56
- git add docs
51
+ git add docs
0 commit comments