Stop fighting with complex doc generators. Write markdown, deploy in one click, done.
LazyDocs is a lightweight documentation platform that makes it easy to create beautiful documentation websites. Simply clone the repository, write your docs in Markdown, and deploy!
You can see the demo here:
- Markdown-Based: Write documentation using simple Markdown syntax
- Folder Organization: Organize content naturally with folders and subfolders
- Fully Customizable: Easy theming with colors, fonts, logos, and branding
- Auto Navigation: Sidebar automatically generated from your structure
- Responsive Design: Looks great on desktop, tablet, and mobile
- Fast & Lightweight: Built with React and Vite for optimal performance
- Syntax Highlighting: Beautiful code blocks with syntax highlighting
- No Backend Required: Pure static site that can be hosted anywhere
Click the button above to clone and deploy in one step. Your site will be live in 2 minutes!
- Node.js 16 or higher
- npm or yarn
- Clone this repository
git clone https://github.com/DiegoLSdev/LazyDocs.git
cd lazydocs- Install dependencies
npm install- Start development server
npm run devYour documentation site will open at http://localhost:3000!
- Add your logo to the
public/folder - Edit
config.json:
{
"siteName": "Your Project Name",
"logo": "/your-logo.svg"
}Edit the theme section in config.json:
{
"theme": {
"primaryColor": "#3b82f6",
"secondaryColor": "#10b981",
"fontFamily": "'Inter', sans-serif"
}
}Available theme options:
primaryColor- Main accent color (links, active states)secondaryColor- Secondary accent colorbackgroundColor- Main background colortextColor- Primary text colorsidebarBgColor- Sidebar backgroundheaderBgColor- Header backgroundcodeBlockBgColor- Code block backgroundfontFamily- Body fontheadingFontFamily- Heading font
Edit the navbar section in config.json:
{
"navbar": {
"links": [
{ "label": "Docs", "to": "/docs/getting-started/introduction" },
{ "label": "GitHub", "href": "https://github.com/yourrepo" }
]
}
}- Create a Markdown file in the
docs/folder:
---
title: My New Page
description: This is a description of my page
---
# My New Page
Content goes here...- Add to sidebar by editing
docs/sidebar.json:
{
"type": "file",
"title": "My New Page",
"path": "/docs/my-new-page"
}Create nested folders for better organization:
docs/
βββ getting-started/
β βββ introduction.md
β βββ installation.md
βββ guides/
β βββ basics.md
β βββ advanced.md
βββ api/
βββ reference.md
Update docs/sidebar.json to reflect your structure:
[
{
"type": "folder",
"title": "Getting Started",
"path": "/docs/getting-started",
"children": [
{
"type": "file",
"title": "Introduction",
"path": "/docs/getting-started/introduction"
}
]
}
]lazydocs/
βββ docs/ # Your documentation (Markdown files)
β βββ getting-started/
β βββ customization/
β βββ writing/
β βββ sidebar.json # Navigation structure
βββ public/ # Static assets
β βββ logo.svg # Your logo
β βββ images/ # Images for docs
βββ src/ # Application source
β βββ components/ # React components
β β βββ Header.jsx
β β βββ Sidebar.jsx
β β βββ DocContent.jsx
β β βββ Footer.jsx
β βββ utils/ # Utilities
β β βββ config.js
β β βββ markdown.js
β β βββ sidebar.js
β βββ App.jsx
β βββ main.jsx
βββ config.json # Site configuration
βββ package.json
βββ vite.config.js
Build your site for production:
npm run buildThe built files will be in the dist/ directory.
Preview the production build:
npm run previewLa forma mΓ‘s rΓ‘pida de tener tu documentaciΓ³n en lΓnea:
Click en el botΓ³n de arriba y tu sitio estarΓ‘ listo en 2 minutos!
- β
Deploy automΓ‘tico con cada
git push - β HTTPS gratis incluido
- β CDN global para mΓ‘xima velocidad
- β Preview deployments para cada Pull Request
π GuΓa completa de deployment a Vercel
LazyDocs genera un sitio estΓ‘tico que puede ser deployado en cualquier servicio:
npm run build
# Deploy the dist/ folder to GitHub Pages- Connect your repository
- Set build command:
npm run build - Set publish directory:
dist
Upload the contents of the dist/ folder to your hosting provider.
For complete documentation on customization and usage, visit the built-in docs at:
The repository includes complete documentation as examples:
- Getting Started - Introduction, installation, quick start
- Customization - Configuration, themes, branding
- Writing - Markdown guide, frontmatter, organizing content
Simply replace the content in docs/ with your own!
- React 18 - UI framework
- Vite - Build tool and dev server
- React Router - Client-side routing
- React Markdown - Markdown rendering
- Gray Matter - Frontmatter parsing
- Highlight.js - Syntax highlighting
Contributions are welcome! Feel free to:
- Report bugs
- Suggest features
- Submit pull requests
- Improve documentation
LazyDocs is 100% free and open source. If you find it useful and want to support its development, consider buying me a coffee!
Your support helps me:
- π Add new features
- π Fix bugs faster
- π Improve documentation
- β‘ Keep the project maintained
Every coffee counts! Even a small donation makes a big difference and motivates me to keep improving LazyDocs for everyone.
- β Star the repository on GitHub
- π¦ Share LazyDocs on social media
- π Write a blog post about your experience
- π€ Contribute code or documentation
- π¬ Help others in issues and discussions
MIT License - feel free to use this for your own projects!
- Read the complete documentation
- Check out the examples
- Open an issue for bugs or questions
Built with LazyDocs - Simple documentation made easy