ref: 279d605b0769c48612e55c5a174f8d68b628fbc7 gmnigit/README.md -rw-r--r-- 1.2 KiB
279d605b — Omar Polo handle annotated tags too a month ago


Static git gemini viewer written in golang. Inspired by stagit.

This repository is available at sourcehut and gemini.


Unfortunately because of replace directive in go.mod you cannot simply get binary by running go get but you can install it by running

git clone https://git.sr.ht/~kornellapacz/gmnigit
cd gmnigit
go build -o gmnigit

place gmnigit binary somewhere in your $PATH.


Usage of gmnigit:
  -dist string
        destination path (if exists will be overwritten)
  -name string
    	project name, mandatory if generating the tags page
        show files permissions in browsable tree (default false)
    	generate the tags page
  -repo string
        path to repository
  -url string
       clone URL for end user (optional)


gmnigit -repo path/do/repo -dist dist/path


You can automate building pages on push with git post-receive hook


while read -r _ _ ref; do
	[ "$ref" != "refs/heads/master" ] && continue

	gmnigit --repo . --dist /dest/dir