A lightweight static documentation generator written in Go.
Docit transforms your Markdown files into clean, responsive static HTML documentation with minimal JavaScript. It's designed for developers who want simple, fast documentation without the bloat.
- Markdown Support - Full markdown parsing with code highlighting
- Clean Design - Minimal, native CSS
- Responsive - Works on desktop and mobile
- Fast - Generates static HTML, no runtime required
- Minimal JS - Only ~50 lines of optional enhancement JS
- Navigation - Auto-generated sidebar and table of contents
- Customizable - Configurable theme colors and layout
- Supports night mode - Supports night mode detection and switching. Protects your eyes.
build from source:
git clone https://github.com/Evorit/Docit.git
cd Docit
go build -o docit ./cmd/docitdocit initThis creates:
docs/index.md- Your first documentation pagedocit.yaml- Configuration file
docitOutput will be in the dist/ directory.
Create or edit docit.yaml:
title: "My Docs"
description: "Documentation for my project"
sourceDir: "docs"
outputDir: "dist"
theme:
primaryColor: "#3b82f6"
nav:
- text: "Home"
link: "index.html"
- text: "Guide"
link: "guide.html"
sidebar:
- title: "Getting Started"
items:
- "index.md"
- "guide.md"| Option | Description | Default |
|---|---|---|
title |
Site title | "Documentation" |
description |
Site description | "" |
sourceDir |
Source markdown directory | "docs" |
outputDir |
Output HTML directory | "dist" |
theme.primaryColor |
Primary accent color | "#3b82f6" |
Use YAML front matter to set page metadata:
---
title: My Page
description: Page description for SEO
---
# My Page ContentDocit supports standard Markdown:
- Headings, paragraphs, lists
- Bold and italic text
- Links
- Images
- Code blocks with syntax highlighting
- Tables
- Blockquotes
Docit follows the principle of minimal JavaScript:
- All core functionality works without JS
- JS is only used for progressive enhancement (smooth scroll, copy button)
- No client-side frameworks required
- Pure static HTML output
BSD-3-Clause license
see LICENSE file for details.
Contributions are welcome! Please open an issue or submit a PR.