mirror of
https://github.com/mleem97/gregWiki.git
synced 2026-04-11 03:29:19 +02:00
- Move markdown and wiki-import tree into docs/; keep app shell at repo root - Point docusaurus docs path to docs/; edit links to mleem97/gregWiki - Sync and i18n scripts use gregWiki root and ../.wiki under gregFramework - Sidebars: workspace layout from root docs ids; plugins under mods/extensions - Fix redirects, module catalog URLs, release note paths, and wiki-import category keys - Update repo inventory for split repos; Dockerfile for single-repo context Made-with: Cursor
15 lines
508 B
Bash
15 lines
508 B
Bash
#!/bin/sh
|
|
set -e
|
|
# Prefer wiki subfolder when the repo root is mounted at /app (root also has package.json).
|
|
# Otherwise use /app when only ./wiki is bound there (compose: ./wiki:/app).
|
|
if [ -f /app/wiki/package.json ]; then
|
|
cd /app/wiki
|
|
elif [ -f /app/package.json ]; then
|
|
cd /app
|
|
else
|
|
echo "docker-entrypoint: no package.json under /app or /app/wiki." >&2
|
|
echo "Run docker compose from the repository root so ./wiki is mounted, then: docker compose build --no-cache docs" >&2
|
|
exit 1
|
|
fi
|
|
exec "$@"
|