From d3c11f436312528bff332130c3b93c021c422fd5 Mon Sep 17 00:00:00 2001 From: jolheiser Date: Tue, 30 May 2023 17:51:06 +0000 Subject: [PATCH] fix: update sed incantation for empty (#22) Should resolve #21 I cannot seem to get this to run properly on my machine, however this is an educated guess because the Chinese translation looks correct. zh-cn https://docs.gitea.com/zh-cn/administration/config-cheat-sheet#repository---release-repositoryrelease https://gitea.com/gitea/gitea-docusaurus/src/commit/8c38ae516a72b802cc2889a507c824e0174f5256/loop_docs-zh-cn.sh#L11 en-us https://docs.gitea.com/administration/config-cheat-sheet#repository---release-repositoryrelease (check diff for current incantation) Reviewed-on: https://gitea.com/gitea/gitea-docusaurus/pulls/22 Reviewed-by: techknowlogick Co-authored-by: jolheiser Co-committed-by: jolheiser --- loop_docs-19.sh | 2 +- loop_docs.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/loop_docs-19.sh b/loop_docs-19.sh index 74aad5d2..17cf9a32 100644 --- a/loop_docs-19.sh +++ b/loop_docs-19.sh @@ -8,7 +8,7 @@ else SED_INPLACE="sed -i ''" fi -$SED_INPLACE 's///' versioned_docs/version-1.19/administration/config-cheat-sheet.en-us.md $SED_INPLACE 's/^url:.*//' versioned_docs/version-1.19/intro.md $SED_INPLACE 's/^slug:.*/slug: \//' versioned_docs/version-1.19/intro.md $SED_INPLACE 's/.\/guidelines-frontend.md/.\/guidelines-frontend/' versioned_docs/version-1.19/development/hacking-on-gitea.en-us.md diff --git a/loop_docs.sh b/loop_docs.sh index cc947fb7..dc24588f 100644 --- a/loop_docs.sh +++ b/loop_docs.sh @@ -8,7 +8,7 @@ else SED_INPLACE="sed -i ''" fi -$SED_INPLACE 's///' docs/administration/config-cheat-sheet.en-us.md $SED_INPLACE 's/^url:.*//' docs/intro.md $SED_INPLACE 's/^slug:.*/slug: \//' docs/intro.md $SED_INPLACE 's/.\/guidelines-frontend.md/.\/guidelines-frontend/' docs/development/hacking-on-gitea.en-us.md