diff --git a/Makefile b/Makefile index 1198961ef..420dbf017 100644 --- a/Makefile +++ b/Makefile @@ -123,17 +123,19 @@ sample.ledger: DOCS=HOME README NEWS CONTRIBUTORS SCREENSHOTS # rebuild all docs -docs: html pdf api-docs +docs: buildwebsite pdf api-docs -buildwebsite: - mkdir -p website +buildwebsite: website + -cp doc/*.css website -cp doc/*.png website - for d in $(DOCS); do pandoc -r rst $$d >website/$$d.html; done + for d in $(DOCS); do pandoc -s -H doc/header.html -A doc/footer.html -r rst $$d >website/$$d.html; done (cd website; rm -f index.html; ln -s HOME.html index.html) -# rebuild pdf docs -pdf: - for d in $(DOCS); do rst2pdf $$d -o doc/$$d.pdf; done +pdf: website + for d in $(DOCS); do rst2pdf $$d -o website/$$d.pdf; done + +website: + mkdir -p website # rebuild api docs # We munge haddock and hoogle into a rough but useful framed layout. diff --git a/README b/README index 0307d4d2a..34a359046 100644 --- a/README +++ b/README @@ -9,7 +9,7 @@ reports from a plain text ledger file, allows precise batch-mode or interactive querying, and demonstrates a pure functional implementation of ledger. For more information, see http://hledger.org . -Copyright (c) 2007-2009 Simon Michael +Copyright (c) 2007-2009 Simon Michael and contributors. Released under GPL version 3 or later. Installation diff --git a/doc/footer.html b/doc/footer.html new file mode 100644 index 000000000..c52bcbd05 --- /dev/null +++ b/doc/footer.html @@ -0,0 +1,4 @@ + diff --git a/doc/header.html b/doc/header.html new file mode 100644 index 000000000..babcaceef --- /dev/null +++ b/doc/header.html @@ -0,0 +1,10 @@ + + + diff --git a/doc/hledger.css b/doc/hledger.css new file mode 100644 index 000000000..422033d63 --- /dev/null +++ b/doc/hledger.css @@ -0,0 +1,11 @@ +body { + margin: auto; + max-width: 50em; +} + +#footer { + padding-top: 1em; + font-size: 70%; + color: gray; + text-align: center; +}