Focusly Documentation
This directory contains the documentation for Focusly, built with VitePress.
Development
bash
# Install dependencies
npm install
# Start dev server (http://localhost:5173)
npm run docs:dev
# Build for production
npm run docs:build
# Preview production build
npm run docs:previewDeployment
The documentation is automatically deployed to Vercel when changes are pushed to the main branch.
Setting up Vercel
- Go to Vercel Dashboard
- Click "Add New..." → "Project"
- Import the
focuslyrepository - Configure the project:
- Framework Preset: Other
- Root Directory:
docs - Build Command:
npm run docs:build - Output Directory:
.vitepress/dist
- Add a custom domain (e.g.,
docs.focusly.oneorhelp.focusly.one) - Deploy!
Structure
docs/
├── .vitepress/
│ ├── config.ts # VitePress configuration
│ └── dist/ # Build output (gitignored)
├── getting-started/ # Getting started guides
├── features/ # Feature documentation
├── guides/ # How-to guides
├── account/ # Account management docs
├── index.md # Homepage
└── ...Configuration
Edit .vitepress/config.ts to:
- Update site title, description, and logo
- Modify navigation and sidebar
- Customize theme colors
- Add or remove features
Writing Content
All documentation is written in Markdown. VitePress supports:
- Standard Markdown
- GitHub Flavored Markdown
- Custom containers (tip, warning, danger, etc.)
- Code highlighting
- Custom components
See the VitePress documentation for more details.