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 14:38:02 UTC

[shardingsphere] branch master updated: avoid replace document

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 a8834fe  avoid replace document
     new cfb7c55  Merge pull request #6518 from kimmking/reviseDoc2
a8834fe is described below

commit a8834fed41725f5e527463311c179dc00198b63b
Author: kimmking <ki...@apache.org>
AuthorDate: Wed Jul 29 22:23:14 2020 +0800

    avoid replace document
---
 docs/build.sh | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

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