From 317a4150282dd0f3623be16f9e1700788fb9eab7 Mon Sep 17 00:00:00 2001 From: Pierre Pronchery Date: Tue, 12 Feb 2019 01:44:28 +0100 Subject: [PATCH] Add support for generating ReST files --- doc/scripts/markdown.sh | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/doc/scripts/markdown.sh b/doc/scripts/markdown.sh index 2ed9f32..28ebd9c 100755 --- a/doc/scripts/markdown.sh +++ b/doc/scripts/markdown.sh @@ -63,6 +63,10 @@ _markdown() $DEBUG $RST2HTML "${target%.*}.rst" > "$target" res=$? ;; + rst) + $DEBUG $MD2RST "$source" || return 2 + res=$? + ;; 1|2|3|4|5|6|7|8|9) $DEBUG $MD2RST "$source" || return 2 $DEBUG $RST2MAN "${target%.*}.rst" > "$target" @@ -173,6 +177,8 @@ while [ $# -gt 0 ]; do tmpfile="${source%.*}.rst" $DEBUG $RM -- "$tmpfile" ;; + rst) + ;; *) _error "$target: Unknown type" return 2