#!/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.102 'sudo rm -rf /usr/share/caddy/docs.bsct.me/*' # Copy the built documentation to the web server scp -r ./site/* webmaster@10.10.10.102:/usr/share/caddy/docs.bsct.me