Beautiful documentation made simple. Upload your Markdown, MDX, or README files and deploy a stunning static documentation website in seconds.
DocuGen is a developer tool that automatically transforms your documentation into fast, static websites. No configuration, no git dependencies, no hassle—just upload your files and get a production-ready docs site.
- Markdown & MDX Support - Full GitHub-flavored Markdown plus MDX for embedded React components
- AI-Powered Structuring - Automatic navigation and table of contents generation
- Blazing Fast - Static HTML with minimal JavaScript for instant page loads
- Custom Domains - Deploy to your own domain with automatic SSL
- Built-in Search - Client-side search that's fast and offline-capable
- Syntax Highlighting - Beautiful code blocks with Shiki support
- Exportable Output - Download your site as static files—no vendor lock-in
- Node.js 18+
- npm or yarn
git clone https://github.com/shazzar00ni/docugen.git
cd docugen
npm installStart the development server:
npm run devOpen http://localhost:3000 in your browser.
npm run buildThe built files will be in the dist/ directory.
npm run preview- React 19 - UI framework with latest features
- Vite - Build tool and dev server
- TypeScript - Type safety with strict mode
- Tailwind CSS - Utility-first styling
- Framer Motion - Subtle animations
- Heroicons - Clean SVG icons
Comprehensive documentation is available in the docs/ directory:
- Getting Started - Development setup and workflow
- Architecture - System design and technical decisions
- Component Library - UI components, props, and usage examples
- API Reference - Data structures, content API, and type definitions
- Testing Guide - Testing strategy, patterns, and best practices
- Roadmap - Development phases and milestones
docugen/
├── src/
│ ├── components/
│ │ ├── ui/ # Reusable base components
│ │ ├── sections/ # Page sections
│ │ └── Navbar.tsx
│ ├── data/
│ │ └── content.ts # All text copy and site content
│ ├── App.tsx
│ └── main.tsx
├── public/
├── index.html
├── package.json
├── tailwind.config.js
└── vite.config.ts
All site content is centralized in src/data/content.ts. Edit this file to change:
- Headlines and subheadlines
- Feature descriptions
- Pricing information
- Navigation links
- Footer content
The design system is configured in tailwind.config.js:
- Colors: Dark mode first with teal (#14b8a6) accent
- Fonts: Inter for body text, JetBrains Mono for code
- Animations: Subtle fade and slide effects
See DEPLOYMENT.md for detailed deployment instructions including:
- Security headers configuration
- Analytics setup
- Platform-specific deployment guides
- Import your repository at vercel.com
- Vercel automatically detects Vite and configures the build
- Security headers are automatically configured via
vercel.json - Add environment variables for analytics (optional):
VITE_PLAUSIBLE_DOMAIN=yourdomain.com - Custom domains can be added in the Vercel dashboard
- Import your repository at netlify.com
- Use
_headersfile for security headers configuration - Add environment variables in site settings
- Deploy
Since this is a static site, you can deploy anywhere:
- GitHub Pages: Enable in repository settings
- AWS S3 + CloudFront
- Any static hosting service
DocuGen includes pre-configured security headers:
- Content-Security-Policy (CSP)
- X-Content-Type-Options
- X-Frame-Options
- Referrer-Policy
- Permissions-Policy
Headers are configured in:
vercel.jsonfor Vercel deployments_headersfor Netlify deployments
DocuGen supports privacy-respecting analytics via Plausible:
- Sign up at plausible.io
- Add your domain to Plausible
- Set environment variable:
VITE_PLAUSIBLE_DOMAIN=yourdomain.com - Analytics script loads automatically on page load
No analytics code is loaded if the environment variable is not set.
We welcome contributions! Please see our Contributing Guidelines for details.
For development setup and workflow, check the Development Guide.
Quick start:
- Fork the repository
- Read the Development Guide
- Create a feature branch
- Make your changes
- Run tests:
npm run test:run - Submit a pull request
MIT License - feel free to use this template for your own projects.
Built with ❤️ for developers who love great documentation.