This directory contains the complete documentation for Ringai, built with VitePress.
- Node.js 22+
- pnpm 10+
-
Install dependencies:
cd docs pnpm install -
Start development server:
pnpm run dev
The site will be available at http://localhost:5173 (VitePress default port)
-
Build for production:
pnpm run build
-
Preview production build:
pnpm run preview
docs/
├── .vitepress/ # VitePress configuration
│ ├── config.js # Main configuration
│ └── theme/ # Custom theme
├── public/ # Static assets
├── getting-started/ # Getting started guides
├── api/ # API reference
├── guides/ # User guides
├── core-modules/ # Core module documentation
├── packages/ # Package documentation
├── playwright-driver/ # Playwright driver docs
├── configuration/ # Configuration reference
├── troubleshooting/ # Troubleshooting guides
├── static-fixtures/ # Test fixture documentation
└── index.md # Homepage
The documentation is automatically deployed to GitHub Pages when changes are pushed to the master branch. The deployment is handled by the GitHub Actions workflow at .github/workflows/docs.yml.
To deploy manually:
-
Build the documentation:
pnpm run build
-
The built files will be in
.vitepress/dist/
- Create a new
.mdfile in the appropriate directory - Add the page to the sidebar configuration in
.vitepress/config.js - Use proper frontmatter if needed:
--- title: Page Title description: Page description ---
VitePress supports enhanced Markdown features:
- Code blocks with syntax highlighting
- Custom containers (tip, warning, danger)
- Math expressions with LaTeX
- Mermaid diagrams
- Vue components in Markdown
Custom styles are defined in .vitepress/theme/custom.css. The theme uses CSS custom properties for consistent styling.
- Fast: Built on Vite for lightning-fast development
- SEO-friendly: Automatic meta tags and sitemap generation
- Search: Built-in client-side search
- Responsive: Mobile-friendly design
- Accessible: WCAG compliant
- Dark mode: Automatic dark/light theme switching
When contributing to the documentation:
- Follow the existing structure and naming conventions
- Test locally before submitting
- Ensure all links work correctly
- Update the sidebar configuration if adding new sections
- Use clear, concise language
- Include code examples where helpful
Build errors: Check that all internal links are correct and all referenced files exist.
Styling issues: Ensure custom CSS follows VitePress conventions and doesn't conflict with the default theme.
Navigation problems: Verify the sidebar configuration in .vitepress/config.js matches your file structure.