wiki/.actions/mkdocs-build/entrypoint.sh

12 lines
168 B
Bash
Raw Normal View History

2024-08-29 12:03:10 +02:00
#!/bin/bash
set -eux
cd "$3"
if test -d .git; then
git config --global --add safe.directory "$(realpath "$3")"
fi
mkdocs build --config-file "$1" --site-dir "$2"