Quickstart
Connect a GitHub repo and get a hosted docs site live in a few minutes.
Connect a GitHub repo and get a hosted docs site live in a few minutes.
Sambadocs turns a GitHub repository of Markdown into a hosted documentation site. Point it at a repo, and every push publishes — no build config, no CI to wire up, no separate hosting to manage.
This guide takes you from zero to a live docs site.
A GitHub account and a repository with at least one .mdx (or .md)
file. Don't have one yet? You can start from an empty repo — Sambadocs
can scaffold a starter docs.json and a first page for you.
Sign in, then connect a repo through the GitHub App. You choose exactly which repositories Sambadocs can see — it never gets blanket access to your account. The full walkthrough lives in Connect your GitHub repo.
docs.jsondocs.json at the root of your repo tells Sambadocs what your site is
called and how the pages are organized into the sidebar:
{
"name": "Acme Docs",
"navigation": [
{
"group": "Getting started",
"pages": ["introduction", "quickstart"]
}
]
}Each entry in pages is the path to an .mdx file (without the
extension), relative to the repo root. That's the whole config for a
basic site — you add groups and pages as your docs grow.
Pages are plain MDX: Markdown, plus a small set of components for callouts, tabs, and code. Frontmatter sets the page title and description:
---
title: Introduction
description: What Acme is and why you'd use it.
---
Welcome to Acme. This guide walks you through the basics.Commit and push to your default branch. Sambadocs builds the site and
publishes it — typically within seconds — at your project's URL
(your-project.sambadocs.com, or a custom domain on Pro).
Edit Markdown in Git → push → it's live. Your repo stays the source of truth, and there's no proprietary format to export if you ever leave.