Add stories/ dir, /stories API endpoints, dev.sh blog symlink
This commit is contained in:
+9
-2
@@ -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..."
|
||||
|
||||
Reference in New Issue
Block a user