Filename Size
.gitignore78B
LICENSE1.05KiB
Makefile1.08KiB
README.md1.22KiB
include
public
source-highlight
src
templates

gitgen - static webpage generator for git

You can find an instance of this here.

Installation

# For optional syntax highlighting
GG_COLOR=TRUE
sudo make install-color

# For optional markdown rendering
GG_MARKDOWN=TRUE

make && sudo make install

Usage

Generate files for a repository

# This will put everything into public/
./gitgen repo <repo path> [--max-commits <max>] [--max-filesize <max>] [--max-diff-lines <max>]

Generate an index file

./gitgen index <repo path>...

Syntax Highlighting and Markdown Rendering

Syntax highlighting requires GNU source-highlight and markdown rendering requires md4c. Note that syntax highlighting currently slows generation by around ~2x.

Dependencies

Other Projects

  • stagit is another static page generator for git.
  • cgit is a CGI web interface for git.