1
0
mirror of https://blitiri.com.ar/repos/chasquid synced 2025-12-17 14:37:02 +00:00

docs/man: Auto-generate markdown manpages

This patch adds auto-generation of markdown manpages, for ease of
reference in other documents and links.
This commit is contained in:
Alberto Bertogli
2023-10-04 00:20:36 +01:00
parent 8ded1f6f5e
commit a80051657a
13 changed files with 407 additions and 19 deletions

View File

@@ -24,4 +24,7 @@ for IN in *.pod; do
pod2man --section="$SECTION" --name="$NAME" \
--release "" --center "" \
"$IN" "$OUT"
pod2markdown "$IN" \
| sed 's@\([a-z.-]\+\)(\([1-9]\))@[\1(\2)](\1.\2.md)@g' \
> "$OUT.md"
done