1
0
Fork 0
mirror of https://github.com/tensorflow/haskell.git synced 2024-11-01 00:29:42 +01:00
tensorflow-haskell/tools/haddock.sh
Greg Steuck 99f8c8cf56
Haddock (#209)
* Symlink the correct directory.

* Update haddock with a symlink
2018-08-17 23:26:23 -07:00

19 lines
468 B
Bash
Executable file

#!/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 -fr $DOCS
mkdir -p $DOCS
cp $DOC_ROOT/{*.html,*js,*.png,*.gif,*.css} $DOCS
cp -a $DOC_ROOT/tensorflow* $DOCS
rm -f $DOCS/*/*.haddock
(cd $DOCS && ln -s tensorflow-?.* tensorflow)
git add $DOCS