docs.bsct.io/build.sh

12 lines
402 B
Bash
Executable file

#!/bin/bash
# This script builds the documentation site using MkDocs and serves it to the Caddy web server.
# Build the documentation site
rm -rf ./site
mkdocs build --clean
# Clean up the web server directory
ssh webmaster@10.10.10.40 'sudo rm -rf /usr/share/caddy/docs.bsct.me/*'
# Copy the built documentation to the web server
scp -r ./site/* webmaster@10.10.10.40:/usr/share/caddy/docs.bsct.me