docs: css, analytics tag, footer, update copyright notice

This commit is contained in:
Simon Michael 2009-06-02 06:58:43 +00:00
parent ab1fc8c8b2
commit 1dea32d7b9
5 changed files with 35 additions and 8 deletions

View File

@ -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.

2
README
View File

@ -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 <simon@joyful.com>
Copyright (c) 2007-2009 Simon Michael <simon@joyful.com> and contributors.
Released under GPL version 3 or later.
Installation

4
doc/footer.html Normal file
View File

@ -0,0 +1,4 @@
<div id="footer">
<hr>
&copy; 2007-2009 <a href="http://joyful.com/">Simon Michael</a> and contributors
</div>

10
doc/header.html Normal file
View File

@ -0,0 +1,10 @@
<link rel="stylesheet" type="text/css" href="hledger.css" media="all" />
<script type="text/javascript">
var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
</script>
<script type="text/javascript">
try {
var pageTracker = _gat._getTracker("UA-3456280-3");
pageTracker._trackPageview();
} catch(err) {}</script>

11
doc/hledger.css Normal file
View File

@ -0,0 +1,11 @@
body {
margin: auto;
max-width: 50em;
}
#footer {
padding-top: 1em;
font-size: 70%;
color: gray;
text-align: center;
}