diff options
-rw-r--r-- | Makefile | 9 | ||||
-rw-r--r-- | examples/hakyll/hakyll.hs | 2 |
2 files changed, 10 insertions, 1 deletions
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 |