Fix multiple languages sidebar

This commit is contained in:
Lunny Xiao
2023-04-04 12:14:20 +08:00
parent 1bfd1268e7
commit da0e55515b
10 changed files with 170 additions and 247 deletions
+3 -2
View File
@@ -18,7 +18,7 @@ $SED_INPLACE 's/<empty/<&#8288;empty/' docs/zh-cn/contributing/guidelines-backen
$SED_INPLACE 's/<empty/<&#8288;empty/' docs/zh-cn/administration/config-cheat-sheet.zh-cn.md
$SED_INPLACE 's/^url:.*//' docs/zh-cn/intro.md
$SED_INPLACE 's/^title:.*/displayed_sidebar: mySidebar/' docs/zh-cn/intro.md
$SED_INPLACE 's/^title:.*/displayed_sidebar: siderBarCN/' docs/zh-cn/intro.md
$SED_INPLACE 's/^slug:.*/slug: \/zh-cn\//' docs/zh-cn/intro.md
$SED_INPLACE 's/.\/guidelines-frontend.md/.\/guidelines-frontend/' docs/zh-cn/development/hacking-on-gitea.zh-cn.md
@@ -29,9 +29,10 @@ for file in `find ./docs/zh-cn/ -name "*.md"`; do
# hide hugo toc
$SED_INPLACE 's/{{< toc >}}//' $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