mirror of
https://mau.dev/andreijiroh-dev/website.git
synced 2024-11-28 11:13:40 +00:00
13 lines
200 B
Bash
13 lines
200 B
Bash
|
#!/usr/bin/env bash
|
||
|
set -xe
|
||
|
|
||
|
TARGET_DIR=${TARGET_DIR:-"$HOME/public_html"}
|
||
|
|
||
|
if ! command -v mkdocs > /dev/null; then
|
||
|
pip3 install -r requirements.txt --user
|
||
|
fi
|
||
|
|
||
|
mkdocs build -d $TARGET_DIR
|
||
|
|
||
|
set +xe
|