Skip to content

Commit

Permalink
Added a script to publish the doc.
Browse files Browse the repository at this point in the history
I do not know if hackage produce the right documentation  so provide a
script which simplify the publish process.
  • Loading branch information
picca committed Aug 2, 2024
1 parent 99f9311 commit 15d3bcb
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions publish-doc.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
#!/bin/sh
set -e

dir=$(mktemp -d dist-docs.XXXXXX)
trap 'rm -r "$dir"' EXIT

# assumes cabal 2.4 or later
cabal v2-haddock --builddir="$dir" --haddock-for-hackage --enable-doc

# candidate
cabal upload -d $dir/*-docs.tar.gz

0 comments on commit 15d3bcb

Please sign in to comment.