mdcms/docs
Claude 31330d19e2
feat: clean URLs for section-id pages
Pages whose filename matches a nav section-id now get a clean pathname
URL (e.g. /timesheet) instead of the hash-based /#pages/timesheet.md.

- _initialPathname captured at IIFE start; handles ?_route= from 404.html
- basePath determined by initBasePath() after nav data loads; subpath
  deployments (e.g. /mysite/) handled automatically
- navigateTo() uses replaceState to /slug for section-id pages and falls
  back to #hash for everything else
- popstate listener handles browser history if a clean URL was the entry
- resolveSlugToFile() validates that slug is both a section code and has
  a pages/{slug}.md entry in navData
- app/404.html added for GitHub Pages SPA routing

https://claude.ai/code/session_01Ai8xRvmrzdhuTKiRQ2fnn9
2026-06-07 17:23:30 +00:00
..
banner Add banner for latest version notification 2026-05-18 22:20:48 +07:00
claude-design.md Add configurable nav section toggle icons 2026-05-18 15:08:59 +00:00
dev-release.md Upodated docs 2026-05-17 22:23:07 +07:00
documentation.md Rename resources/ to docs/ 2026-05-08 16:22:42 +00:00
github-workflow.md Adjust paths for MD-CMS multisite workflow 2026-05-18 17:00:16 +07:00
install.md Updated install.md 2026-05-16 21:53:14 +07:00
knownbugs.md Fix two bugs: SPA-routing page load failure and stale service worker 2026-05-19 14:55:51 +00:00
README.md Add placeholder text to README.md 2026-05-10 09:01:45 +07:00
reference-config.md feat: add visibilityifnocontent per-category config key 2026-05-21 15:02:31 +00:00
reference-nav.md Add full reference docs for theme.yml, config.yml, and nav.yml 2026-05-18 08:44:35 +00:00
reference-pages.md docs: add tabs and accordion reference to reference-pages.md 2026-05-21 16:56:44 +00:00
reference-theme.md Update docs: default font provider is now Bunny Fonts 2026-05-19 03:41:44 +00:00
unreleased.md feat: clean URLs for section-id pages 2026-06-07 17:23:30 +00:00
workflows.md Upodated docs 2026-05-17 22:23:07 +07:00

Placeholder