Getting Started
Install Docgo, create starter files, run the dev server, and build a static documentation site.
Docgo is a static documentation site generator built on React, MDX, and Vite. It reads Markdown or MDX files from your docs directory and writes deployable HTML, assets, markdown mirrors, and SEO files to the output directory.
Requirements
- Node.js 20 or newer is recommended.
- Install
reactandreact-domwith Docgo. - Use
.mdor.mdxfiles for documentation content.
Create a Docgo site
Install
npm install @kyechan99/docgoIf your project uses pnpm or yarn, install the same packages with your package manager.
Create starter files
npx @kyechan99/docgo initThe initializer creates files only when they do not already exist:
docgo.config.mjshead.htmlpublic/favicon.pngpublic/logo.pngdocs/index.mdx- starter guide pages under
docs/guide
Run locally
npx docgo devThe dev server uses Vite middleware and reloads config/content changes during development. Use it while editing docs, navigation, and theme settings.
Build
npx docgo buildBy default Docgo reads from docs and writes the production site to dist.
The output includes:
- static HTML pages with clean URLs
- copied files from
public - generated client assets
assets/search-index/<locale>/<version>.jsonwhen search is enabled- one
.mdmirror per page sitemap.xml,robots.txt, andllms.txtwhen enabled
Minimal config
import { defineConfig } from '@kyechan99/docgo';
export default defineConfig({
title: 'My Docs',
description: 'Documentation for my project',
});First page
Create docs/index.mdx:
---
title: Home
description: Welcome to the docs.
---
# Welcome
This is the first page of the documentation.This file is served at /.
