Skip to content

Commit e6aae7a

Browse files
committed
add scripts
1 parent 05e7955 commit e6aae7a

File tree

1 file changed

+13
-18
lines changed

1 file changed

+13
-18
lines changed

scripts/build.sh

Lines changed: 13 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -17,40 +17,35 @@
1717
## ---------------------------------------------------------------------------
1818
#bin/sh
1919
echo "start building servicecomb-docs."
20+
echo "Python version:"
21+
python --version
22+
2023
CUR_DIR=$PWD
2124
echo "env CUR_DIR=$CUR_DIR"
2225

2326
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+
2630
git clone https://github.com/apache/servicecomb-docs.git
27-
sudo pip install mkdocs-material
2831

2932
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-
3433
cd $CUR_DIR/servicecomb-docs/java-chassis-reference/zh_CN
3534
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-
4035

4136
echo "Starting coping docs"
37+
cd $CUR_DIR
4238
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/
4740

4841
# add some debug infos
42+
echo "ls -l ./docs"
4943
ls -l ./docs
44+
echo "ls -l ./docs/java-chassis"
5045
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
5348

5449
echo "Starting preparing push docs"
5550
rm -r servicecomb-docs
56-
git add docs
51+
git add docs

0 commit comments

Comments
 (0)