1
mirror of git://git.acid.vegas/random.git synced 2024-12-04 21:46:40 +00:00
random/stagit
2023-06-13 00:48:52 -04:00
..
README.md posix stagit will be moved into this repository 2023-06-13 00:48:52 -04:00
stagit posix stagit will be moved into this repository 2023-06-13 00:48:52 -04:00

stagit

static git page generator

Information

This is basically a pure shell script clone of stagit.

It is meant to be hosted on Github using Github Pages with a Custom Domain.

It also has support for hosting on Gitlab using Gitlab Pages with a Custom Domain

Settings

Setting Default Description
CLONE_URL remote base url for cloning repositories (remote = remote.origin.url)
CNAME empty create a CNAME file with a custom domain (empty = do not create)
MAX_COMMITS 100 maximum number of commits to show (0 = all)
MAX_COMMIT_MSG 100 maximum characters in a commit message to display (0 = all)
MAX_COMMIT_LINES 999 maximum number of lines to show in a commit (0 = all)
REPO_DIR $HOME/git directory containing repositories
TITLE "Repositories" title used on homepage
WWW_DIR $HOME/www directory to output to

If the CLONE_URL was set to https://github.com/acidvegas/ for example, then it will display as git clone https://github.com/acidvegas/REPO_NAME.git on all repository indexes, otherwise if you leave it as remote it will just parse the remote url (git config --get remote.origin.url) for that repository. For those using the remote option, remote urls from Github/Gitlab that use SSH will be converted to an HTTPS url. This applies to Github/Gitlab remote urls only, so if you cloned your repositories with SSH, then people may not be able to clone your repositories!

The CNAME option is optional if you are planning on using a custom domain with Github pages. See here for more information.

Lastly, stagit will ignore the $REPO_DIR/mirrors directory by default. To make stagit include this directory, remove -path $REPO_DIR/mirrors -prune from the find command in the source.