docs: update demo instructions to use make commands
This commit is contained in:
+3
-15
@@ -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
|
||||
```
|
||||
|
||||
---
|
||||
|
||||
Reference in New Issue
Block a user