Skip to content

Commit aebec3f

Browse files
committed
Rename wiki workflow and remove stale pages
Rename CI workflow from publish-wiki.yml to wiki-publish.yml and add a cleanup step to remove existing markdown files in the wiki repo before copying generated pages. This ensures pages for renamed or deleted classes are removed so stale docs don't persist; the find command is guarded to avoid failing the job. Also normalize file newline at EOF.
1 parent fb35565 commit aebec3f

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed
Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,9 @@ jobs:
5555
5656
- name: Copy generated pages to wiki
5757
run: |
58+
# Remove all existing markdown files from wiki repo to ensure
59+
# pages for renamed or deleted classes are properly cleaned up
60+
find wiki-repo -maxdepth 1 -name '*.md' -type f -delete 2>/dev/null || true
5861
# Copy all generated markdown files to the wiki repo
5962
cp wiki-output/*.md wiki-repo/
6063
echo "Copied wiki pages to wiki repository"
@@ -73,4 +76,4 @@ jobs:
7376
git commit -m "Update wiki documentation - ${TIMESTAMP}"
7477
git push origin HEAD:master || git push origin HEAD:main
7578
echo "Wiki documentation updated successfully"
76-
fi
79+
fi

0 commit comments

Comments
 (0)