Quickstart

Getting started•3 min read|
|

Create a documentation site and preview it locally in under 3 minutes.

Set your project name:

Create your project

Scaffold a new documentation project:

docslit init {{PROJECT}}

This creates a {{PROJECT}}/ directory with a starter configuration and three example pages.

Enter the project directory
cd {{PROJECT}}
Start the dev server
docslit dev

The dev server starts on http://localhost:3000 with hot reload enabled. Every time you save a file, the browser updates automatically.

Edit your first page

Open docs/introduction.md in your editor and make a change. The browser reloads instantly to show your update.

What was created

After running init, your project looks like this:

File Purpose
docslit.json Project configuration — site name and sidebar structure
docs/*.md Your documentation pages in Markdown
components/ Directory for custom web components (optional)

Start without a config file

docslit init is the recommended start, but docslit.json is optional. A folder with a docs/ directory of .md files is already a project:

Run docslit dev or docslit build in that folder. DocsLit builds an automatic sidebar from the folders, uses the folder name as the site name and prints a note. validate, lint and mcp work the same way. Create a docslit.json when you want to set a name, theme or navigation, and the dev server picks it up. docslit new and docslit theme use need a real docslit.json. See Autogenerated sidebars.

In a Mintlify repo, docslit dev and docslit build also work without a docslit.json. See Try DocsLit without converting.

Add a new page

Create a Markdown file

Create docs/guides.md:

--- title: Guides --- # Guides Welcome to the guides section. <wc-callout type="info" title="Coming soon"> More guides are on the way. </wc-callout>
Add it to the sidebar

Open docslit.json and add "guides" to the pages array:

{ "name": "{{PROJECT}}", "sidebar": [ { "group": "Getting Started", "pages": ["introduction", "installation", "quickstart", "guides"] } ] }
See it live

The dev server picks up the config change automatically. Your new page appears in the sidebar.

Build for production

When you are ready to deploy, build a static site:

docslit build

This creates a dist/ directory with everything you need to deploy. See static hosting for deployment guides.

Next steps