diff options
Diffstat (limited to 'build.sh')
| -rwxr-xr-x | build.sh | 9 |
1 files changed, 8 insertions, 1 deletions
| @@ -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. |
| 20 | mdpreprocess() { | 20 | mdpreprocess() { |
| 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" |
