From 54ed2879c1963ce3d5911a7e2f4732ed92208629 Mon Sep 17 00:00:00 2001 From: jolheiser Date: Tue, 30 May 2023 19:10:17 +0000 Subject: [PATCH] Fix sed incantation for empty (#23) Follow up for #22 Reviewed-on: https://gitea.com/gitea/gitea-docusaurus/pulls/23 Co-authored-by: jolheiser Co-committed-by: jolheiser --- loop_docs-19.sh | 3 ++- loop_docs.sh | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/loop_docs-19.sh b/loop_docs-19.sh index 17cf9a32..824762eb 100644 --- a/loop_docs-19.sh +++ b/loop_docs-19.sh @@ -8,7 +8,8 @@ else SED_INPLACE="sed -i ''" fi -$SED_INPLACE 's/\\//' versioned_docs/version-1.19/administration/config-cheat-sheet.en-us.md +$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 dc24588f..d486c514 100644 --- a/loop_docs.sh +++ b/loop_docs.sh @@ -8,7 +8,8 @@ else SED_INPLACE="sed -i ''" fi -$SED_INPLACE 's/\\//' docs/administration/config-cheat-sheet.en-us.md +$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