Skip to content

Commit

Permalink
Replace internal links to index.html with directory.
Browse files Browse the repository at this point in the history
  • Loading branch information
wintermeyer committed Sep 18, 2023
1 parent 1c8a220 commit c85e2ff
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/antora_build_deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand Down

0 comments on commit c85e2ff

Please sign in to comment.