| 1 |
#!/bin/sh |
| 2 |
mkdir -p build/site |
| 3 |
echo copying CSS and images |
| 4 |
cp site/style.css build/site/ |
| 5 |
cp site/img build/site/ -r |
| 6 |
echo generate main page |
| 7 |
pandoc --output build/site/index.html \ |
| 8 |
--include-before-body site/inc_title.html \ |
| 9 |
--css style.css \ |
| 10 |
--standalone \ |
| 11 |
--table-of-contents \ |
| 12 |
--metadata pagetitle="Bookletimposer" \ |
| 13 |
site/index.mdwn |
| 14 |
echo generate changelog page |
| 15 |
pandoc --output build/site/changelog.html \ |
| 16 |
--include-before-body site/inc_title.html \ |
| 17 |
--css style.css \ |
| 18 |
--standalone \ |
| 19 |
--metadata pagetitle="Bookletimposer changelog" \ |
| 20 |
CHANGELOG |
| 21 |
echo generate todo page |
| 22 |
pandoc --output build/site/todo.html \ |
| 23 |
--css style.css \ |
| 24 |
--include-before-body site/inc_title.html \ |
| 25 |
--standalone \ |
| 26 |
--metadata pagetitle="Bookletimposer todo list" \ |
| 27 |
TODO |
| 28 |
echo generate man page |
| 29 |
pandoc --output=build/site/bookletimposer.1.html \ |
| 30 |
--css style.css \ |
| 31 |
--include-before-body site/inc_title.html \ |
| 32 |
--standalone \ |
| 33 |
doc/bookletimposer.1.mdwn |
| 34 |
echo generate online help |
| 35 |
xsltproc -o build/site/help.html \ |
| 36 |
--stringparam html.stylesheet style.css \ |
| 37 |
/usr/share/xml/docbook/stylesheet/nwalsh/xhtml/docbook.xsl \ |
| 38 |
help/C/index.docbook |
| 39 |
echo generate API documentation |
| 40 |
epydoc --docformat=restructuredtext \ |
| 41 |
--output=build/site/api/ \ |
| 42 |
--inheritance=included \ |
| 43 |
--no-private \ |
| 44 |
--no-frames \ |
| 45 |
--verbose \ |
| 46 |
lib/pdfimposer.py |