Installation
ReviteDocs can be installed via npm, yarn, or pnpm.
Prerequisites
- Node.js 18.0 or higher
- npm, yarn, or pnpm
Install ReviteDocs
npm install revitedocs
# or
yarn add revitedocs
# or
pnpm add revitedocs
Initialize a New Project
Run the init wizard to set up your docs:
npx revitedocs init
This will:
- Create a
.revitedocs/config.tsconfiguration file - Create an
index.mdhomepage - Set up the basic folder structure
Project Structure
After initialization, your project will look like this:
::: file-tree
- docs/
- .revitedocs/
- config.ts
- index.md
- guide/
- getting-started.md :::
- .revitedocs/
Add Scripts to package.json
Add these scripts to your package.json:
{
"scripts": {
"docs:dev": "revitedocs dev ./docs",
"docs:build": "revitedocs build ./docs",
"docs:preview": "revitedocs preview ./docs"
}
}
Start Development Server
npm run docs:dev
Your docs site will be available at http://localhost:3000.
Next Steps
- Quick Start - Build your first page
- Configuration - Customize your site