📓 Add docs alongside

This commit is contained in:
Ettore Di Giacinto
2022-01-30 19:44:45 +01:00
parent 6f77fa2b3a
commit a591a1e44f
55 changed files with 3194 additions and 7 deletions

14
docs/scripts/serve.sh Executable file
View File

@@ -0,0 +1,14 @@
#!/bin/bash
set -e
binpath="${ROOT_DIR}/bin"
if [ ! -e "${binpath}/hugo" ];
then
[[ ! -d "${binpath}" ]] && mkdir -p "${binpath}"
wget https://github.com/gohugoio/hugo/releases/download/v"${HUGO_VERSION}"/hugo_extended_"${HUGO_VERSION}"_"${HUGO_PLATFORM}".tar.gz -O "$binpath"/hugo.tar.gz
tar -xvf "$binpath"/hugo.tar.gz -C "${binpath}"
rm -rf "$binpath"/hugo.tar.gz
chmod +x "$binpath"/hugo
fi
"${binpath}/hugo" --baseURL="$BASE_URL" -s "$ROOT_DIR" serve