1SERVANT_DIR=/tmp/servant-gh-pages
3# Make a temporary clone
7git clone . $SERVANT_DIR
11# Make sure to pull the latest
13git remote add haskell-servant git@github.com:haskell-servant/servant.git
15git fetch haskell-servant
17git reset --hard haskell-servant/gh-pages
19# Clear everything away
21git rm -rf $SERVANT_DIR/*
23# Switch back and build the haddocks
27cabal configure --builddir=$SERVANT_DIR
29cabal haddock --hoogle --hyperlink-source --html-location='https://hackage.haskell.org/package/$pkg-$version/docs' --builddir=$SERVANT_DIR
31commit_hash=$(git rev-parse HEAD)
33# Move the HTML docs to the root
39mv doc/html/servant/* .
46git commit -m "Built from $commit_hash"
48# Push to update the pages
50git push haskell-servant HEAD:gh-pages
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