From a2fac7bc0b1a5d825b8ed8d07923a17cb16dc32c Mon Sep 17 00:00:00 2001 From: CaptainJack2491 Date: Sat, 27 Dec 2025 16:39:29 +0000 Subject: inital commit --- deploy.sh | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100755 deploy.sh (limited to 'deploy.sh') diff --git a/deploy.sh b/deploy.sh new file mode 100755 index 0000000..991dd6d --- /dev/null +++ b/deploy.sh @@ -0,0 +1,20 @@ +#!/usr/bin/env bash + +# 1. Clear the old garbage +rm -rf public/ + +# 2. Render the whole website (HTML) +# This creates the directories and index.html files correctly +quarto render --to html + +# 3. Render the Plain Text versions manually to ensure mirroring +# We find every .qmd, and render it to a .txt in the corresponding public/ folder +find . -name "*.qmd" -not -path "./.*" -not -path "./public/*" | while read -r file; do + # Get the directory structure (e.g., ./projects/index.qmd -> projects) + rel_dir=$(dirname "${file#./}") + # Get the filename without extension (e.g., index) + base_name=$(basename "$file" .qmd) + + # Render to plain text directly into the correct public sub-directory + quarto render "$file" --to plain --output "${base_name}.txt" --output-dir "public/$rel_dir" +done -- cgit v1.2.3