diff --git a/.gitignore b/.gitignore index 3b2beea2..17361fa9 100644 --- a/.gitignore +++ b/.gitignore @@ -21,4 +21,8 @@ yarn-error.log* .tmp/ docs/ -versioned_docs/ \ No newline at end of file +versioned_docs/ +static/_headers +static/_redirects +static/latest-swagger.json +static/19-swagger.json \ No newline at end of file diff --git a/loop_docs-19-zh-cn.sh b/loop_docs-19-zh-cn.sh index bc4087d5..8f0eace7 100644 --- a/loop_docs-19-zh-cn.sh +++ b/loop_docs-19-zh-cn.sh @@ -18,7 +18,7 @@ $SED_INPLACE 's/}}//' $file $SED_INPLACE 's/{{< version >}}/1.19.0/g' $file - $SED_INPLACE 's/{{< relref "doc/\/docs/g' $file + $SED_INPLACE 's/{{< relref "doc/\/docs\/zh-cn/g' $file $SED_INPLACE 's/" >}}//g' $file $SED_INPLACE 's/\*\*Table of Contents\*\*//' $file + $SED_INPLACE 's/weight:/sidebar_position:/g' $file done for file in `find ./versioned_docs/version-1.19/zh-cn/usage/ -name "*.md"`; do diff --git a/loop_docs-19.sh b/loop_docs-19.sh index d2509e69..5a9d461e 100644 --- a/loop_docs-19.sh +++ b/loop_docs-19.sh @@ -10,7 +10,7 @@ fi $SED_INPLACE 's/}}//' $file - $SED_INPLACE 's/{{< version >}}/1.18.5/g' $file + $SED_INPLACE 's/{{< version >}}/1.19.0/g' $file $SED_INPLACE 's/{{< relref "doc/\/docs/g' $file $SED_INPLACE 's/" >}}//g' $file $SED_INPLACE 's/\*\*Table of Contents\*\*//' $file diff --git a/loop_docs-zh-cn.sh b/loop_docs-zh-cn.sh index 2e34b8ed..2c46bb90 100644 --- a/loop_docs-zh-cn.sh +++ b/loop_docs-zh-cn.sh @@ -18,7 +18,7 @@ $SED_INPLACE 's/}}//' $file $SED_INPLACE 's/{{< version >}}/1.18.2/g' $file - $SED_INPLACE 's/{{< relref "doc/\/docs/g' $file + $SED_INPLACE 's/{{< relref "doc/\/docs\/zh-cn/g' $file $SED_INPLACE 's/" >}}//g' $file $SED_INPLACE 's/\*\*Table of Contents\*\*//' $file + $SED_INPLACE 's/weight:/sidebar_position:/g' $file done for file in `find ./docs/zh-cn/usage/ -name "*.md"`; do diff --git a/loop_docs.sh b/loop_docs.sh index ef58d60b..56cd4672 100644 --- a/loop_docs.sh +++ b/loop_docs.sh @@ -13,7 +13,7 @@ $SED_INPLACE 's/