refactor: Move main website files to a subfolder

Moved the main HTML/CSS files into a dedicated subfolder and updated
deployment configuration accordingly.
This commit is contained in:
Matthew Binning 2026-01-21 14:26:41 -08:00
parent 9aace43357
commit a421d8e661
13 changed files with 12 additions and 10 deletions

6
.gitignore vendored
View file

@ -1,4 +1,4 @@
book blog/
blog/* src
content/* content/*
content-minimal/* example/*

View file

@ -2,7 +2,6 @@
authors = ["Matthew Binning"] authors = ["Matthew Binning"]
language = "en" language = "en"
multilingual = false multilingual = false
src = "content"
title = "The Bin" title = "The Bin"
[build] [build]

View file

@ -4,11 +4,9 @@ set -e
# Build the blog with mdbook before deploying # Build the blog with mdbook before deploying
printf "Building blog with mdbook...\n" printf "Building blog with mdbook...\n"
[ -s src ] || ln -s /var/lib/www src
mdbook build mdbook build
# Common files to deploy (shared between staging and prod)
DEPLOY_FILES="blog includes index.html menu.html resume.html style.css 404.html cover.jpg"
# Usage information # Usage information
usage() { usage() {
printf "Usage: %s [staging|prod]\n\n staging - Deploy to local staging environment (/srv/www/stage.binning.net)\n prod - Deploy to production server via SSH (www.binning.net)\n\nExample:\n %s staging\n %s prod\n" "$0" "$0" "$0" printf "Usage: %s [staging|prod]\n\n staging - Deploy to local staging environment (/srv/www/stage.binning.net)\n prod - Deploy to production server via SSH (www.binning.net)\n\nExample:\n %s staging\n %s prod\n" "$0" "$0" "$0"
@ -34,7 +32,8 @@ case $ENV in
# Deploy website files via rsync # Deploy website files via rsync
printf "Deploying website files...\n" printf "Deploying website files...\n"
sudo rsync -av --delete ${DEPLOY_FILES} ${STAGING_PATH}/ sudo rsync -av --delete main/* ${STAGING_PATH}/
sudo rsync -av --delete blog ${STAGING_PATH}/
# Set proper ownership # Set proper ownership
sudo chown -R nginx:nginx ${STAGING_PATH}/ sudo chown -R nginx:nginx ${STAGING_PATH}/

BIN
main/cover.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 182 KiB

View file

@ -1,5 +1,7 @@
(A) Move the resume to the private section and add the lock symbol. @Cline (C) Add a folder to hold the nginx/nix files and deploy it properly.
(B) Change deploy.sh into a Makefile with operations for build, deploy [staging|production] @Cline (B) Add a Forgejo pipeline to supersede deploy.sh. @Cline
(C) Move the resume to the private section and add the lock symbol. @Cline
Remove the one line descriptions from the menu. @Cline
Reduce the CSS where possible. Match my website's theme to align with mdbook's theme. @Cline Reduce the CSS where possible. Match my website's theme to align with mdbook's theme. @Cline
Theme Forgejo where possible to match the theme. @Cline Theme Forgejo where possible to match the theme. @Cline
@ -14,6 +16,8 @@ Fill out the DefCon article
Fill out the Oktoberfest article Fill out the Oktoberfest article
Fill out the health journey Fill out the health journey
Fill out the faith journey Fill out the faith journey
x Add a build step to fetch/symlink "content" to this repo before mdbook build.
x Add a folder to hold the main html files and deploy it properly.
x Create a simple webpage with HTML and CSS x Create a simple webpage with HTML and CSS
x Serve it from nginx x Serve it from nginx
x Add a navbar at the top with the index page as link in the top-left. x Add a navbar at the top with the index page as link in the top-left.