1
0
Fork 0
mirror of https://github.com/tensorflow/haskell.git synced 2024-11-23 03:19:44 +01:00

Trivial script for regenerating haddocks (#2)

This commit is contained in:
Greg Steuck 2016-10-25 10:11:24 -07:00 committed by GitHub
parent 11fe77df7a
commit db69e1d311

17
tools/haddock.sh Executable file
View file

@ -0,0 +1,17 @@
#!/bin/bash
# Creates shallow haddocks for GitHub pages.
set -eu -o pipefail
IMAGE_NAME=tensorflow/haskell:v0
STACK="stack --docker --docker-image=$IMAGE_NAME"
$STACK haddock --no-haddock-deps tensorflow*
DOC_ROOT=$($STACK path --local-doc-root)
DOCS=docs/haddock
git rm -r $DOCS
mkdir -p $DOCS
cp $DOC_ROOT/{*.html,*js,*.png,*.gif,*.css} $DOCS
cp -a $DOC_ROOT/tensorflow* $DOCS
git add $DOCS