Skip to content

Commit c9974cd

Browse files
committed
one more link rewrite
1 parent ad91619 commit c9974cd

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

.github/workflows/deploy.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,10 +32,13 @@ jobs:
3232

3333
- name: Rewrite internal Markdown links for MkDocs build
3434
run: |
35-
echo "Rewriting internal Markdown links (.md → .html)..."
35+
echo "Fixing Markdown links (.md → .html and removing guidance_docs/)..."
3636
cd guidance_docs
37+
# Replace .md) with .html)
3738
grep -rl '\.md)' . | xargs sed -i 's/\.md)/.html)/g' || true
38-
echo "Rewrite complete."
39+
# Remove guidance_docs/ from links
40+
grep -rl 'guidance_docs/' . | xargs sed -i 's#guidance_docs/##g' || true
41+
echo "Link rewrite complete."
3942
4043
- name: Deploy MkDocs site
4144
run: mkdocs gh-deploy --force

0 commit comments

Comments
 (0)