mirror of
https://github.com/tensorflow/haskell.git
synced 2024-11-16 07:59:46 +01:00
ea8b62e47b
* Trivial script for regenerating haddocks: exclude .haddock files. * Haddock regen
18 lines
422 B
Bash
Executable file
18 lines
422 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
|
|
git add $DOCS
|