2019-12-20 15:15:41 +03:00
|
|
|
#!/bin/sh
|
|
|
|
|
|
|
|
DOCSDIR=docs/haddock
|
|
|
|
|
|
|
|
echo "Installing required packages"
|
|
|
|
stack install standalone-haddock
|
|
|
|
|
|
|
|
echo "Removing previous docs"
|
|
|
|
rm -rf ${DOCSDIR}
|
|
|
|
|
|
|
|
echo "Building the project"
|
2020-01-07 17:14:21 +03:00
|
|
|
stack clean && stack build
|
2019-12-20 15:15:41 +03:00
|
|
|
|
|
|
|
echo "Generating new docs"
|
|
|
|
stack exec --no-ghc-package-path standalone-haddock -- -o ${DOCSDIR} \
|
|
|
|
--compiler-exe=$(stack path --compiler-exe) \
|
|
|
|
--dist-dir=$(stack path --dist-dir) \
|
|
|
|
--package-db=$(stack path --snapshot-pkg-db) \
|
|
|
|
--package-db=$(stack path --local-pkg-db) \
|
2020-01-07 17:14:21 +03:00
|
|
|
--hyperlink-source \
|
2019-12-20 15:15:41 +03:00
|
|
|
core/schema core/rpc \
|
|
|
|
adapter/avro adapter/protobuf adapter/persistent \
|
2020-01-07 17:14:21 +03:00
|
|
|
grpc/client grpc/server
|