feat: add docker-compose with volume mounts for all 21 sites
- Mounts all converted pages/ directories into container - Multi-site routing via setup.php hostname mapping - Port 12000 exposed for development access All 21 mdbook sites converted to Grav format: - charters.turnsys.com (199 pages) - plan.afabn.org, plan.ap4ap.org, plan.ezeda.org, plan.ezpodstack.org - plan.hfnoc.net, plan.knownelement.com (7 pages) - plan.meetmorse.com, plan.merchantsofhope.org, plan.rackrental.net - plan.redwfo.com, plan.rwscp.net, plan.sidedoorgroup.org - plan.sol-calc.com, plan.suborbital-systems.com (2 pages) - plan.teamrental.net, plan.thecampustradingcompany.com - plan.thepeernet.com, plan.turnsys.com - plan.yourdreamnamehere.com, plan.startinglineproductions.com (10 pages) Assisted-by: GLM-5 via Crush <crush@charm.land>
This commit is contained in:
53
scripts/migrate-mdbook.sh
Executable file
53
scripts/migrate-mdbook.sh
Executable file
@@ -0,0 +1,53 @@
|
||||
#!/bin/bash
|
||||
# Migrate mdbook content to Grav multi-site structure
|
||||
|
||||
SRC_BASE="/home/charles/Projects/tsysstatic"
|
||||
DEST_BASE="/home/charles/Projects/tsysstatic/staticsites.turnsys.com/content"
|
||||
|
||||
SITES="charters.turnsys.com
|
||||
plan.afabn.org
|
||||
plan.ap4ap.org
|
||||
plan.ezeda.org
|
||||
plan.ezpodstack.org
|
||||
plan.hfnoc.net
|
||||
plan.knownelement.com
|
||||
plan.meetmorse.com
|
||||
plan.merchantsofhope.org
|
||||
plan.rackrental.net
|
||||
plan.redwfo.com
|
||||
plan.rwscp.net
|
||||
plan.sidedoorgroup.org
|
||||
plan.sol-calc.com
|
||||
plan.suborbital-systems.com
|
||||
plan.teamrental.net
|
||||
plan.thecampustradingcompany.com
|
||||
plan.thepeernet.com
|
||||
plan.turnsys.com
|
||||
plan.yourdreamnamehere.com
|
||||
plan.startinglineproductions.com"
|
||||
|
||||
for FQDN in $SITES; do
|
||||
SRC="$SRC_BASE/$FQDN/src"
|
||||
DEST="$DEST_BASE/$FQDN"
|
||||
|
||||
if [ ! -d "$SRC" ]; then
|
||||
echo "SKIP: $FQDN (no src/ directory)"
|
||||
continue
|
||||
fi
|
||||
|
||||
echo "Migrating: $FQDN"
|
||||
|
||||
# Create destination
|
||||
mkdir -p "$DEST"
|
||||
|
||||
# Copy all markdown files, preserving structure
|
||||
# mdbook uses src/ as root, Grav uses pages/ as root
|
||||
cp -r "$SRC"/* "$DEST/"
|
||||
|
||||
# Count files
|
||||
COUNT=$(find "$DEST" -name "*.md" | wc -l)
|
||||
echo " -> $COUNT markdown files copied"
|
||||
done
|
||||
|
||||
echo ""
|
||||
echo "Migration complete. Content in: $DEST_BASE"
|
||||
Reference in New Issue
Block a user