dot

packages and services management
Log | Files | Refs | README

commit aa5f0f2869067ab15cf692a2f19c38c1a14d9ff0
parent 6b376d59799a9c8497953f55d473470d9eb4f7e9
Author: Josuah Demangeon <mail@josuah.net>
Date:   Fri, 17 Nov 2017 17:48:39 +0100

leaner man page

Diffstat:
Mman/git-index.1 | 23+++--------------------
1 file changed, 3 insertions(+), 20 deletions(-)

diff --git a/man/git-index.1 b/man/git-index.1 @@ -16,17 +16,13 @@ as well as one page per commit. The build process is incremential so that it can be triggered at every commit without large overhead. .Pp -It only requires -.Xr 1 git -command to produce the output, and the various. +It can be invoked within the +.Pa post-update +hook to update the listing every time commits are pushed to the repo. .Pp The first argument is treated as a path to a repository. .Sh FILES .Bl -tag -width indent -.It Pa ./style.css Ns , Pa ./favicon.png -These ressources will be used in the html -.Li <head> -element. .It Pa ./repository/index.html An .Pa index.html @@ -35,16 +31,3 @@ the files and the commits. .It Pa ./repository/commit/4279dbc3735e1e38bf33120c9234640d99fee650.html One html page per commit is created. .El -.Sh EXAMPLES -A script generating an index of multiple repositories might look like this: -.Bd -literal -offset indent -printf '<!doctype html>\\n<html>\\n<body>\\n<ul>\\n' > ./index.html - -printf '<li><a href="">%s</a></li>\n' git/repo1 repo1 >> index.html -git-index /path/to/repo1 - -printf '<li><a href="">%s</a></li>\n' git/repo2 repo2 >> index.html -git-index /path/to/repo2 - -printf '</ul>\\n</body>\\n</html>\\n' >> index.html -.Ed