1pnpm add @holocron.so/vite react react-dom vite
123456import { defineConfig } from 'vite' import { holocron } from '@holocron.so/vite' export default defineConfig({ plugins: [holocron()], })
docs.json file at the project root:12345678910{ "name": "My Docs", "colors": { "primary": "#6366f1" }, "navigation": [ { "group": "Getting Started", "pages": ["index"] } ] }
index.mdx:12345678--- title: Welcome description: My documentation site. --- # Welcome This is my first Holocron page.
1npx vite
http://localhost:5173 and you should see your docs site.1npx vite build
1node dist/rsc/index.js
123456my-docs/ ├── index.mdx ├── docs.json ├── vite.config.ts ├── package.json └── public/ # static assets (logos, images)
pagesDir option. See Pages directory for details.