From c8bc1513f9e459dc0c6761fc42f1ea77fce2654d Mon Sep 17 00:00:00 2001 From: Sebastiano Tronto Date: Thu, 15 Jan 2026 22:01:47 +0100 Subject: av2 singlepage + stuff - Added single-page version of the Alta Via 2 pages, optimized for printing in A4 format. - Added .noheadermd extension to build.sh (treated like .md, but without header and footer). - Added versioning for css file. - Resized some Alta Via 2 pictures for fitting in pdf page. --- build.sh | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'build.sh') diff --git a/build.sh b/build.sh index b0ebde7..59c0232 100755 --- a/build.sh +++ b/build.sh @@ -15,7 +15,7 @@ recursivebuild() { done } -# This function is currently unused, but we keep it in case we need to +# This function is currently useless, but we keep it in case we need to # preprocess some m4 files. mdpreprocess() { file="$1" @@ -46,6 +46,13 @@ copyfile() { >> "$ind" cat bottom.html >> "$ind" ;; + noheadermd) + t="$(markdowntitle "$file")" + sed "s/TITLE/$t/" < top-nobar.html > "$ind" + mdpreprocess "$file" | \ + lowdown --html-no-skiphtml --html-no-escapehtml \ + >> "$ind" + ;; html) t="$(htmltitle "$file")" cat top.html "$file" bottom.html | sed "s/TITLE/$t/" > "$ind" -- cgit v1.3