1717# # ---------------------------------------------------------------------------
1818# bin/sh
1919echo " start building servicecomb-docs."
20+ echo " Python version:"
21+ python --version
22+
2023CUR_DIR=$PWD
2124echo " env CUR_DIR=$CUR_DIR "
2225
2326echo " 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+
2630git clone https://github.com/apache/servicecomb-docs.git
27- sudo pip install mkdocs-material
2831
2932echo " 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-
3433cd $CUR_DIR /servicecomb-docs/java-chassis-reference/zh_CN
3534mkdocs 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-
4035
4136echo " Starting coping docs"
37+ cd $CUR_DIR
4238rm -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/
4740
4841# add some debug infos
42+ echo " ls -l ./docs"
4943ls -l ./docs
44+ echo " ls -l ./docs/java-chassis"
5045ls -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
5348
5449echo " Starting preparing push docs"
5550rm -r servicecomb-docs
56- git add docs
51+ git add docs
0 commit comments