Skip to content

Commit

Permalink
Update the doc sync script to remove the .md from the links.
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexPl292 committed Oct 21, 2024
1 parent ad76237 commit 26909af
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions .github/workflows/syncDoc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,17 @@ jobs:
id: update_authors
run: cp -a origin/doc/. docs

# The Wiki for github should have no `.md` in references
# Otherwise, such links will lead to the raw text.
# However, the `.md` should exist to have a navigation in GitHub code.
- name: Replace `.md)` with `)`
run: |
# Define the directory you want to process
DIRECTORY="docs"
# Find all files in the directory and perform the replacement
find $DIRECTORY -type f -exec sed -i 's/\.md)//g' {} +
- name: Commit changes
uses: stefanzweifel/git-auto-commit-action@v4
with:
Expand Down

0 comments on commit 26909af

Please sign in to comment.