summary refs log tree commit diff
path: root/Documentation/scripts/build.sh
blob: e6a2cd878b90b5778988eeeedb378ecbe8629528 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#!/bin/sh -e
# SPDX-FileCopyrightText: 2022 Unikie
# SPDX-License-Identifier: EUPL-1.2+

cd "$(dirname "$0")/.."

if [ ! -w . ] && [ ! -w .jekyll-cache ]; then
	JEKYLLFLAGS=--disable-disk-cache
fi

find . '(' '!' -path ./_site -o -prune ')' \
	-a -name '*.drawio' \
	-exec drawio -xf svg '{}' ';'
jekyll build $JEKYLLFLAGS -b /doc -d "${1:-_site}"