1{ stdenv, lib, writeScript, coreutils, glibc, git, openssh, gnused, mkdocs
7 repo = "git@github.com:input-output-hk/haskell.nix.git";
8 sshKey = "/run/keys/buildkite-haskell-dot-nix-ssh-private";
10 # update-docs depends on glibc which doesn't build on darwin
11 meta.addMetaAttrs { platforms = platforms.linux; } (writeScript "update-docs.sh" ''
16 export PATH="${makeBinPath [ coreutils glibc git openssh gnused mkdocs ]}"
20 rev=$(git rev-parse --short HEAD)
21 cd $(git rev-parse --show-toplevel)
23 echo "Preprocessing..."
24 cat ${generatedOptions} > docs/reference/modules.md
30 sed -i -e '/Build Date/d' site/index.html
31 sed -i -e '/lastmod/d' site/sitemap.xml
32 rm -f site/sitemap.xml.gz
33 rm docs/reference/modules.md
35 echo "Updating git index..."
38 git reset --hard origin/gh-pages
39 GIT_WORK_TREE=$(pwd)/site git add -A
41 echo "Committing changes..."
42 git commit --no-gpg-sign --message "Update gh-pages for $rev"
46 if [ "''${BUILDKITE_BRANCH:-}" = master ]; then
47 git push ${repo} 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