-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathgendocs.sh
More file actions
11 lines (9 loc) · 777 Bytes
/
gendocs.sh
File metadata and controls
11 lines (9 loc) · 777 Bytes
1
2
3
4
5
6
7
8
9
10
11
# This shell scripts generates the documentation website for this library.
# It runs haddock (the haskell documentation generation tool) on all relevant files.
# find all files for which we want go generate documentation (demo in app and library in src)
# xargs appends that for us to the stack command
find app src -name "*.hs" | xargs stack exec -- haddock --package-name=ftr --html --quickjump --hoogle --hyperlinked-source --odir=docs
# Generate latex documentation (buggy though :( )
# find app src -name "*.hs" | xargs stack exec -- haddock --package-name=ftr --latex --quickjump --hoogle --hyperlinked-source --odir=docs/latex
# convert html documentation to pdf (generates only the frontpage though)
# pandoc docs/html/index.html -o docs/pdf/FeatureTraceRecording.pdf