Turn any GitHub repo's README into a clean, browsable documentation site. No setup, no build step, no dependencies.
Most projects have a README.md and maybe a docs/ folder scattered with markdown files. These docs are often unorganized, referenced from various places, and hard to browse. Setting up a proper documentation site (Docusaurus, GitBook, MkDocs) feels like overkill for a hobby project or a backend service that just needs its README to be readable.
readme.docs lets anyone turn their GitHub README into a static documentation website by just visiting a URL. No hosting, no config, no CI pipeline. Just share a link and your docs are live.
- Visit your github repo — for example,
www.github.com/facebook/react - Replace
github.comwithdomain-nameand that's it. - The app fetches the README from the repo's default branch via the GitHub API
- Markdown is parsed and rendered as semantic HTML
- Headings are extracted to build a navigable sidebar with collapsible sections
- Scroll position is tracked to highlight the active section in the nav
That's it. One URL, instant docs.
Zero dependencies — No frameworks, no node_modules. A single HTML file with vanilla JS and minimal CSS. The entire app is under 15KB.
Semantic HTML — Uses nav, main, article, and proper heading hierarchy. Works well with terminal web readers like w3m, lynx, and screen readers.
Auto-detected default branch — Doesn't assume main or master. Fetches the actual default branch from the GitHub API.
Built-in markdown parser — Handles headings, fenced code blocks, inline code, tables, ordered and unordered lists, links, images, blockquotes, bold, italic, strikethrough, and horizontal rules. No marked.js, no showdown, no dependencies.
Collapsible sidebar navigation — Headings and subheadings are organized into a tree structure. H2s become top-level sections, H3s nest inside them, and so on. Sections can be collapsed and expanded.
Active section highlighting — As you scroll through the document, the sidebar highlights the current section using IntersectionObserver.
Relative URL resolution — Images and links with relative paths are automatically resolved to their raw GitHub URLs, so everything renders correctly.
Clean URL routing — Uses history.pushState for clean paths like /owner/repo instead of hash-based routing.
Since the app uses client-side routing, you need a server that serves index.html for all routes.
npx serve -s . -l 3000Then visit http://localhost:3000.
.
├── index.html # The entire app — markup + styles
├── script.js # Routing, markdown parser, sidebar nav, rendering
└── README.md # You are here
- Only works for
github.comrepos as of now. - Only parses the root
README.md(doesn't crawldocs/folders yet) - The markdown parser covers most common syntax but isn't fully CommonMark-compliant
- Subject to GitHub API rate limits (60 requests/hour unauthenticated)
- No caching yet — fetches the README on every page load
MIT
No README or docs? Don't worry I got you covered. Check this out: GithubWikiGenerator for the repo and of course, readmedocs.netlify.app/Samyc2002/GithubWikiGenerator for the docs 😜