From 24670a66dd60f5f07fdfd91eaa785fbbda94beea Mon Sep 17 00:00:00 2001 From: Claude Date: Fri, 8 May 2026 16:05:04 +0000 Subject: [PATCH] Rebuild mdcms as proper CLI tool (v0.3) - Replace interactive TUI with click-based subcommands: register, delete, view, build - build accepts NAME (registry), --path, or CWD for GitHub Actions use - Switch to PyYAML for frontmatter and nav.yml parsing - Add pyproject.toml with click + PyYAML deps and mdcms entry point - Add v0.3 version marker to app/config.yml and app/index.html - Registry moves to ~/.config/mdcms/sites.json (XDG-compliant) - Project root is now the directory containing index.html (no website/ subdir) - register auto-downloads template from GitHub if no site found https://claude.ai/code/session_01MqEqGhP1guGx5VuFsLaws2 --- app/config.yml | 3 +- app/index.html | 3 +- mdcms.py | 1470 +++++++++++++----------------------------------- pyproject.toml | 26 + 4 files changed, 413 insertions(+), 1089 deletions(-) create mode 100644 pyproject.toml diff --git a/app/config.yml b/app/config.yml index 6c32f19..86727da 100644 --- a/app/config.yml +++ b/app/config.yml @@ -1,4 +1,5 @@ -# MD-CMS v0.2 — Site configuration +# mdcms v0.3 | DO NOT REMOVE THIS COMMENT +# MD-CMS v0.3 — Site configuration # # Only `sitename` and `navigation` are required. Uncomment and edit the rest # as needed. See https://kbenestad.codeberg.page/md-cms for the full reference. diff --git a/app/index.html b/app/index.html index ec16766..a80ba18 100644 --- a/app/index.html +++ b/app/index.html @@ -1,5 +1,6 @@ +