Wiki page links in the Home page were broken. Gitea appends a .- suffix to sub_urls for titles with hyphens (e.g., Getting-Started becomes Getting-Started.-). Links without the suffix redirect to the wiki page list instead of showing the page.
Solution
Fixed all Home page links to use correct sub_urls with .- suffix
Added verify_wiki_integrity() for comprehensive wiki validation:
Page count matches mapping
No missing pages (in mapping but not in wiki)
No stale pages (in wiki but not in mapping)
All pages have non-empty content matching docs
Added --strict flag that implies --verify and runs full integrity check
Updated sync-wiki.yml workflow to use --strict
Added tests for verify_wiki_integrity and --strict mode
The workflow will now fail if:
Any wiki page is empty
Any mapped page is missing from the wiki
Any stale page exists in the wiki (not in mapping)
Page count does not match
Content does not match the docs
538 tests pass, 100% coverage.
## Problem
Wiki page links in the Home page were broken. Gitea appends a .- suffix to sub_urls for titles with hyphens (e.g., Getting-Started becomes Getting-Started.-). Links without the suffix redirect to the wiki page list instead of showing the page.
## Solution
1. Fixed all Home page links to use correct sub_urls with .- suffix
2. Added verify_wiki_integrity() for comprehensive wiki validation:
- Page count matches mapping
- No missing pages (in mapping but not in wiki)
- No stale pages (in wiki but not in mapping)
- All pages have non-empty content matching docs
3. Added --strict flag that implies --verify and runs full integrity check
4. Updated sync-wiki.yml workflow to use --strict
5. Added tests for verify_wiki_integrity and --strict mode
The workflow will now fail if:
- Any wiki page is empty
- Any mapped page is missing from the wiki
- Any stale page exists in the wiki (not in mapping)
- Page count does not match
- Content does not match the docs
538 tests pass, 100% coverage.
emil
merged commit 69bdb37664 into master2026-06-21 21:14:18 +00:00
emil
deleted branch fix-wiki-links-strict2026-06-21 21:14:18 +00:00
emil
changed title from fix: wiki links, add --strict integrity check for wiki sync to GRM-40: Fix wiki links and add strict integrity check for wiki sync2026-06-21 21:22:05 +00:00
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Problem
Wiki page links in the Home page were broken. Gitea appends a .- suffix to sub_urls for titles with hyphens (e.g., Getting-Started becomes Getting-Started.-). Links without the suffix redirect to the wiki page list instead of showing the page.
Solution
The workflow will now fail if:
538 tests pass, 100% coverage.
fix: wiki links, add --strict integrity check for wiki syncto GRM-40: Fix wiki links and add strict integrity check for wiki sync