ac6b11037d
Co-authored-by: jbdoumenjou <jb.doumenjou@gmail.com>
16 lines
401 B
Bash
Executable file
16 lines
401 B
Bash
Executable file
#!/bin/bash
|
|
#
|
|
# This script is run in netlify environment to build and validate
|
|
# the website for documentation
|
|
|
|
CURRENT_DIR="$(cd "$(dirname "${0}")" && pwd -P)"
|
|
|
|
#### Build website
|
|
# Provide the URL for this deployment to Mkdocs
|
|
echo "${DEPLOY_PRIME_URL}" > "${CURRENT_DIR}/../CNAME"
|
|
sed -i "s#site_url:.*#site_url: ${DEPLOY_PRIME_URL}#" "${CURRENT_DIR}/../mkdocs.yml"
|
|
|
|
# Build
|
|
mkdocs build
|
|
|
|
exit 0
|