GitHub Pages
The site is a Starlight app under docs/. CI builds it with mise and Task, then GitHub Pages
serves docs/dist. Rule pages come from symlinks into modules/*/rules/; recipe pages are Astro
routes that read examples/*/.ai-rulez/config.toml at build time.
Live URL: https://mrjk.github.io/ai-rules/
One-time GitHub settings
Section titled “One-time GitHub settings”After the workflow file is on main:
- Push
maintoorigin(git@github.com:mrjk/ai-rules.git). - Repo Settings > Pages: Build and deployment Source = GitHub Actions (not “Deploy from a branch”).
- Settings > Actions > General: allow GitHub Actions for this repository.
- If the repo is private, GitHub Pages needs a paid plan. Public repos work on the free plan.
- Open the Actions tab and wait for the
ciworkflow onmainto finish. The deploy job prints the Pages URL. - Open https://mrjk.github.io/ai-rules/. The first deploy can take a minute.
A 404 usually means Pages is still set to “Deploy from a branch”, or the workflow has not succeeded yet.
Local preview
Section titled “Local preview”task docs:devThen open the URL Task/Astro prints. With base: /ai-rules, the app is served under /ai-rules/.
How CI deploys
Section titled “How CI deploys”.github/workflows/ci.yml runs task ci (task validate then task docs:build) on every push
and pull request. On push to main it uploads docs/dist and deploys with
actions/deploy-pages.