From 5d2e2e21828762c97313758d4e7d344bd044a6e2 Mon Sep 17 00:00:00 2001 From: ISSOtm Date: Sat, 20 Mar 2021 01:53:26 +0100 Subject: [PATCH] Make docs update script also produce PDFs See rgbds-www#12 --- .github/actions/get-pages.sh | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/.github/actions/get-pages.sh b/.github/actions/get-pages.sh index 11f552f6..432dff8f 100755 --- a/.github/actions/get-pages.sh +++ b/.github/actions/get-pages.sh @@ -53,8 +53,8 @@ PAGES=( WWWPATH="/docs" mkdir -p "$1/_documentation/$2" -# `mandoc` uses a different format for referring to man pages present in the **current** directory -# We want that format for RGBDS man pages, and the other one for the t=rest; +# `mandoc` uses a different format for referring to man pages present in the **current** directory. +# We want that format for RGBDS man pages, and the other one for the rest; # we thus need to copy all pages to a temporary directory, and process them there. # Copy all pages to current dir @@ -77,6 +77,7 @@ EOF options+=,toc fi mandoc -Thtml -I os=Linux -O$options "${PAGES[$page]##*/}" | .github/actions/doc_postproc.awk >> "$1/_documentation/$2/$page" + groff -Tpdf -mdoc -wall "${PAGES[$page]##*/}" >"$1/_documentation/$2/$stem.pdf" if [ $is_release -ne 0 ]; then cat - >"$1/_documentation/$page" <"$1/_documentation/$2/index.html" <