1.8 KiB
1.8 KiB
Documentation and CI (pattern from this repo)
You can reuse the same mechanics this project uses for any open-source or internal project docs—not Claude Code itself.
Ingredients
| Piece | Location here |
|---|---|
| Static site | MkDocs + Material for MkDocs |
| Sources | docs-site/docs/**/*.md, docs-site/mkdocs.yml |
| Build | mkdocs build -f docs-site/mkdocs.yml |
| Deploy | GitHub Actions → gh-pages branch (e.g. peaceiris/actions-gh-pages) |
Checklist for a new repo
- Add
docs-site/withmkdocs.yml,requirements.txt, and Markdown underdocs/. - Set
site_urlwhen GitHub Pages URL is known. - Add workflow: Python setup →
pip install -r docs-site/requirements.txt→mkdocs build→ deploydocs-site/site. - Enable GitHub Pages from
gh-pages/ root (or switch to GitHub’s native Pages Actions upload). - Use
enable_jekyll: false(or commit.nojekyll) so Jekyll does not skip underscore paths.
This fork’s live site
Configured site_url: https://mehmoodosman.github.io/claude-code-source-code/
See also
- Installation — local preview commands
- Editing documentation