1 Star 0 Fork 20

yangmain / sharding-shpere-doc

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
build.sh 909 Bytes
一键复制 编辑 原始数据 按行查看 历史
潘娟 提交于 2018-05-28 12:56 . build.sh
#!/bin/bash
cd `dirname $0`
rm -rf target
mkdir target
cp -rf homepage/. target
mkdir -p target/document/legacy/1.x
mkdir -p target/document/legacy/2.x
cp -rf document/legacy/2.x/cn target/document/legacy/2.x/cn
cp -rf document/legacy/2.x/en target/document/legacy/2.x/en
cp -rf document/legacy/1.x/cn target/document/legacy/1.x/cn
cd document/current
hugo
find ./ -name '*.html' -exec sed -i -e 's|[[:space:]]*<option id="\([a-zA-Z]\+\)" value="|<option id="\1" value="/document/current|g' {} \;
cd public/en
sed -i -e 's/cn/en/g' index.html
cd ../..
cd ..
cd ..
mv document/current/public target/document/current
mkdir target/community
cd community/
hugo
find ./ -name '*.html' -exec sed -i -e 's|[[:space:]]*<option id="\([a-zA-Z]\+\)" value="|<option id="\1" value="/community|g' {} \;
cd public/en
sed -i -e 's/cn/en/g' index.html
cd ../..
cd ..
mv community/public/* target/community/
1
https://gitee.com/yangsir/sharding-sphere-doc.git
git@gitee.com:yangsir/sharding-sphere-doc.git
yangsir
sharding-sphere-doc
sharding-shpere-doc
master

搜索帮助