mirror of
https://gitea.com/gitea/docs.git
synced 2026-09-17 19:55:34 +00:00
fix: sed incantation for dl.gitea.com main-nightly (#26)
Signed-off-by: jolheiser <[email protected]> Reviewed-on: https://gitea.com/gitea/gitea-docusaurus/pulls/26 Reviewed-by: techknowlogick <[email protected]> Co-authored-by: jolheiser <[email protected]> Co-committed-by: jolheiser <[email protected]>
This commit is contained in:
@@ -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