feat: Convert the blog to mdbook

Replaced the custom HTML/CSS blog with mdbook. Gained a sidebar for
navigating sections, subsections, and pages. Applied a sepia-tone,
monospace theme. Blog sections now populate from SUMMARY.md rather than
manually maintained HTML includes.
This commit is contained in:
Matthew Binning 2026-01-02 07:16:46 -08:00
parent d2421d41f3
commit edcb1a9059
5 changed files with 217 additions and 3 deletions

View file

@ -2,8 +2,12 @@
set -e
# Build the blog with mdbook before deploying
printf "Building blog with mdbook...\n"
mdbook build
# Common files to deploy (shared between staging and prod)
DEPLOY_FILES="blog includes index.html blog.html resume.html style.css 404.html"
DEPLOY_FILES="blog includes index.html resume.html style.css 404.html"
# Usage information
usage() {
@ -61,7 +65,7 @@ case $ENV in
ssh ${REMOTE_HOST} "mkdir -p /tmp/${REMOTE_PATH}"
rsync -avz --delete ${DEPLOY_FILES} ${REMOTE_HOST}:/tmp/${REMOTE_PATH}/
# Set proper permissions and move config on remote server
ssh ${REMOTE_HOST} "sudo mv /tmp/${REMOTE_PATH} ${REMOTE_PATH} && \
ssh ${REMOTE_HOST} "sudo rsync -avz --delete /tmp/${REMOTE_PATH} ${REMOTE_PATH} && \
sudo chown -R nginx:nginx ${REMOTE_PATH}/ && \
printf 'Content deployed.\n'"