mdcms/docs
Claude 8e7f5d3ae9
feat: mdcms build writes mdcms.json; register accepts URLs
mdcms build now calls generate_site_manifest() at the end of every build,
writing mdcms.json to the site root. This file lists all deployable files
and empty directories, and is deployed alongside the site so any mdcms
user can register a copy of the site from its URL.

mdcms register now accepts a GitHub repo URL or plain HTTPS URL as PATH
or via --from. GitHub URLs try mdcms.json (raw content) first and fall
back to the Contents API tree-walk. Plain URLs require mdcms.json to be
present and fail with a clear error if it is not found.

- generate_site_manifest() added; called at end of run_build
- download_template(dest, source=None) dispatches on source type
- _parse_github_url() extracts owner/repo/branch/subpath from GitHub URLs
- _fetch_manifest() / _apply_manifest() handle the manifest protocol
- _download_tree_api() retained as GitHub Contents API fallback
- _http_get_github() carries Accept header for Contents API responses
- MANIFEST_FILENAME = "mdcms.json"; GITHUB_URL_RE added
- app/template-manifest.json replaced by app/mdcms.json
- register command: PATH accepts URL; --from option added

https://claude.ai/code/session_01Ai8xRvmrzdhuTKiRQ2fnn9
2026-06-07 18:00:24 +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: mdcms build writes mdcms.json; register accepts URLs 2026-06-07 18:00:24 +00:00
workflows.md Upodated docs 2026-05-17 22:23:07 +07:00

Placeholder