A repository's README.md renders automatically on the repo's homepage, GitHub Wikis provide a separate, lighter-weight space for longer-form docs (backed by their own git repo per project), and GitHub Pages can serve a full static site (often built with Jekyll) directly from a repo branch or folder -- these are three genuinely different documentation surfaces, not variations of the same feature.
- Use the README for what a visitor needs immediately (what the project is, how to install/run it), not as a dumping ground for every doc page
- Use a Wiki or a docs folder for longer-form guides that don't belong on the repo's front page, since Wiki content isn't versioned alongside your code the same way in-repo docs are
- Set up GitHub Pages specifically if you want a publicly browsable rendered site (not just markdown files), since it requires its own build/publish configuration separate from the Wiki
Use cases
Intro
- Publish onboarding guides in GitHub
- Maintain API references in GitHub
- Coordinate contributor guidelines in GitHub
- Version control for docs with GitHub pages
- Review and approve docs changes in GitHub
Closing
