aboutsummaryrefslogtreecommitdiff
path: root/scripts/publish-raw
diff options
context:
space:
mode:
authorRichard Qin <richard.qin.x@gmail.com>2026-10-16 00:21:23 +0800
committerRichard Qin <richard.qin.x@gmail.com>2026-10-16 00:21:23 +0800
commit48ebeca90c6a11b77bc53cbbaae66481a74686d3 (patch)
tree58d7bbe3ccf4378dac0e4373277d100073d2b3f5 /scripts/publish-raw
parentc56f1813a710b29a161b983d86b4774e6f3918cb (diff)
downloadrhomepage-48ebeca90c6a11b77bc53cbbaae66481a74686d3.tar.gz
rhomepage-48ebeca90c6a11b77bc53cbbaae66481a74686d3.tar.xz
Simplify source links and show HTML filenames in breadcrumbs
Diffstat (limited to 'scripts/publish-raw')
-rwxr-xr-xscripts/publish-raw40
1 files changed, 0 insertions, 40 deletions
diff --git a/scripts/publish-raw b/scripts/publish-raw
deleted file mode 100755
index cc05958..0000000
--- a/scripts/publish-raw
+++ /dev/null
@@ -1,40 +0,0 @@
-#!/bin/sh
-
-set -eu
-
-content_dir=${1:-content}
-public_dir=${2:-public}
-
-[ -d "$content_dir" ] || exit 0
-mkdir -p "$public_dir"
-
-find "$content_dir" -type f -print | while IFS= read -r source
-do
- relative=${source#"$content_dir"/}
-
- case "$relative" in
- updates/_index.md)
- # Updates is an aggregate index, not a published Markdown document.
- continue
- ;;
- journal/_index.md)
- target=$public_dir/journal/_index.md
- ;;
- journal/*/_index.md|journal/*/*/_index.md)
- target=$public_dir/$relative
- ;;
- journal/*/*/*/*)
- target=$public_dir/$relative
- ;;
- journal/*)
- # Only source files for published journal sections and entries are public.
- continue
- ;;
- *)
- target=$public_dir/$relative
- ;;
- esac
-
- mkdir -p "$(dirname "$target")"
- cp "$source" "$target"
-done