Rebuild nav.yml and search.json for phase7 test pages

https://claude.ai/code/session_01UP8Wo2CKPNhvvTkzX48CWF
This commit is contained in:
Claude 2026-05-17 20:33:17 +00:00
parent 9856a94d26
commit 8b4114004e
No known key found for this signature in database
2 changed files with 37 additions and 10 deletions

View file

@ -1,7 +1,6 @@
# nav.yml — generated by mdcms.py # nav.yml — generated by mdcms
# Manual edits to section metadata (defaultname, sort, parent, parent-sort, # Manual edits to section metadata (defaultname, sort, parent, parent-sort,
# pagesvisibility, categorynames) are preserved on rebuild. New sections # pagesvisibility, categorynames) are preserved on rebuild.
# are auto-created from page frontmatter section-id values.
sections: sections:
# (none yet — add section-id to page frontmatter to auto-create) # (none yet — add section-id to page frontmatter to auto-create)
@ -9,6 +8,11 @@ pages:
- file: pages/home.md - file: pages/home.md
title: Home title: Home
sort: 100 sort: 100
variants: [en]
titles: - file: pages/about.md
en: Home title: About
sort: 200
- file: pages/docs.md
title: Docs
sort: 300

View file

@ -1,4 +1,28 @@
[ [
{
"file": "pages/about.md",
"title": "About",
"section-id": null,
"keywords": "",
"description": "",
"author": null,
"created": "",
"modified": "",
"language": "en",
"body": "# About\n\nThis is a sample page for Phase 7 PWA testing. Navigate here from the sidebar, then go offline and reload — this page should still be available from the service worker cache.\n"
},
{
"file": "pages/docs.md",
"title": "Docs",
"section-id": null,
"keywords": "",
"description": "",
"author": null,
"created": "",
"modified": "",
"language": "en",
"body": "# Docs\n\nAnother sample page for Phase 7 PWA testing. Visit this page while online, then go offline — it should remain accessible from the cache.\n"
},
{ {
"file": "pages/home.md", "file": "pages/home.md",
"title": "Home", "title": "Home",
@ -6,10 +30,9 @@
"keywords": "", "keywords": "",
"description": "", "description": "",
"author": null, "author": null,
"date": "", "created": "",
"datetime": "", "modified": "",
"language": "en", "language": "en",
"body": "# Post Listing Tests\n\n## Reverse chronological (newest first)\n\n```mdcms\nposts-date-reversechronological\nlimit: 3\npaginate: no\n```\n\n## Chronological (oldest first)\n\n```mdcms\nposts-date-chronological\nlimit: all\npaginate: none\n```\n\n## By year (date, reverse chrono)\n\n```mdcms\nposts-date-reversechronological-byyear\nlimit: all\ndefaultyear: current\nselectyear: yes\npaginate: none\n```\n\n## By year+month (datetime, chrono)\n\n```mdcms\nposts-datetime-chronological-byyearmonth\nlimit: all\ndefaultyear: 2024\nselectyear: yes\n```\n\n## Last 30 days\n\n```mdcms\nposts-date-reversechronological-lastmonth\nlimit: all\npaginate: none\n```\n\n## Paginated (2 per page)\n\n```mdcms\nposts-datetime-reversechronological\nlimit: 2\npaginate: yes\n```\n", "body": "# Phase 7 — PWA Test\n\nThis page verifies the service worker and manifest generated by `mdcms build` when `pwa: yes` is set in `config.yml`.\n\n## Test procedure\n\n1. Run `python3 mdcms.py build --path app/` — confirm `manifest.json` and `service-worker.js` appear in `app/`\n2. Load `http://localhost:8800` — service worker registers on first load\n3. Navigate to the **About** and **Docs** pages so they are fetched and cached\n4. Stop the HTTP server (`Ctrl+C` in its terminal)\n5. Reload — site should load fully from the service worker cache\n6. Navigate between pages — all should work offline\n7. Check that a page not yet visited shows the offline message\n\n## What to look for\n\n- `manifest.json` and `service-worker.js` exist after build\n- DevTools → Application → Service Workers: status **activated and running**\n- DevTools → Application → Cache Storage: cache named `mdcms-xxxxxxxx` with all files listed\n- Site loads fully with server stopped\n- Offline message (`config.yml: offline-message`) appears for uncached pages\n"
"category": "en"
} }
] ]