gitVal

January 15, 2026 ยท View on GitHub

A static site generator for Git repositories, written in V.

gitVal is a V language implementation of gitmal. It generates browsable HTML websites from Git repositories with syntax highlighting, markdown rendering, commit history, and branch/tag navigation.

Installation

Prerequisites

  • V compiler
  • chroma for syntax highlighting:
    go install github.com/alecthomas/chroma/v2/cmd/chroma@latest
    

Build

v -prod . -o gitval

Usage

gitval [options] <repository-path>

Options

OptionDescriptionDefault
-O, --outputOutput directoryoutput
-t, --themeSyntax highlighting themegithub
-n, --nameProject nameRepository directory name
-o, --ownerProject owner name-
-d, --default-branchDefault branchAutodetects master or main
-b, --branchesPattern for branches to includeAll branches
-m, --minifyMinify HTML outputfalse
-g, --gzipGzip compress outputfalse
-p, --preview-themesPreview available themes-

Examples

# Generate site for current repository
gitval .

# Generate with custom project name and owner
gitval -o myusername -n myproject /path/to/repo

# Generate with dark theme
gitval -t github-dark /path/to/repo

# Generate with custom output directory
gitval -O ./public /path/to/repo

# Preview available themes
gitval -p

Features

  • Syntax highlighting for 200+ languages (via chroma)
  • 60+ color themes
  • Markdown rendering with resolved links
  • Commit history with file diffs
  • Branch and tag navigation
  • File tree with collapsible directories
  • Responsive design
  • Light and dark theme support

License

MIT License - see LICENSE file.