From 9d1b51c3e3fdb1edcaffec4207664a063d51d8ec Mon Sep 17 00:00:00 2001 From: holly sparkles Date: Thu, 11 Jan 2024 21:24:18 +0100 Subject: [PATCH] Add man page template for pandoc Signed-off-by: Jordan Doyle --- doc/man/rgit.1.md | 105 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 105 insertions(+) diff --git a/doc/man/rgit.1.md b/doc/man/rgit.1.md new file mode 100644 index 0000000..29eca92 100644 --- /dev/null +++ a/doc/man/rgit.1.md @@ -1,0 +1,105 @@ +% RGIT(1) version 0.1.2 | User Commands +% +% 11 January 2024 + +NAME +==== + +rgit - a gitweb interface written in rust + +SYNOPSIS +======== + +| **rgit** \[*OPTIONS*] **\--db-store** *path* *bind_address* *scan_path* + +DESCRIPTION +=========== + +A gitweb/cgit-like interface for the modern age. Written in Rust using Axum, git2, Askama, and Sled. + +_bind_address_ + +: Specifies the network address and port to serve the application on. +(Required) + + Example: + + : _0.0.0.0:3333_ (localhost, port 3333 on IPv4) + + _[::]:3333_ (localhost, port 3333 on IPv6) + +_scan_path_ + +: Specifies the root directory where git repositories reside. Scans recursively. +(Required) + + For information about bare git repositories, see the manual for **git-init**(1). + + Example: + + : _/srv/git_ + + _$HOME/git_ + + +OPTIONS +======= + +**-d** _path_, **\--db-store** _path_ + +: Path to a directory in which the Sled database should be stored, will be created if it doesn't already exist. + + The Sled database is very quick to generate, so this can be pointed to temporary storage. (Required) + + Example: + + : **\--db-store** _/tmp/rgit-cache.db_ + +**\--refresh-interval** _interval_ + +: Configures the metadata refresh interval. This parameter accepts human-readable time formats. + + Default: _5m_ + + Example: + + : **\--refresh-interval** _60s_ (refresh every 60 seconds) + + **\--refresh-interval** _never_ (refresh only on server start) + + Documentation: + + : https://docs.rs/humantime/latest/humantime/ + +EXAMPLES +======== + +``` +$ rgit -d /tmp/rgit-cache.db [::]:3333 /srv/git +$ rgit --db-store /tmp/rgit-cache.db 0.0.0.0:3333 /srv/git +$ rgit -d /tmp/rgit-cache.db [::]:3333 /srv/git --refresh-interval 12h + +``` + +BUGS +==== + +https://github.com/w4/rgit/issues + +AUTHORS +======= + +Jordan Doyle \ + +REPOSITORY +========== + +https://git.inept.dev/~doyle/rgit.git + +https://github.com/w4/rgit + +SEE ALSO +======== + +**git**(1), +**git-init**(1) -- rgit 0.1.3