Mercurial > dottes
comparison makeWeb.sh @ 582:0206ab9fd6ba build-default-239
Switch from txt2tags to using pandoc with Markdown (Pandoc flavour) input.
author | Jim Hague <jim.hague@acm.org> |
---|---|
date | Sat, 29 Oct 2016 21:51:59 +0100 |
parents | 760d0ae5acea |
children | daa3b76bd11f |
comparison
equal
deleted
inserted
replaced
581:760d0ae5acea | 582:0206ab9fd6ba |
---|---|
84 -e "s/@TITLE@/$title/" -e "s/@BOOK@/$booke/" dottes.html > $webdir/$output | 84 -e "s/@TITLE@/$title/" -e "s/@BOOK@/$booke/" dottes.html > $webdir/$output |
85 | 85 |
86 for item in intro | 86 for item in intro |
87 do | 87 do |
88 rm -f $webdir/$item.html | 88 rm -f $webdir/$item.html |
89 if [ -r $booke/$item.txt ]; then | 89 if [ -r $booke/$item.md ]; then |
90 txt2tags --no-headers --target=html --outfile=$webdir/$item.html $booke/$item.txt | 90 pandoc --from=markdown --to=html --output=$webdir/$item.html $booke/$item.md |
91 else | 91 else |
92 touch $webdir/$item.html | 92 touch $webdir/$item.html |
93 fi | 93 fi |
94 done | 94 done |
95 | 95 |