site: new hakyll-based download page

This commit is contained in:
Simon Michael 2010-07-24 22:08:54 +00:00
parent 13e5758667
commit 227b2f7c25
6 changed files with 68 additions and 114 deletions

62
DOWNLOAD.markdown Normal file
View File

@ -0,0 +1,62 @@
---
title: hledger downloads
---
# hledger downloads
<style>
#platformdocs td {
width:33%;
vertical-align:top;
font-size:small;
}
#platformdocs code {
white-space:nowrap;
}
</style>
Here are hledger binaries which might just work on your computer.
Please try the instructions for your platform, and if you have trouble,
<a href="http://hledger.org/README2.html#support">report it to Support</a>.
Or, try <a href="http://hledger.org/MANUAL.html#installing">installing with cabal</a>.
<table id="platformdocs">
<tr>
<th><img src="../linux.png" /><br />GNU/Linux (intel)</th>
<th><a href="download/hledger-0.11.1-mac-i386.gz"><img src="../mac.png" border=0 /></a><br />Mac (intel)</th>
<th><a href="download/hledger-0.11.1-win-i386.gz"><img src="../windows.png" border=0 /></a><br />Windows</th>
</tr>
<tr>
<td>
Download the
[32-bit](download/hledger-0.11.1-linux-i386.gz) or
[64-bit](download/hledger-0.11.1-linux-x86_64.gz) version.
Open a terminal window and go to your browser's download directory, then:
`gunzip hledger-*86*`
`mv hledger-*86* hledger`
`chmod +x hledger`
`./hledger`
</td>
<td>
Download
[hledger-0.11.1-mac-i386.gz](download/hledger-0.11.1-mac-i386.gz)
Open a terminal window and go to your browser's download directory, then:
`gunzip hledger-*86*`
`mv hledger-*86* hledger`
`chmod +x hledger`
`./hledger`
</td>
<td>
Download
[hledger-0.11.1-windows-i386.exe.zip](download/hledger-0.11.1-windows-i386.exe.zip)
Unzip it to (eg) your desktop.
Double-click on the unzipped file to run the web interface (the default behaviour on windows).
A security dialog may pop up, where you can choose whether other machines
may access your hledger web interface.
</td>
</tr>
</table>

View File

@ -66,6 +66,7 @@ VERSIONSENSITIVEFILES=\
Hledger/Cli/Version.hs \
hledger-lib/hledger-lib.cabal \
MANUAL.markdown \
DOWNLOAD.markdown \
default: tag hledger
@ -537,6 +538,9 @@ hledger-lib/hledger-lib.cabal: $(VERSIONFILE)
MANUAL.markdown: $(VERSIONFILE)
perl -p -e "s/(^This is the official.*?version) +[0-9.]+/\1 $(VERSION3)./" -i $@
DOWNLOAD.markdown: $(VERSIONFILE)
perl -p -e "s/hledger-[0-9.]+-/hledger-$(VERSION3)-/g" -i $@
tagrelease:
darcs tag $(VERSION3)

View File

@ -1,20 +0,0 @@
<div id="footer">
<hr />
&copy; 2007-2010 <a href="http://joyful.com/">Simon Michael</a> and contributors
</div>
<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>

View File

@ -1,93 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>hledger.org - downloads</title>
<link rel="stylesheet" type="text/css" href="/style.css" />
<script type="text/javascript" src="/highslide/highslide.js"></script>
<link rel="stylesheet" type="text/css" href="/highslide/highslide.css" />
<script type="text/javascript">
hs.graphicsDir = '/highslide/graphics/';
hs.outlineType = 'rounded-black';
hs.captionEval = 'this.thumb.title';
</script>
</head>
<body>
<div style="text-align:center;">
<!-- <a href="./"><img src="./logo.jpg" border="0" ALT="" /></a> -->
</div>
<div id="navigation">
<a href="/README.html">Home</a>
<a href="/download/">Download</a>
<a href="/DEVELOPMENT.html">Development</a>
<a href="/NEWS.html">News</a>
<a href="/MANUAL.html">Manual</a>
<a href="/SCREENSHOTS.html">Screenshots</a>
<a href="http://demo.hledger.org">Demo</a>
</div>
<style>
td { padding:0 0.5em 0 0.5em; }
#platformdocs code { white-space:nowrap; }
#platformdocs td {
width:33%;
vertical-align:top;
font-size:small;
}
</style>
<h1 class="title">hledger downloads</h1>
<p>
Here are hledger binaries which "might just work" on your computer.
Choose GNU/Linux, Mac or Windows and follow the instructions. If you
have any trouble, please <a
href="http://hledger.org/README2.html#support">report it to Support</a>.
To build your own custom version of hledger, see
<a href="http://hledger.org/MANUAL.html#installing">installing with cabal</a> instead.
<p>
<table id="platformdocs">
<tr>
<th><img src="../linux.png" /><br />GNU/Linux (intel)</th>
<th><img src="../mac.png" /><br />Mac</th>
<th><img src="../windows.png" /><br />Windows</th>
</tr>
<tr>
<td>
Download the appropriate (32-bit or 64-bit) linux binary, usually by right-click -> save as.
Go to your browser's download directory in a terminal window.
If the file did not get decompressed, do that now: <code>gunzip hledger-*</code>.
Rename the binary to <code>hledger</code>.
Make it executable: <code>chmod +x hledger</code>.
Try running it: <code>./hledger --help</code>.
</td>
<td>
Download the mac (OSX intel) binary, eg by right-click -> save as.
Open a terminal window and go to your browser's download folder.
If the file did not get decompressed, do that now: <code>gunzip hledger-*</code>.
Rename the binary to <code>hledger</code>.
Make it executable: <code>chmod +x hledger</code>.
Try running it: <code>./hledger --help</code>.
</td>
<td>
Click the windows binary to download and unzip it to (eg) your desktop.
Double-click on the unzipped file to run the web interface (the default behaviour on windows).
A security dialog may pop up, where you can choose whether other machines
may access your hledger web interface.
</td>
</tr>
</table>
<br>

View File

@ -19,6 +19,7 @@ baseurl = "http://hledger.org"
main = hakyllWithConfiguration cfg $ do
mapM_ renderParentDirPage
["README.rst"
,"DOWNLOAD.markdown"
,"DEVELOPMENT.rst"
,"NEWS.rst"
,"SCREENSHOTS.markdown"

View File

@ -20,7 +20,7 @@
</div>
<div id="navigation">
<a href="$root/README.html">Home</a>
<a href="$root/download/">Download</a>
<a href="$root/DOWNLOAD.html">Download</a>
<a href="$root/DEVELOPMENT.html">Development</a>
<a href="$root/NEWS.html">News</a>
<a href="$root/MANUAL.html">Manual</a>