generate html and pdf from README

This commit is contained in:
Simon Michael 2008-11-08 22:41:20 +00:00
parent d005833741
commit df5fa12e41

View File

@ -43,6 +43,14 @@ Clean: clean clean-docs
# docs
docs: html pdf api-doc-frames
html:
rst2html README >doc/index.html
pdf:
rst2pdf README -o doc/README.pdf
MAIN=hledger.hs
api-doc-dir:
@ -97,7 +105,7 @@ hoogleweb: hoogleindex
# munge haddock and hoogle into a rough but useful framed layout
# ensure that the hoogle cgi is built with base target "main"
api-doc-frames docs: api-doc-with-source hoogleweb
api-doc-frames: api-doc-with-source hoogleweb
echo "Converting api docs to frames" ; \
sed -i -e 's%^></HEAD%><base target="main"></HEAD%' api-doc/modules-index.html ; \
cp doc/misc/api-doc-frames.html api-doc/index.html ; \