We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d289c6f commit 66decabCopy full SHA for 66decab
docs.sh
rundoc.sh
@@ -0,0 +1,27 @@
1
+#!/usr/bin/env sh
2
+
3
+if [ -z "$1" ]; then
4
+ nix run github:srid/emanote -- -L ./doc
5
+else
6
+ # Renders the docs, prints the location of the docs, opens the docs if possible
7
+ #
8
+ # Does not run the link checker. That's done in runtest.sh.
9
+ nix --option sandbox false \
10
+ build ${OVERRIDE_HASKELL_FLAKE} \
11
+ -L --show-trace \
12
+ github:hercules-ci/flake.parts-website \
13
+ "$@"
14
15
+ DOCSHTML="$PWD/result/options/haskell-flake.html"
16
17
+ echo "Docs rendered to $DOCSHTML"
18
19
+ if [ "$(uname)" == "Darwin" ]; then
20
+ open $DOCSHTML
21
+ else
22
+ if type xdg-open &>/dev/null; then
23
+ xdg-open $DOCSHTML
24
+ fi
25
26
27
+fi
0 commit comments