Add makefile, hyperlink source in reference
This commit is contained in:
parent
eeb549c7f1
commit
893b366435
2 changed files with 10 additions and 1 deletions
9
Makefile
Normal file
9
Makefile
Normal 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
|
|
@ -11,7 +11,7 @@ main = hakyll $ do
|
||||||
compile compressCssCompiler
|
compile compressCssCompiler
|
||||||
|
|
||||||
-- Static directories
|
-- Static directories
|
||||||
forM_ ["images/*", "examples/*", "reference/*"] $ \f -> match f $ do
|
forM_ ["images/*", "examples/*", "reference/**"] $ \f -> match f $ do
|
||||||
route idRoute
|
route idRoute
|
||||||
compile copyFileCompiler
|
compile copyFileCompiler
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue