We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 137a1c7 commit c285f0bCopy full SHA for c285f0b
build-site
@@ -3,6 +3,8 @@
3
# This script depends on pandoc
4
#
5
6
+: ${LABWC_DOC_DIR:=../labwc/build/docs}
7
+
8
die () {
9
printf 'fatal: %b\n' "$@" >&2
10
exit 1
@@ -20,12 +22,12 @@ build_src_pages () {
20
22
}
21
23
24
build_man_pages () {
- if ! [[ -d ../labwc/build/docs ]]; then
25
+ if ! [[ -d "$LABWC_DOC_DIR" ]]; then
26
printf 'warn: %b\n' "Need labwc next to labwc.github.io with man pages built" >&2
27
return
28
fi
29
template="$(sed -e 's/sans-serif/monospace/' src/template.html)"
- for scd in ../labwc/build/docs/*; do
30
+ for scd in "$LABWC_DOC_DIR"/*; do
31
filename=${scd##*/}
32
html=$(basename ${scd}).html
33
[[ $html -ot $scd ]] || continue
0 commit comments