2016-05-01 15:54:14 +00:00
|
|
|
.Dd May 1, 2016
|
2015-12-26 20:05:55 +00:00
|
|
|
.Dt STAGIT 1
|
2015-12-05 20:01:38 +00:00
|
|
|
.Os
|
|
|
|
.Sh NAME
|
2015-12-26 20:05:55 +00:00
|
|
|
.Nm stagit
|
2015-12-05 20:01:38 +00:00
|
|
|
.Nd static git page generator
|
|
|
|
.Sh SYNOPSIS
|
|
|
|
.Nm
|
2016-05-01 15:54:14 +00:00
|
|
|
.Op Fl c Ar cachefile
|
|
|
|
.Ar repodir
|
2015-12-05 20:01:38 +00:00
|
|
|
.Sh DESCRIPTION
|
|
|
|
.Nm
|
2015-12-20 20:34:40 +00:00
|
|
|
writes HTML pages for the repository
|
|
|
|
.Ar repodir
|
2016-05-01 15:54:14 +00:00
|
|
|
to the current directory.
|
|
|
|
.Pp
|
|
|
|
Optionally the
|
|
|
|
.Fl c Ar cachefile
|
|
|
|
option can be used to cache the entries of the log page up to the point of
|
|
|
|
the last commit. The
|
|
|
|
.Ar cachefile
|
|
|
|
will store the last commit id and the entries in the HTML table. It is up
|
|
|
|
to the user to make sure the state of the
|
|
|
|
.Ar cachefile
|
2016-05-07 12:33:36 +00:00
|
|
|
is in sync with the history of the repository.
|
2016-05-01 15:54:14 +00:00
|
|
|
.Pp
|
|
|
|
The following files will be written:
|
2015-12-20 20:34:40 +00:00
|
|
|
.Bl -tag -width Ds
|
|
|
|
.It atom.xml
|
|
|
|
Atom XML feed
|
|
|
|
.It files.html
|
|
|
|
List of files in the latest HEAD commit, linking to the file.
|
2016-01-05 20:04:07 +00:00
|
|
|
.It log.html
|
2015-12-20 20:34:40 +00:00
|
|
|
List of commits in order of most recent to old of the commits (top to bottom),
|
|
|
|
each commit links to a page with a diff and diffstat of the commit.
|
2016-01-03 21:42:00 +00:00
|
|
|
.It refs.html
|
|
|
|
Lists references of the repository such as branches and tags.
|
2015-12-20 20:34:40 +00:00
|
|
|
.El
|
|
|
|
.Pp
|
2016-05-07 12:33:36 +00:00
|
|
|
For each entry in HEAD a file will be written in the format:
|
2015-12-20 20:34:40 +00:00
|
|
|
file/filepath.html. This file will contain the textual data of the file
|
2016-05-07 12:33:36 +00:00
|
|
|
prefixed by line numbers. The file will have the string "Binary file"
|
2015-12-20 20:34:40 +00:00
|
|
|
if the data is considered to be non-textual.
|
|
|
|
.Pp
|
|
|
|
For each commit a file will be written in the format:
|
2016-05-07 12:33:36 +00:00
|
|
|
commit/commitid.html. This file will contain the diff and diffstat of the
|
|
|
|
commit. It will write the string "Binary files differ" if the data is
|
|
|
|
considered to be non-textual. Too large diffs will be suppressed and a string
|
|
|
|
"Diff is too large, output suppressed" will be written.
|
|
|
|
.Pp
|
|
|
|
When a commit HTML file exists it won't be overwritten again, note that if
|
|
|
|
you've changed
|
|
|
|
.Nm
|
|
|
|
or changed one of the metadata files of the repository it is recommended to
|
|
|
|
recreate all the output files because it will contain old data. To do this
|
|
|
|
remove the output directory and
|
|
|
|
.Ar cachefile ,
|
|
|
|
then recreate the files.
|
2015-12-20 20:34:40 +00:00
|
|
|
.Pp
|
2016-01-06 19:04:34 +00:00
|
|
|
The basename of the directory is used as the name. The suffix ".git" is
|
|
|
|
removed from the basename, this is commonly used for "bare" repos.
|
2015-12-26 20:05:55 +00:00
|
|
|
.Pp
|
2016-05-07 12:33:36 +00:00
|
|
|
The content of the follow files specifies the metadata for each repository:
|
2015-12-26 20:05:55 +00:00
|
|
|
.Bl -tag -width Ds
|
2016-01-06 19:04:34 +00:00
|
|
|
.It .git/description or description (bare repo).
|
2015-12-26 20:05:55 +00:00
|
|
|
description
|
|
|
|
.It .git/owner or owner (bare repo).
|
|
|
|
owner of repository
|
|
|
|
.It .git/url or url (bare repo).
|
|
|
|
primary clone url of the repository, for example: git://git.2f30.org/stagit
|
|
|
|
.El
|
|
|
|
.Pp
|
2016-10-14 10:12:35 +00:00
|
|
|
When a README or LICENSE file exists in HEAD or a .gitmodules submodules file
|
|
|
|
exists in HEAD a direct link in the menu is made.
|
2016-10-13 16:10:52 +00:00
|
|
|
.Pp
|
2015-12-20 20:34:40 +00:00
|
|
|
For changing the style of the page you can use the following files:
|
|
|
|
.Bl -tag -width Ds
|
|
|
|
.It logo.png
|
|
|
|
32x32 logo.
|
|
|
|
.It favicon.png
|
|
|
|
favicon image.
|
|
|
|
.It style.css
|
|
|
|
CSS stylesheet.
|
|
|
|
.El
|
|
|
|
.Sh SEE ALSO
|
2015-12-26 20:05:55 +00:00
|
|
|
.Xr stagit-index 1
|
2015-12-05 20:01:38 +00:00
|
|
|
.Sh AUTHORS
|
|
|
|
.An Hiltjo Posthuma Aq Mt hiltjo@codemadness.org
|