diff --git a/docs/demo/README.md b/docs/demo/README.md index 0382c8b..4ca4009 100644 --- a/docs/demo/README.md +++ b/docs/demo/README.md @@ -27,16 +27,8 @@ Seven sample journal entries for a fictional Japan + South Korea trip (March–A ## How to deploy demo content -Copy the tracker entries into the Grav pages tree: - ```bash -cp -r user/docs/demo/tracker/. user/pages/01.tracker/ -``` - -Then clear the Grav cache so the new pages appear immediately: - -```bash -docker exec intotheeast_grav bash -c "cd /app/www/public && php bin/grav clearcache" +make demo-load ``` Open `http://localhost:8081/tracker` — all 7 entries should appear. @@ -45,14 +37,10 @@ Open `http://localhost:8081/tracker` — all 7 entries should appear. ## How to reset (remove demo content) -Remove all demo entries (leaves the real `tracker.md` index page and any real entries untouched if they have different slugs): +Removes all demo entries. Real entries with different slugs are left untouched. ```bash -for dir in user/docs/demo/tracker/*/; do - folder=$(basename "$dir") - rm -rf "user/pages/01.tracker/$folder" -done -docker exec intotheeast_grav bash -c "cd /app/www/public && php bin/grav clearcache" +make demo-reset ``` --- diff --git a/docs/summary.md b/docs/summary.md index 26af5b3..6899c35 100644 --- a/docs/summary.md +++ b/docs/summary.md @@ -77,9 +77,8 @@ Design direction: **Field Notes** — editorial travel journal aesthetic, not so Seven sample entries for design/QA showcasing: feed, map route, stats, weather variety (including snow). ```bash -# Deploy demo content -cp -r user/docs/demo/tracker/. user/pages/01.tracker/ -docker exec intotheeast_grav bash -c "cd /app/www/public && php bin/grav clearcache" +make demo-load # copy entries into tracker, clear cache +make demo-reset # remove demo entries, clear cache ``` Full instructions: `user/docs/demo/README.md`