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 ¶
-
Install Klarity:
go install https://github.com/kociumba/klarity
-
Initialize a new project:
klarity init my-docs
-
Start the dev server:
klarity dev my-docs
Open http://localhost:5173 in your browser.
-
Build for production:
- make sure
base_url
is set correctly inklarity.toml
- run the build command:
klarity build my-docs
- make sure
📁 Project Structure ¶
A default Klarity project contains:
klarity.toml
- project configurationdocs/main.md
- your documentation entry point
✨ Features ¶
For a list of features with examples look in Features.md
- Wikilinks: Use
[[other_file.md]]
to link between docs. - Autolinks: URLs and emails are auto-linked.
- Syntax Highlighting: Code blocks are highlighted.
- GFM: Tables, task lists, and more.
- LaTeX: Inline and block math with MathJax.
- Raw HTML: Embed HTML directly.
- Callouts: Use GitHub-style alerts.
📝 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.