mirror of
https://mau.dev/andreijiroh-dev/website.git
synced 2025-06-07 13:09:32 +00:00
Migrate build script to bin directory
Also symlink it to avoid breakage Signed-off-by: Andrei Jiroh Halili <ajhalili2006@gmail.com>
This commit is contained in:
parent
4022a2add6
commit
6adc266f17
2 changed files with 12 additions and 40 deletions
17
build.sh
17
build.sh
|
@ -1,17 +0,0 @@
|
|||
#!/usr/bin/env bash
|
||||
set -xe
|
||||
|
||||
TARGET_DIR=${TARGET_DIR:-"$PWD/public"}
|
||||
FF_OFFLINE_MKDOCS_PLUGIN=${FF_OFFLINE_MKDOCS_PLUGIN:-"false"}
|
||||
FF_ENABLE_COMMIT_DATA=${FF_ENABLE_COMMIT_DATA:-"true"}
|
||||
FF_GENERATE_SOCIAL_CARDS=${FF_GENERATE_SOCIAL_CARDS:-"true"}
|
||||
|
||||
if [[ ! -d "$PWD/.venv" && $SKIP_VENV_SETUP == "" ]]; then
|
||||
python3 -m venv $PWD/.venv
|
||||
fi
|
||||
$PWD/.venv/bin/pip3 install -r requirements.txt --upgrade
|
||||
$PWD/.venv/bin/mkdocs build -d $TARGET_DIR
|
||||
mkdir "$TARGET_DIR/api"
|
||||
git rev-parse HEAD > "$TARGET_DIR/api/commit"
|
||||
|
||||
set +xe
|
1
build.sh
Symbolic link
1
build.sh
Symbolic link
|
@ -0,0 +1 @@
|
|||
bin/build.sh
|
Loading…
Add table
Add a link
Reference in a new issue