You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@shardingsphere.apache.org by xi...@apache.org on 2020/07/29 10:23:59 UTC

[shardingsphere] branch master updated: revise docs build script

This is an automated email from the ASF dual-hosted git repository.

xiaoyu pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/shardingsphere.git


The following commit(s) were added to refs/heads/master by this push:
     new d3995f2  revise docs build script
     new d2d269c  Merge pull request #6513 from kimmking/reviseBuild
d3995f2 is described below

commit d3995f2c4d8eadb2f83028185eb1a181d10a2e73
Author: kimmking <ki...@apache.org>
AuthorDate: Wed Jul 29 18:20:27 2020 +0800

    revise docs build script
---
 docs/build.sh | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/docs/build.sh b/docs/build.sh
index 273b586..36142ef 100644
--- a/docs/build.sh
+++ b/docs/build.sh
@@ -5,17 +5,17 @@ rm -rf target
 
 mkdir -p target/document
 cd document
-hugo
+hugo --cleanDestinationDir
 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 ..
-mv document/public target/document/current
+mv document/public/* target/document/current
 
 mkdir target/community
 cd community
-hugo
+hugo --cleanDestinationDir
 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
@@ -25,7 +25,7 @@ mv community/public/* target/community/
 
 mkdir target/blog
 cd blog
-hugo
+hugo --cleanDestinationDir
 find ./ -name '*.html' -exec sed -i -e 's|[[:space:]]*<option id="\([a-zA-Z]\+\)" value="|<option id="\1" value="/blog|g' {} \;
 cd public/en
 sed -i -e 's/cn/en/g' index.html