docs: update demo instructions to use make commands

This commit is contained in:
2026-06-18 17:52:38 +02:00
parent b37f46de55
commit 0eb5e8c6a5
2 changed files with 5 additions and 18 deletions
+3 -15
View File
@@ -27,16 +27,8 @@ Seven sample journal entries for a fictional Japan + South Korea trip (MarchA
## 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
```
---