website/build.sh
~ajhalili2006 (vern/ctrl-c) 239eedbe7c Update website content and config
I literally edit them in the ~vern pubnix, which experienced some issues
lately (but no data loss on the home directories is being reported yet).

Signed-off-by: ~ajhalili2006 (vern/ctrl-c) <ajhalili2006@vern.cc>
2022-12-14 03:36:53 +00:00

12 lines
200 B
Bash
Executable file

#!/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