Add stories/ dir, /stories API endpoints, dev.sh blog symlink

This commit is contained in:
brutsalvadi
2026-04-23 17:03:34 +02:00
parent aba80ee49e
commit db265fc8d1
7 changed files with 333 additions and 35 deletions
+9 -2
View File
@@ -5,8 +5,9 @@ set -e
cd "$(dirname "$0")/.."
ROOT="$(pwd)"
# Symlink wiki pages into the site's content collection
mkdir -p pages
# Symlink wiki pages and stories into the site's content collections
mkdir -p pages stories
mkdir -p site/src/content/entries
LINK="$ROOT/site/src/content/entries/_wiki"
if [ ! -L "$LINK" ]; then
@@ -14,6 +15,12 @@ if [ ! -L "$LINK" ]; then
echo "Linked pages/ → site/src/content/entries/_wiki"
fi
BLOG_LINK="$ROOT/site/src/content/blog"
if [ ! -L "$BLOG_LINK" ]; then
ln -sf "$ROOT/stories" "$BLOG_LINK"
echo "Linked stories/ → site/src/content/blog"
fi
# Start edit sidecar if requested
if [[ "$*" == *"--edit"* ]]; then
echo "Starting edit sidecar on :8001..."