summary refs log blame commit diff
path: root/Documentation/scripts/build.sh
blob: 85bd5a51221d85defc451be0dea013db99512181 (plain) (tree)
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 . -a ! -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}"