Top

git2html

static git log generator based on simply bash, sed, and cmark

Clone   Log   Files   Readme

Archives:

zip   older archives

Branches:

  git-annex
* master
  synced/git-annex
  synced/master

Releases:

1.2


Clone:

git clone https://gitlab.com/joedoe47/git2html
git clone git://git.joepcs.com/projects/git2html

Log:

DateAuthor (GPG Key)CommitComment
2018-10-18joedoe47 (D7D9DC93B1538725)ef4e64fmade operational with mincss
2018-08-18joedoe47 (D7D9DC93B1538725)15fd26dattempt to fix commit mismatch error
2018-08-18joedoe47 (D7D9DC93B1538725)dee3eceattempt to fix commit mismatch error
2018-08-18joedoe47 (D7D9DC93B1538725)f16c60bmade new tag and imported changed from git-index-mcm
2018-08-16joedoe47 (D7D9DC93B1538725)fe1e511fixing paths
2018-08-16joedoe47 (D7D9DC93B1538725)3ef942afixing paths
2018-08-15joedoe47 (D7D9DC93B1538725)1d7eef5update template
2018-08-15joedoe47 (D7D9DC93B1538725)044eb4cupdate README.md
2018-08-15joedoe47 (D7D9DC93B1538725)87780fc'removed all instances of $COMMIT until fix'
2018-08-15joedoe47 (D7D9DC93B1538725)e648676used

Readme

Static git log generator

I made this because:

You want to use this because:

Disclaimer

This is still a work in progress and I do plan to change how this operates.

Please do not use in your production envioqrnment unless you have time and or are willing to modify the script to your needs.

There are certain things I am working on. 1qq

However if you have a certain feature in mind, let me know via email, social media, and or github or gitlab.

Requirements

Debian

~$ sudo apt install cmark sed bash cron

Fedora

~$ sudo dnf install cmark sed bash cron

Useage

~$ bash git2md.sh /path/to/repositories /path/to/output 

and thats it.

Just tell Apache or Nginx to serve "/path/to/output" and set a cron job or git hook to continually update git repos.

Eg. with nginx you can just use this simple oneliner directive

location ^~ / { alias /path/to/output; try_files $uri $uri/ =404; index index.html; autoindex on;}

This is awesome because with 1 line we can tell nginx to serve out "N" number of git projects. Also the reason for the autoindex parameter is to allow the client and or manager see the list of snapshots under "https://example.com/projectX/archive/".

Updated Fri 19 Oct 2018 03:24:06 AM UTC. Back to top

© 2017-2018 MCM Git · Privacy