kwelea

command module
v0.1.5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 1, 2026 License: MIT Imports: 4 Imported by: 0

README

Kwelea

Kwelea
Named after the Quelea — a genus of small weaver birds. Kwelea weaves Markdown, templates, and assets into documentation sites.

GitHub go.mod Go version CI/CD GitHub License GitHub commits since latest release

Kwelea is a static site generator for project documentation. Write Markdown in docs/, run one command, get a beautiful static site.

Distributed as a single binary -- install it once globally, use it across all your projects. No Node.js, no Python, no CDN calls, no runtime dependencies in the projects you document.

# With Go:
go install github.com/engineervix/kwelea@latest

# Without Go — download the binary for your platform:
# https://github.com/engineervix/kwelea/releases/latest

kwelea --version

Contents generated with DocToc

Quickstart

# In your project root:
kwelea init    # create docs/ and kwelea.toml
kwelea serve   # dev server at http://localhost:4000
kwelea build   # build the static site to site/

Full documentation →

Features

  • Markdown — syntax highlighting (Chroma), admonitions (::: warning), D2 diagrams
  • Search — full-text via FlexSearch, built into the binary, no external service
  • Live reload — WebSocket-based dev server, zero config
  • Self-contained — all CSS, JS, and fonts embedded in the binary; no CDN calls in the output site
  • Navigation — auto-ordered from filesystem (01-intro.md → "Intro") or manual [[nav]] in config
  • Themes — light/dark mode, configurable Chroma code themes

Configuration

kwelea.toml at your project root (created by kwelea init):

[site]
title    = "fooproject"
version  = "v1.0.0"
base_url = "https://yourorg.github.io/fooproject"
repo     = "https://github.com/yourorg/fooproject"

[build]
docs_dir   = "docs"
output_dir = "site"

See the configuration reference for all options.

Publishing to GitHub Pages

Create .github/workflows/docs.yml:

name: Deploy Docs
on:
  push:
    branches: [main]
permissions:
  contents: read
  pages: write
  id-token: write
jobs:
  build:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v4
      - uses: actions/setup-go@v5
        with:
          go-version-file: go.mod
      - run: go install github.com/engineervix/kwelea@latest
      - run: kwelea build
      - uses: actions/upload-pages-artifact@v3
        with:
          path: site/
  deploy:
    environment:
      name: github-pages
      url: ${{ steps.deployment.outputs.page_url }}
    needs: build
    runs-on: ubuntu-latest
    steps:
      - uses: actions/deploy-pages@v4

Credits

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
Package cmd implements the kwelea CLI subcommands using Cobra.
Package cmd implements the kwelea CLI subcommands using Cobra.
internal
builder
Package builder implements the HTML renderer, search index writer, and asset copier for kwelea.
Package builder implements the HTML renderer, search index writer, and asset copier for kwelea.
config
Package config loads and validates kwelea.toml configuration files.
Package config loads and validates kwelea.toml configuration files.
nav
Package nav implements the filesystem walker, nav tree builder, and core data types used throughout kwelea.
Package nav implements the filesystem walker, nav tree builder, and core data types used throughout kwelea.
parser
Package parser implements the Markdown processing pipeline for kwelea.
Package parser implements the Markdown processing pipeline for kwelea.
server
Package server implements the live-reloading development server for kwelea.
Package server implements the live-reloading development server for kwelea.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL