mirror of
https://gitea.com/gitea/docs.git
synced 2026-06-25 05:36:00 +00:00
fix: sed incantation for dl.gitea.com main-nightly (#26)
Signed-off-by: jolheiser <john.olheiser@gmail.com> Reviewed-on: https://gitea.com/gitea/gitea-docusaurus/pulls/26 Reviewed-by: techknowlogick <techknowlogick@noreply.gitea.com> Co-authored-by: jolheiser <john.olheiser@gmail.com> Co-committed-by: jolheiser <john.olheiser@gmail.com>
This commit is contained in:
@@ -26,7 +26,8 @@ for file in `find ./i18n/zh-cn/docusaurus-plugin-content-docs/current/ -name "*.
|
||||
# note only works on linux, forget about it when attempting to run on macos
|
||||
# hide hugo toc
|
||||
$SED_INPLACE 's/{{< toc >}}//' $file
|
||||
$SED_INPLACE 's/{{< version >}}/1.18.2/g' $file
|
||||
$SED_INPLACE 's/dl.gitea.com\/gitea\/{{< version >}}/dl.gitea.com\/gitea\/main/g' $file
|
||||
$SED_INPLACE 's/{{< version >}}/main-nightly/g' $file
|
||||
$SED_INPLACE 's/{{< relref "doc\///g' $file
|
||||
$SED_INPLACE 's/.zh-cn.md/.md/g' $file
|
||||
$SED_INPLACE 's/" >}}//g' $file
|
||||
|
||||
@@ -24,6 +24,7 @@ $SED_INPLACE 's/"version":.*/"version":"1.20-dev"/' static/latest-swagger.json
|
||||
for file in `find ./docs/ -name "*.md"`; do
|
||||
# hide hugo toc
|
||||
$SED_INPLACE 's/{{< toc >}}//' $file
|
||||
$SED_INPLACE 's/dl.gitea.com\/gitea\/{{< version >}}/dl.gitea.com\/gitea\/main/g' $file
|
||||
$SED_INPLACE 's/{{< version >}}/main-nightly/g' $file
|
||||
$SED_INPLACE 's/{{< relref "doc\///g' $file
|
||||
$SED_INPLACE 's/.en-us.md/.md/g' $file
|
||||
|
||||
Reference in New Issue
Block a user