mirror of
https://github.com/kbenestad/mdcms.git
synced 2026-06-18 07:24:31 +00:00
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 |
||
|---|---|---|
| .. | ||
| assets | ||
| pages | ||
| posts | ||
| 404.html | ||
| config.yml | ||
| index.html | ||
| manifest.json | ||
| mdcms.json | ||
| nav.yml | ||
| search.json | ||
| service-worker.js | ||
| theme.yml | ||