Commit c9688c8
fix(ci): add CNAME file to docs/ and fix mkdocs deployment (#23)
**Problem:**
- GitHub Pages custom domain kept getting reset
- Workflow used `mkdocs gh-deploy --custom-domain mnemex.dev` flag
- This flag doesn't exist, causing deployments to fail
- Failed deployments left GitHub Pages API without custom domain set
**Solution:**
- Add CNAME file to docs/ directory (standard mkdocs pattern)
- Remove invalid `--custom-domain` flag from workflow
- MkDocs automatically deploys CNAME file to gh-pages branch
- GitHub Pages API setting manually configured via `gh api` command
**How it works:**
- CNAME file in docs/ is copied during `mkdocs gh-deploy`
- Both CNAME file AND GitHub Pages API must be set
- This ensures custom domain persists across deployments
Fixes the recurring issue of custom domain being reset.
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-authored-by: Claude <noreply@anthropic.com>1 parent 0833422 commit c9688c8
2 files changed
Lines changed: 3 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
46 | 46 | | |
47 | 47 | | |
48 | 48 | | |
49 | | - | |
50 | | - | |
| 49 | + | |
| 50 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
0 commit comments