Files
gregWiki/docker-entrypoint.sh
Marvin e2839584f4 Merge Docusaurus site: all content under docs/, align with gregFramework split layout
- 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
2026-04-09 23:39:32 +02:00

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 "$@"