8STACKVER=$(cat $PACKAGE.cabal|grep '^version:'|head -1|awk '{print $2}')
9STACKDOCDIR=$PACKAGE-$STACKVER-docs
12stack haddock --fast $PACKAGE
14rm -rf $OUTPUT/$STACKDOCDIR
17cp -r $(stack path --local-doc-root)/$PACKAGE-$STACKVER $OUTPUT/$STACKDOCDIR
19sed -i 's/href="\.\.\/\([^/]*\)\//href="..\/..\/\1\/docs\//g' $OUTPUT/$STACKDOCDIR/*.html
21(cd $OUTPUT && tar cvz --format=ustar -f $STACKDOCDIR.tar.gz $STACKDOCDIR)
24 -H 'Content-Type: application/x-tar' \
25 -H 'Content-Encoding: gzip' \
26 -u BrendanHay:$PASSWORD \
28 --data-binary @"$OUTPUT/$STACKDOCDIR.tar.gz" \
29 https://hackage.haskell.org/package/$PACKAGE-$STACKVER/docs
keysesc to close
- j k
- move down, up
- enter
- open
- esc
- back, or up a level
- 1 2 3 4
- readme, files, commits, refs
- /
- filter
- y
- copy the clone command
- c
- compare the chosen commit with another (or shift-click both)
- ?
- show or hide this list