# gitmal A static site generator for Git repositories. Generates browsable HTML pages similar to GitHub's repository interface, with code browsing, commit history, branches, and tags. ## Usage ```bash gitmal [options] [path] ``` ### Options - `--output` - Output directory (default: `output`) ### Example ```bash gitmal --output=./site /path/to/repo ``` ## Output Generates a static site with: - **Code browser** - Syntax-highlighted source files with line numbers - **Markdown rendering** - README files rendered with GitHub-flavored markdown - **Commit history** - Paginated commit logs with diff views - **Branches & Tags** - Navigation between refs - **Atom feeds** - For commits, tags, and releases ## URL Structure Generated paths follow GitHub repository conventions: | Path | Description | |------|-------------| | `/index.html` | Repository root (file listing) | | `/blob///index.html` | Directory listing | | `/blob//.html` | File view (syntax highlighted) | | `/commit/.html` | Commit diff view | | `/commits//index.html` | Commit history (page 1) | | `/commits//page-N.html` | Commit history (page N) | | `/branches.html` | Branches list | | `/tags.html` | Tags list | | `/compare/.../` | Diff between refs | ### Feeds & API | Path | Description | |------|-------------| | `/commits/.atom` | Commits Atom feed | | `/commits/.json` | Commits JSON | | `/tags.atom` | Tags Atom feed | | `/releases.atom` | Releases Atom feed | | `/branches.json` | Branches JSON | ## License MIT