on master help sign in
Fix haddock generation
commitd9004cabd5bda5ae566f503f4cddc187ecc2f514 authorJasper Van der Jeugt <m@jaspervdj.be> dateThu 22 Mar 2018, 18:19 (9 years ago) parent66a8b42
2 files changed+16−11
Makefile+6−6 stack.yaml+10−5
Makefile+6−6
@@ -1,9 +1,9 @@
1+PACKAGE="$(shell stack list-dependencies --separator='-' | grep hakyll)"
2+LOCAL_DOC_ROOT="$(shell stack path --local-doc-root)"
3+
14# Generate the docs and copy them to the website dir
25haddock:
3− cabal haddock --hyperlink-source
4− rm -rf web/reference/
5− cp -r dist/doc/html/hakyll/ web/reference/
6+ stack build --haddock --no-haddock-deps
7+ rsync -r "$(LOCAL_DOC_ROOT)/$(PACKAGE)/" web/reference/
68
7−# Run the tests
8−test:
9− runghc -isrc -itests tests/TestSuite.hs
9+.PHONY: haddock
stack.yaml+10−5
@@ -3,11 +3,11 @@ extra-package-dbs: []
33
44flags:
55 hakyll:
6− previewServer: True
7− watchServer: True
8− checkExternal: True
9− usePandoc: True
10− buildWebsite: True
6+ previewServer: true
7+ watchServer: true
8+ checkExternal: true
9+ usePandoc: true
10+ buildWebsite: true
1111
1212packages:
1313 - '.'
@@ -18,3 +18,8 @@ nix:
1818 enable: false
1919 packages:
2020 - zlib
21+
22+build:
23+ haddock: true
24+ haddock-hyperlink-source: true
25+ haddock-deps: false