From c85e2fffbe17eea7284073d5a46700a82851d9d9 Mon Sep 17 00:00:00 2001 From: Stefan Wintermeyer Date: Mon, 18 Sep 2023 15:00:19 +0200 Subject: [PATCH] Replace internal links to index.html with directory. --- .github/workflows/antora_build_deploy.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/workflows/antora_build_deploy.yml b/.github/workflows/antora_build_deploy.yml index 46d44ec..e2ec666 100644 --- a/.github/workflows/antora_build_deploy.yml +++ b/.github/workflows/antora_build_deploy.yml @@ -29,6 +29,10 @@ jobs: run: | antora --fetch antora-playbook.yml # Replace 'antora-playbook.yml' with your playbook's name if different + - name: Replace internal index.html links to directories with trailing slash + run: | + find ./build/site -name "*.html" -exec sed -i 's@href="\([^"]*\)/index.html"@href="\1/"@g' {} \; + - name: Deploy to Linux server via SCP env: DEPLOY_KEY: ${{ secrets.DEPLOY_SSH_KEY }}