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.
git clone https://github.com/yourusername/your-repo-name.git
cd your-repo-name
npm install
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:
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.