Skip to content

Commit

Permalink
Add docs.sh script
Browse files Browse the repository at this point in the history
  • Loading branch information
roberth committed Feb 8, 2023
1 parent c85013c commit c93938e
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions docs.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
#!/usr/bin/env sh

# Renders the docs, prints the location of the docs, opens the docs if possible
#
# Does not run the link checker. That's done in runtest.sh.

nix --option sandbox false \
build --override-input haskell-flake path:${FLAKE} \
-L --show-trace \
github:hercules-ci/flake.parts-website \
"$@"

echo "Docs rendered to $PWD/result/options/haskell-flake.html"

# Works on linux
if type xdg-open &>/dev/null; then
xdg-open result/options/haskell-flake.html
fi

0 comments on commit c93938e

Please sign in to comment.