English | 简体中文
Scaffold a React documentation site in seconds, powered by react-docs-ui
. Focus on writing Markdown; routing, theming, MDX, syntax highlighting, i18n, sidebar/TOC and a command menu are prewired.
- Configuration over code via
public/config/site.yaml
- MD/MDX rendering, syntax highlight, GFM, simple frontmatter parsing
- Light/dark theme and command palette (Cmd/Ctrl+K)
- Built-in i18n folders (e.g.
en
,zh-cn
) - Ready-to-run Vite setup
- Node.js >= 18
- npm:
npm create react-docs-ui@latest my-docs
- yarn:
yarn create react-docs-ui my-docs
- pnpm:
pnpm create react-docs-ui my-docs
Then:
cd my-docs
npm install
npm run dev
Dev server runs at http://localhost:5173
dev
: start Vite dev serverbuild
: type-check and buildpreview
: preview production build
public/config/site.yaml
andpublic/config/site.en.yaml
: site config per languagepublic/docs/<lang>/**/*.md
: Markdown docs, matched by route slugsrc/
: app entry; usually no changes required
site:
logo: /logo.svg
title: My Docs
description: Awesome docs
navbar:
showTitle: true
items:
- title: GitHub
link: https://github.com/shenjianZ/react-docs-ui
external: true
sidebar:
collections:
guide:
sections:
- title: Getting Started
path: guide
children:
- { title: Introduction, path: guide/introduction }
---
title: Introduction
---
# Introduction
Welcome to My Docs!
- Underlying UI library:
react-docs-ui
— https://github.com/shenjianZ/react-docs-ui