2019-12-20 15:15:41 +03:00
|
|
|
#!/bin/sh
|
|
|
|
|
2020-01-27 19:32:07 +03:00
|
|
|
DOCSDIR=docs/haddock
|
2019-12-20 15:15:41 +03:00
|
|
|
|
|
|
|
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 \
|
2020-02-06 16:42:27 +03:00
|
|
|
core/schema core/rpc core/optics \
|
|
|
|
adapter/avro adapter/protobuf adapter/persistent adapter/kafka \
|
2020-03-05 17:37:05 +03:00
|
|
|
grpc/common grpc/client grpc/server graphql
|
2020-01-09 11:44:35 +03:00
|
|
|
|
|
|
|
echo "Setting Linuwial theme on Haddock generated docs"
|
2020-01-27 17:10:01 +03:00
|
|
|
find ${DOCSDIR} -name "ocean.css" -exec cp -rf docs/css/linuwial.css {} \;
|