Restore symlink approach; revert failed absolute-path experiment

This commit is contained in:
brutsalvadi
2026-04-23 22:46:44 +02:00
parent c67013f166
commit 848685ad8f
2 changed files with 13 additions and 2 deletions
+12 -1
View File
@@ -5,9 +5,20 @@ set -e
cd "$(dirname "$0")/.." cd "$(dirname "$0")/.."
ROOT="$(pwd)" ROOT="$(pwd)"
# Ensure content directories exist at repo root # Ensure content directories and symlinks exist
mkdir -p pages stories mkdir -p pages stories
mkdir -p site/src/content/entries
LINK="$ROOT/site/src/content/entries/_wiki"
if [ ! -L "$LINK" ]; then
ln -sf "$ROOT/pages" "$LINK"
fi
BLOG_LINK="$ROOT/site/src/content/blog"
if [ ! -L "$BLOG_LINK" ]; then
ln -sf "$ROOT/stories" "$BLOG_LINK"
fi
# Start edit sidecar if requested # Start edit sidecar if requested
if [[ "$*" == *"--edit"* ]]; then if [[ "$*" == *"--edit"* ]]; then
echo "Starting edit sidecar on :8001..." echo "Starting edit sidecar on :8001..."
+1 -1
Submodule site updated: 39bd74d2b7...3ccd551149