docs: Add rad.1 manual page

This is a general guide to getting started on radicle, available as a
man page.

We also make sure that the page is built on release.
This commit is contained in:
Alexis Sellier
2023-07-20 10:54:05 +02:00
parent 18dacbb48c
commit af28a0ca07
3 changed files with 220 additions and 0 deletions
+16
View File
@@ -0,0 +1,16 @@
#!/bin/sh
set -e
if [ $# -lt 2 ]; then
echo "usage: $0 <output-dir> <input-file>..."
exit 1
fi
outdir="$1"
shift
for input in "$@"; do
echo "Building $input.."
asciidoctor --doctype manpage --backend manpage --destination-dir "$outdir" "$input"
done
+2
View File
@@ -28,6 +28,8 @@ main () {
cargo build --target="$target" --bin git-remote-rad --release
cp target/"$target"/release/git-remote-rad "$staging"/
./build-man-pages.sh "$staging" "$(find . -name '*.1.adoc')"
tar czf "$staging.tar.gz" "$staging"
cp "$staging.tar.gz" "$staging"/
}