How to set up a docs site for a small SaaS
To set up a docs site for a small SaaS, pick a docs-as-code tool such as Docusaurus or Starlight, keep the Markdown files in your product's repo, deploy them to a subdomain like docs.yourapp.com on the static host you already use, and add search. That costs nothing and takes an afternoon. Pay for a hosted platform like Mintlify or GitBook only when non-developers need to edit the docs or you want features you would otherwise build.
The steps below assume one product, one or two people writing, and fewer than 50 pages. Prices and commands were checked on the vendors' sites on 1 December 2026.
Step 1: decide who will edit the docs
The answer narrows the tool choice quickly.
- Only developers edit, and docs change in the same pull request as the code: use a static site generator in your repo.
- A founder, support person or contractor who does not use Git will edit: use a hosted editor.
Most solo founders are in the first group for the first year. Docs that live next to the code get updated when the code changes, because the reviewer sees both in one diff.
Step 2: pick a tool
| Tool | Type | Price (1 Dec 2026) | Good fit |
|---|---|---|---|
| Docusaurus | Open-source static site generator (React) | Free | You want docs and a blog in one site |
| Starlight | Open-source docs theme for Astro | Free | Your marketing site already runs on Astro |
| Mintlify | Hosted, MDX in Git plus a web editor | Free plan; Pro $450/month billed yearly or $540 monthly | Polished API docs without building them, team budget available |
| GitBook | Hosted block editor with Git sync | Free plan without a custom domain; Essential from $65 per site/month yearly plus $12 per user | Non-developers write most of the docs |
A few notes on the table. Docusaurus needs Node.js 20 or newer. Starlight ships with site navigation, search and internationalization built in. On GitBook, a custom domain needs a paid plan. On Mintlify, the Pro plan includes 10,000 AI credits a month, and overage is billed per credit, so estimate usage if you plan to turn on its AI features.
If you are torn between the two free tools, the trade-off is the same as for marketing sites, covered in Next.js vs Astro for a SaaS marketing site. For what it is worth, this blog runs on Docusaurus.
Step 3: scaffold the site
Docusaurus:
npx create-docusaurus@latest docs classic
cd docs && npm start
Starlight:
npm create astro@latest -- --template starlight
Put the folder in your main repo (for example /docs) rather than a separate repo. One repo means one pull request per change, and a CI check can fail the build if a page links to something that no longer exists. Docusaurus fails the build on broken internal links by default, which catches most rot.
Step 4: write the first five pages
Start with the pages people look for first:
- Getting started: sign up to first result, in numbered steps with screenshots.
- One page per main feature, written as a task ("Invite a teammate", "Export your data").
- Billing and plans: how to upgrade, cancel and get an invoice.
- Troubleshooting: the five questions you answered most often by email last month.
- API or integrations, if you have them. For API reference, follow the structure in how to write docs for a SaaS API.
Write each page so it can stand alone. People land on docs from search, not from the home page.
Step 5: deploy to a subdomain
Use the static host you already pay for. Build output is plain HTML, so Vercel, Netlify, Cloudflare Pages and GitHub Pages all work. Point a docs CNAME at the host and turn on HTTPS.
Subdomain or subfolder? docs.yourapp.com is the easier setup, because the docs deploy on their own. yourapp.com/docs keeps everything under one hostname but needs a rewrite or proxy rule in your main app. For a small SaaS, take the subdomain and move on.
Step 6: add search
Without search, readers who cannot find a page email you instead. Your options:
- Starlight includes local search out of the box.
- Docusaurus has an official Algolia DocSearch integration. The free DocSearch program is for public technical documentation and technical blogs, and Algolia says it usually turns down sites that are not production ready or have non-technical content. A docs site for a developer-facing product usually qualifies; a help center for a consumer app may not.
- Community local-search plugins for Docusaurus work offline and need no approval. Check the plugin's last release date before you depend on it.
- Mintlify and GitBook include search in their hosted plans.
Step 7: keep it current
Docs drift as the product changes. These habits help:
- Add "docs updated?" to your pull request template.
- Link each support macro to a docs page, so every repeated answer has one place to fix.
- Publish product changes on a changelog page and link to the relevant doc from each entry. How to set up a changelog for a SaaS covers that side.
A quick decision rule
- Solo developer, under 50 pages, budget near zero: Docusaurus or Starlight in your repo, deployed to a subdomain.
- Non-technical teammate writing most pages: GitBook, or Mintlify if your team prefers MDX in Git with an editor on top.
- Large public API with an OpenAPI spec and a playground: compare the hosted tools' API reference features before you build your own.
Frequently asked questions
What is the cheapest way to host docs for a SaaS?
An open-source generator such as Docusaurus or Starlight, deployed to a free static hosting tier. You pay nothing beyond the domain you already own.
Should SaaS docs be on a subdomain or a subfolder?
A subdomain like docs.yourapp.com is simpler to deploy and is the usual choice for a small team. A subfolder needs a proxy or rewrite in your main app.
Is Algolia DocSearch free for a SaaS docs site?
The free DocSearch program covers public technical documentation and technical blogs. Algolia reviews each application and usually declines sites with non-technical content or that are not production ready.
Does GitBook's free plan allow a custom domain?
No. As of 1 December 2026, GitBook lists custom domains on its paid plans, starting with Essential.