pandoc/tools/build-and-upload-api-docs.sh
John MacFarlane d2a9562554 Omit --enable-doc in the cabal haddock invocation.
tools/build-and-upload-api-docs.sh.  I'm not sure what
this was supposed to do but it seems undocumented.
2022-01-17 21:03:25 -08:00

8 lines
180 B
Bash

#!/bin/sh
set -e
dir=$(mktemp -d dist-docs.XXXXXX)
trap 'rm -r "$dir"' EXIT
cabal v2-haddock --builddir="$dir" --haddock-for-hackage
cabal upload -d --publish $dir/*-docs.tar.gz