Add makefile, hyperlink source in reference

This commit is contained in:
Jasper Van der Jeugt 2011-06-11 21:01:20 +02:00
parent eeb549c7f1
commit 893b366435
2 changed files with 10 additions and 1 deletions

9
Makefile Normal file
View file

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

View file

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