GitHub Wiki is a separate Git repository:
- Main repo:
<repo>.git - Wiki repo:
<repo>.wiki.git
By default there is no automatic link between files in the main repository and files in the Wiki repository.
Use docs/ in the main repository as source of truth:
- versioned in normal PR flow
- reviewed with code changes
- easy to keep in sync with implementation
Then optionally sync docs/*.md to Wiki pages with CI.
Important:
- To modify Wiki content, edit files in
docs/in the main repository. - Direct edits in the GitHub Wiki are not persistent and can be overwritten by the next sync.
This repository includes .github/workflows/wiki-sync.yml.
Behavior:
- Trigger on push to
masterwhendocs/**changes, or manually (workflow_dispatch) - Clone
<repo>.wiki.git - Copy
docs/*.mdto wiki root - Ensure
Home.mdexists in wiki (docs/Home.md) - Commit and push changes only when needed
Sync direction is one-way: docs/ -> Wiki.
- GitHub Actions enabled
- Repository wiki enabled in GitHub settings
- Default
GITHUB_TOKENpermissions sufficient for wiki push
If you prefer manual updates:
git clone https://github.com/<owner>/<repo>.wiki.gitEdit wiki pages directly and push.
For most projects, automated one-way sync from docs/ is easier to maintain.