weblate/ci/run-docs
2024-06-19 11:27:59 +02:00

17 lines
355 B
Bash
Executable file

#!/bin/bash
# Copyright © Michal Čihař <michal@weblate.org>
#
# SPDX-License-Identifier: GPL-3.0-or-later
set -e
if ! command -v dot &> /dev/null
then
echo "dot command could not be found, please install graphviz"
exit 1
fi
# Build documentation with warnings treated as errors
make -C docs "${1:-html}" SPHINXOPTS='-n -W -a --keep-going'