Skip to content

mudrockdev/mudrock-static

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

13 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

Mudrock Static

A modern, fast, and beautiful static documentation site generator built with SvelteKit 2 and TailwindCSS 4. Create elegant documentation from your markdown files with zero configuration.

Dark Theme Svelte 5 TailwindCSS 4 TypeScript

✨ Features

  • πŸŒ™ Beautiful Dark Theme - Modern, professional dark UI
  • πŸ“± Responsive Design - Works perfectly on all devices
  • πŸ—‚οΈ File Tree Navigation - Interactive sidebar with folder/file structure
  • πŸ“ Markdown Support - Full markdown rendering with mdsvex
  • πŸ”— Anchor Links - Automatic heading IDs and smooth scrolling
  • ⚑ Static Generation - Fast, SEO-friendly static site
  • 🎯 Zero Config - Just add markdown files and go
  • β™Ώ Accessible - Keyboard navigation and screen reader friendly
  • πŸš€ Modern Stack - Built with latest Svelte 5 and TailwindCSS 4

πŸš€ Quick Start

Prerequisites

  • Bun 1.2+
  • Git

Installation

  1. Clone the repository

    git clone <repository-url>
    cd mudrock-static
  2. Install dependencies

    bun install
  3. Start development server

    # With npm
    npm run dev
    
    # With bun
    bun dev
  4. Open in browser

    http://localhost:5173
    

πŸ“š Adding Your Documentation

File Structure

Place your markdown files in the src/docs/ directory:

src/
└── docs/
    β”œβ”€β”€ getting-started.md
    β”œβ”€β”€ api/
    β”‚   β”œβ”€β”€ authentication.md
    β”‚   └── endpoints.md
    └── guides/
        β”œβ”€β”€ installation.md
        └── configuration.md

Markdown Files

Your markdown files will automatically appear in the sidebar navigation. The file structure becomes the navigation structure.

Example markdown file:

# Getting Started

Welcome to the documentation!

## Quick Start

Here's how to get started...

### Installation

1. Install the package
2. Configure your settings
3. Start using it!

## Next Steps

- [API Reference](./api/authentication)
- [Configuration Guide](./guides/configuration)

Markdown Features

The project supports standard markdown syntax including:

  • Headers (H1-H6) with automatic anchor IDs
  • Lists (ordered and unordered)
  • Code blocks (fenced and indented)
  • Links and emphasis (bold/italic)
  • Blockquotes and horizontal rules
  • Tables and inline code

🎨 Customization

Styling

The site uses TailwindCSS 4 with a custom dark theme. Key colors:

  • Background: slate-900
  • Sidebar: slate-800
  • Text: slate-100 / slate-300
  • Accent: blue-400 / blue-600

Navigation

The sidebar automatically generates from your file structure:

  • Folders β†’ Collapsible sections with folder icons
  • Files β†’ Clickable items with document icons
  • Nesting β†’ Unlimited depth support

Components

DocsTree

Main navigation component that renders the file tree.

DocsTreeNode

Individual tree node (file or folder) with hover effects and icons.

πŸ“– Navigation Features

File Tree

  • Smart Icons - Folders and files have distinct icons
  • Hover Effects - Smooth animations and visual feedback
  • Collapsible - Folders can be expanded/collapsed
  • Clean Names - .md extensions are automatically hidden

Anchor Links

  • Auto-generated IDs - Headings get automatic anchor IDs
  • Smooth Scrolling - Animated scroll to sections
  • Table of Contents - Works with markdown TOC links

πŸš€ Deployment

Build for Production

bun run build

This generates a static site in the build/ directory.

Deploy to Static Hosts

The site works with any static hosting service:

  • Vercel
  • Netlify
  • GitHub Pages
  • Cloudflare Pages

🎯 Roadmap

  • Light theme toggle
  • Search functionality
  • Table of contents component
  • Custom syntax highlighting themes
  • Plugin system for custom components
  • Multi-language support

About

A modern, fast, and beautiful static documentation site generator built with SvelteKit 2 and TailwindCSS 4.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors