From 893b366435739d073d2b6b9cafae868b5d361354 Mon Sep 17 00:00:00 2001 From: Jasper Van der Jeugt Date: Sat, 11 Jun 2011 21:01:20 +0200 Subject: [PATCH] Add makefile, hyperlink source in reference --- Makefile | 9 +++++++++ examples/hakyll/hakyll.hs | 2 +- 2 files changed, 10 insertions(+), 1 deletion(-) create mode 100644 Makefile diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..4d9ddd5 --- /dev/null +++ b/Makefile @@ -0,0 +1,9 @@ +# Generate the docs and copy them to the website dir +haddock: + cabal haddock --hyperlink-source + rm -rf examples/hakyll/reference/ + cp -r dist/doc/html/hakyll/ examples/hakyll/reference/ + +# Run the tests +test: + runghc -isrc -itests tests/TestSuite.hs diff --git a/examples/hakyll/hakyll.hs b/examples/hakyll/hakyll.hs index 5ee755f..df92ddd 100644 --- a/examples/hakyll/hakyll.hs +++ b/examples/hakyll/hakyll.hs @@ -11,7 +11,7 @@ main = hakyll $ do compile compressCssCompiler -- Static directories - forM_ ["images/*", "examples/*", "reference/*"] $ \f -> match f $ do + forM_ ["images/*", "examples/*", "reference/**"] $ \f -> match f $ do route idRoute compile copyFileCompiler