Klarity Documentation

Welcome to the documentation for Klarity - a simple, light-config markdown docs generator.

These docs are written using Klarity itself, to see the source for them look in the github repo.

🚀 Quick Start

  1. Install Klarity:
     go install github.com/kociumba/klarity@latest
    
NOTE

If you want to use full page search you will also need the pagefind binary or node.js installed, if pagefind or node is not found full page search is simply disabled on the generated site.

  1. Initialize a new project:

    klarity init my-docs
    
  2. Start the dev server:

    klarity dev my-docs
    

    Open http://localhost:5173 in your browser.

  3. Build for production:

    • make sure base_url is set correctly in klarity.toml
    • run the build command:
    klarity build my-docs
    

📁 Project Structure

A default Klarity project contains:

✨ Features

For a list of features with examples look in Features.md

📝 Example

# My Project

Welcome to my docs! See [[getting_started.md]] for more info.

- [ ] Task list
- [x] Completed task

Inline math: $E=mc^2$

Continue exploring the sidebar for more details on configuration and advanced usage.