GRM-40: Fix wiki links and add strict integrity check for wiki sync #34

Merged
emil merged 0 commits from fix-wiki-links-strict into master 2026-06-21 21:14:18 +00:00
Owner

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.

## 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 master 2026-06-21 21:14:18 +00:00
emil deleted branch fix-wiki-links-strict 2026-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 sync 2026-06-21 21:22:05 +00:00
Sign in to join this conversation.