No frills static page generator for Git repositories
git clone https://git.8pit.net/depp.git
1.Dd $Mdocdate: November 28 2024 $ 2.Dt DEPP 1 3.Os 4.Sh NAME 5.Nm depp 6.Nd generate HTML files for a git repository 7.Sh SYNOPSIS 8.Nm depp 9.Op Fl c Ar commits10.Op Fl d Ar destination11.Op Fl f12.Op Fl u Ar URL13.Op Fl v14.Ar repository15.Sh DESCRIPTION16For the given17.Xr git 118.Ar repository19.Nm20generates static HTML files which provide a simple repository overview.21This includes recent commits, a file tree, and (rendered) README files.22In regards to the file tree,23.Nm24only operates on the current repository head.25.Pp26This software is most commonly invoked from a27.Pa post-receive28hook registered on the Git server.29Thereby causing generated HTML to be updated automatically.30Refer to31.Xr githooks 532for more information on these hooks.33.Pp34The options are as follows:35.Bl -tag -width Ds36.It Fl c Ar commits37Amount of38.Ar commits39to include on the index page.40For each commit the commit message, the author name, and the commit date are displayed.41By default the last 5 commits are displayed.42.It Fl d Ar destination43The generated HTML file are written to the given44.Ar destination45directory.46This directory is created if it does not exist yet.47By default a48.Pa www49subdirectory is created and used in the current directory.50.It Fl f51By default52.Nm53only generates HTML for files that changed since the last invocation.54If this option is passed, all files are regenerated unconditionally.55.It Fl u Ar URL56The57.Ar URL58used to clone the repository.59If provided, this information is displayed in the header of each generated HTML page.60.It Fl v61Print the name of each file that changed since the last invocation.62.El63.Sh FILES64The following special files in bare Git repositories are recognized:65.Bl -tag -width Ds66.It Pa git-description67Contains a short description of the repository which is displayed in the header of each HTML file (if present).68.It Pa git-render-readme69Executable file which receives70.Pa README71files on standard input and should write HTML for these files to standard output.72.El73.Sh EXIT STATUS74.Ex -std depp75.Sh SEE ALSO76.Xr git 1 ,77.Xr gitweb 1 ,78.Xr githooks 579.Sh AUTHORS80.An Sören Tempel Aq Mt soeren@soeren-tempel.net81.Sh CAVEATS82Existing HTML files are not tracked by this utility.83If a file is removed from the repository, it is not automatically removed from the .Ar destination directory.