From d95ba9c514071af4b920384d937c904ea4ec6c5d Mon Sep 17 00:00:00 2001 From: Simon Michael Date: Sun, 2 Jun 2013 08:57:44 -0700 Subject: [PATCH] docs: add 0.20 to past manuals --- DOCS.md | 7 ++++--- Makefile | 5 ++++- site/site.hs | 2 +- 3 files changed, 9 insertions(+), 5 deletions(-) mode change 100644 => 100755 site/site.hs diff --git a/DOCS.md b/DOCS.md index 871735c1f..24c270cf9 100644 --- a/DOCS.md +++ b/DOCS.md @@ -7,9 +7,10 @@ title: hledger docs **Official hledger docs:** [Installation Guide](INSTALL.html) and [Release Notes](NEWS.html)\ -**[User Manual](MANUAL.html)** (past versions: -[0.19.x manual](0.19/MANUAL.html), -[0.18.x manual](0.18/MANUAL.html))\ +**[User Manual](MANUAL.html)** (and past versions: +[0.20](0.20/MANUAL.html), +[0.19](0.19/MANUAL.html), +[0.18](0.18/MANUAL.html))\ [Developer Guide](DEVELOP.html)\ [FAQ](FAQ.html)\ diff --git a/Makefile b/Makefile index ac931ae00..b1b1e77b9 100644 --- a/Makefile +++ b/Makefile @@ -571,7 +571,10 @@ viewsite: site # ensure some old doc versions are in place: -oldsource: site/0.19 site/0.18 +oldsource: site/0.20 site/0.19 site/0.18 + +site/0.20: + git archive --prefix site/0.20/ tags/0.20 '*.md' | tar xf - site/0.19: git archive --prefix site/0.19/ tags/0_19_3 '*.md' | tar xf - diff --git a/site/site.hs b/site/site.hs old mode 100644 new mode 100755 index 29caf93c7..ac7228e2e --- a/site/site.hs +++ b/site/site.hs @@ -23,7 +23,7 @@ main = do route idRoute compile compressCssCompiler match "templates/*" $ compile templateCompiler - match ("*.md" .||. "0.19/*.md" .||. "0.18/*.md") $ do + match ("*.md" .||. "0.20/*.md" .||. "0.19/*.md" .||. "0.18/*.md") $ do route $ setExtension "html" compile $ pandocCompilerWith