A modern documentation template built with Svelte 5, MDSvex, and Tailwind CSS.
Create beautiful, modern documentation sites with minimal setup. This template combines the power of Svelte 5 with the flexibility of Markdown to deliver a superior documentation experience.
- π MDSvex Integration - Write documentation in Markdown with Svelte components
- π¨ Modern Design - Built with Tailwind CSS and shadcn/ui components
- π Dark Mode - Automatic dark mode with system preference detection
- π Search - Built-in search functionality powered by FlexSearch
- π± Responsive - Mobile-first design that works on all devices
- π Auto-Navigation - Automatic documentation structure generation
- π Table of Contents - Dynamic table of contents for each page
- β‘ Fast - Optimized for speed and performance
- π Type Safe - Full TypeScript support
- Click the green "Use this template" button
- Create a new repository
- Clone your repository:
git clone https://github.com/yourusername/your-repo-name.git
- Install dependencies:
cd your-repo-name npm install
- Start the development server:
npm run dev
your-project/
βββ src/
β βββ content/ # Documentation markdown files
β βββ lib/
β β βββ components/ # Core components
β β β βββ document/ # Document-related components
β β β βββ home/ # Home page components
β β β βββ ui/ # UI components
β β βββ hooks/ # Custom hooks
β β βββ types/ # TypeScript type definitions
β β βββ config.ts # Site configuration
β β βββ index.ts # Library exports
β β βββ utils.ts # Utility functions
β βββ routes/ # SvelteKit routes
β βββ app.css # Global styles
β βββ app.d.ts # TypeScript declarations
β βββ app.html # HTML template
βββ static/ # Static assets
Place your markdown files in the src/content
directory. The folder structure will automatically generate the navigation.
---
title: Getting Started
description: Learn how to use this template
---
# Getting Started
Write your documentation here...
Modify the theme in src/app.css
or use pre-built themes from shadcn-svelte.
Customize components in src/lib/components
to match your brand.
Update site settings in src/lib/config
:
export const siteConfig = {
title: 'Your Documentation',
description: 'Your site description',
// ...other settings
};
# Start development server
npm run dev
# Build for production
npm run build
# Preview production build
npm run preview
This template can be deployed to any static hosting platform:
- Vercel
- Netlify
- GitHub Pages
- Cloudflare Pages
Contributions are welcome! Please feel free to submit a Pull Request.
MIT License - use this template for any project.
Need help with your documentation? Contact us.