mirror of
https://github.com/fjvallarino/monomer.git
synced 2024-09-11 12:05:35 +03:00
* Fix several Haddock links. Fix widgetKeyMap Haddock (missing '-') * Fix Haddock issues. Rename haddock .sh helper to indicate it only generates and does not upload the updated docs
20 lines
409 B
Bash
Executable File
20 lines
409 B
Bash
Executable File
#!/bin/sh
|
|
set -e
|
|
|
|
#dir=$(mktemp -d dist-docs.XXXXXX)
|
|
#trap 'rm -r "$dir"' EXIT
|
|
dir=hackage-docs
|
|
|
|
# echo "$dir"
|
|
|
|
# assumes cabal 2.4 or later
|
|
stack exec --no-ghc-package-path -- cabal v2-haddock --builddir="$dir" --haddock-for-hackage --enable-doc
|
|
|
|
cd $dir
|
|
gunzip monomer*-docs.tar.gz
|
|
cd ..
|
|
|
|
# echo "Uploading $dir"
|
|
|
|
# stack exec --no-ghc-package-path -- cabal v2-upload -d --publish $dir/monomer*-docs.tar.gz
|