Building a Docs Site for Your Open Source Project with AI: From README to Searchable Docs

1. The takeaway: who this is for and what you get
The takeaway first: a working docs site for an open source project does not require building a frontend from scratch. Pick one route, prepare your content, and follow the steps, and you can ship it in an afternoon. Your README stays: it becomes the starting point. The home page explains what the project does, installation, quickstart, and API reference each get their own page, and the search box takes readers straight to the section they need.
This guide is for maintainers whose docs are still just a README, and for contributors who just took over a project and want to turn scattered notes into a site. You do not need to learn React or Vue first: follow the wizard, edit Markdown to change content, and use an AI chat tool to rewrite text — that covers most of the work.

2. What to prepare
Prepare four things: the project repo and the README itself; Node.js (the VitePress route requires version 22 or higher; install what the Docusaurus docs ask for); a GitHub account with permission to create a repo; and a list of the questions you want the docs site to answer, such as installation, configuration, and common errors.
Then pick a route before you start: Mintlify if you want to ship fast and accept a hosted service, following its official quickstart; Docusaurus or VitePress if you want the docs site in the same repo as the code and control over the build and deploy. Once you pick a route, stick with it — the content structure is the same across all three, and switching only means redoing the scaffolding.
3. Step by step
Step one, split the content: break the README into six pages by reader questions — home, installation, quickstart, core concepts, API reference, and FAQ — one topic per page. List the key points of each page and hand them to an AI chat tool: ask it to rewrite long paragraphs into short ones, add one line explaining what each code sample is for, and write one opening line per page. Check every page afterwards: any example the AI added must have actually run locally. If it has not run, do not publish it.
Step two, build and deploy: on the Docusaurus route, run the one setup command from the official docs, then the start command, preview at localhost:3000, and put the split Markdown files in the docs folder; on the VitePress route, install it, run npx vitepress init, answer the wizard's questions about site title and folders, and preview at localhost:5173; on the Mintlify route, follow the official quickstart to connect your repo or edit in the browser editor. Once everything looks right, configure the publishing source as the GitHub Pages docs describe and push the build output — the site is live.
4. Common snags and fixes
Three snags come up often: the local server fails to start — check the Node.js version against the official requirements first, then delete the dependency folder and reinstall; a page returns 404 — the file path usually does not match the sidebar configuration, so check that Markdown filenames and sidebar entries line up; new content does not show up in search — rebuild, because the local preview's search index does not pick up unsaved changes on its own.
Another easy trap is publishing AI-written docs as-is: AI can invent parameter names and command flags that look real. Check every command and every config option locally or in the repo before publishing; the API reference should list only interfaces that actually exist in the code, and when docs and code disagree, the code wins.
5. Things to watch out for
Shipping the site is only the start — fix the release routine: update the docs with every new release, keep old versions with the versioning feature instead of deleting them, and never put real keys or real addresses in config examples. Mintlify's plans and limits follow its official pages, so check the free allowance before you deploy.
The steps in this guide were checked against the official pages on 2026-11-26. If platform rules change, the official pages apply.
Tools mentioned
Sources
- Mintlify
- Docusaurus
- VitePress
- GitHub Pages documentation — GitHub Docs
This article is compiled from the public sources above and does not reproduce the originals in full; see the official sources for details.