aboutsummaryrefslogtreecommitdiff
path: root/build.sh
diff options
context:
space:
mode:
authorSebastiano Tronto <sebastiano@tronto.net>2026-01-15 22:01:47 +0100
committerSebastiano Tronto <sebastiano@tronto.net>2026-01-15 22:03:42 +0100
commitc8bc1513f9e459dc0c6761fc42f1ea77fce2654d (patch)
treef332eb440846f1997d91df897248160ca3463fea /build.sh
parentf32ec21c3a2aaef8435abab314176b03c07755b9 (diff)
downloadsebastiano.tronto.net-c8bc1513f9e459dc0c6761fc42f1ea77fce2654d.tar.gz
sebastiano.tronto.net-c8bc1513f9e459dc0c6761fc42f1ea77fce2654d.zip
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.
Diffstat (limited to 'build.sh')
-rwxr-xr-xbuild.sh9
1 files changed, 8 insertions, 1 deletions
diff --git a/build.sh b/build.sh
index b0ebde7..59c0232 100755
--- a/build.sh
+++ b/build.sh
@@ -15,7 +15,7 @@ recursivebuild() {
15 done 15 done
16} 16}
17 17
18# This function is currently unused, but we keep it in case we need to 18# This function is currently useless, but we keep it in case we need to
19# preprocess some m4 files. 19# preprocess some m4 files.
20mdpreprocess() { 20mdpreprocess() {
21 file="$1" 21 file="$1"
@@ -46,6 +46,13 @@ copyfile() {
46 >> "$ind" 46 >> "$ind"
47 cat bottom.html >> "$ind" 47 cat bottom.html >> "$ind"
48 ;; 48 ;;
49 noheadermd)
50 t="$(markdowntitle "$file")"
51 sed "s/TITLE/$t/" < top-nobar.html > "$ind"
52 mdpreprocess "$file" | \
53 lowdown --html-no-skiphtml --html-no-escapehtml \
54 >> "$ind"
55 ;;
49 html) 56 html)
50 t="$(htmltitle "$file")" 57 t="$(htmltitle "$file")"
51 cat top.html "$file" bottom.html | sed "s/TITLE/$t/" > "$ind" 58 cat top.html "$file" bottom.html | sed "s/TITLE/$t/" > "$ind"

Generated with cgit - Back to sebastiano.tronto.net