This repository contains the official documentation website for TableCrafter.js, built with VitePress.
Production: https://tablecrafter.github.io/docs
Development: http://localhost:5173
- Node.js 16+
- npm or yarn
# Clone the repository
git clone https://github.com/TableCrafter/docs.git
cd docs
# Install dependencies
npm install
# Start development server
npm run docs:devThe documentation site will be available at http://localhost:5173
# Development server
npm run docs:dev
# Build for production
npm run docs:build
# Preview production build
npm run docs:preview
# Deploy to GitHub Pages
npm run deploydocs/
├── .vitepress/
│ └── config.js # VitePress configuration
├── guide/ # User guides
├── api/ # API reference
├── examples/ # Code examples
└── index.md # Homepage
- Clear and Concise - Write for developers who want to get things done quickly
- Code Examples - Include working code snippets for every feature
- Progressive Disclosure - Start simple, then show advanced options
- Mobile-First - Ensure all examples work on mobile devices
- Accessibility - Follow WCAG guidelines for inclusive documentation
- Create a new
.mdfile in the appropriate directory - Add the page to the sidebar in
.vitepress/config.js - Use clear headings and include a table of contents
- Add code examples and live demos where possible
Use syntax highlighting and include language specifiers:
```javascript
const table = new TableCrafter('#table', {
data: [...],
columns: [...]
});
```VitePress supports Vue components in Markdown. See existing examples for patterns.
- Homepage with hero section
- Getting Started guide
- What is TableCrafter overview
- Basic table example
- VitePress configuration
- Complete API reference
- Advanced examples
- Framework integration guides
- Performance optimization guide
- Interactive playground
- Video tutorials
- Community showcase
- Migration guides
The documentation uses a consistent design system:
- Primary Color:
#3b82f6(Blue 500) - Font: System font stack for optimal performance
- Layout: Mobile-first responsive design
- Icons: Lucide icons for consistency
The documentation is automatically deployed to GitHub Pages when changes are pushed to the main branch.
npm run deployThis builds the site and pushes it to the gh-pages branch.
We welcome contributions to improve the documentation!
- Fork the repository
- Create a feature branch
- Make your changes
- Test locally with
npm run docs:dev - Submit a pull request
- Fix typos and errors
- Add missing examples
- Improve code snippets
- Add new guides
- Enhance existing content
The documentation includes privacy-focused analytics to understand usage patterns and improve content.
MIT License - see LICENSE file for details.
TableCrafter.js - Craft beautiful, responsive data tables with ease.