From 8b4114004e8a3f41acd32763fa75bb727973502f Mon Sep 17 00:00:00 2001 From: Claude Date: Sun, 17 May 2026 20:33:17 +0000 Subject: [PATCH] Rebuild nav.yml and search.json for phase7 test pages https://claude.ai/code/session_01UP8Wo2CKPNhvvTkzX48CWF --- app/nav.yml | 16 ++++++++++------ app/search.json | 31 +++++++++++++++++++++++++++---- 2 files changed, 37 insertions(+), 10 deletions(-) diff --git a/app/nav.yml b/app/nav.yml index 68a0854..655a3c5 100644 --- a/app/nav.yml +++ b/app/nav.yml @@ -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, -# pagesvisibility, categorynames) are preserved on rebuild. New sections -# are auto-created from page frontmatter section-id values. +# pagesvisibility, categorynames) are preserved on rebuild. sections: # (none yet — add section-id to page frontmatter to auto-create) @@ -9,6 +8,11 @@ pages: - file: pages/home.md title: Home sort: 100 - variants: [en] - titles: - en: Home + + - file: pages/about.md + title: About + sort: 200 + + - file: pages/docs.md + title: Docs + sort: 300 diff --git a/app/search.json b/app/search.json index 5ec1f8a..d6dfd7a 100644 --- a/app/search.json +++ b/app/search.json @@ -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", "title": "Home", @@ -6,10 +30,9 @@ "keywords": "", "description": "", "author": null, - "date": "", - "datetime": "", + "created": "", + "modified": "", "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", - "category": "en" + "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" } ] \ No newline at end of file