mirror of
https://github.com/kbenestad/mdcms.git
synced 2026-06-18 07:24:31 +00:00
- Add generate_pwa(): builds manifest.json (name, short_name, theme_color, standalone display, favicon icon) and service-worker.js with a cache-first strategy; cache name is versioned by a hash of the precache file list so new builds automatically invalidate old caches; precache list covers index.html, config.yml, nav.yml, search.json, theme file, and all pages/posts/assets - Call generate_pwa() from run_build() when pwa: yes/true in config.yml - index.html: add <link rel="manifest"> and SW registration script in <head>; both silently no-op when the generated files are absent - index.html boot(): write offline-message from config to localStorage on every load so the message survives cache eviction - index.html navigateTo(): show localStorage offline message when a page fetch fails instead of the generic not-found message - Update CLAUDE.md with PWA config key reference https://claude.ai/code/session_015XtsgTMi8UtmgxEgb5Qt2c
27 lines
591 B
TOML
27 lines
591 B
TOML
[build-system]
|
|
requires = ["setuptools>=61", "wheel"]
|
|
build-backend = "setuptools.build_meta"
|
|
|
|
[project]
|
|
name = "mdcms"
|
|
version = "0.3.9"
|
|
description = "MD-CMS — Markdown-based CMS companion CLI"
|
|
readme = "README.md"
|
|
license = { text = "Apache-2.0" }
|
|
authors = [{ name = "Kristian Benestad" }]
|
|
requires-python = ">=3.9"
|
|
dependencies = [
|
|
"click>=8.0",
|
|
"PyYAML>=6.0",
|
|
"certifi>=2024.0",
|
|
]
|
|
|
|
[project.scripts]
|
|
mdcms = "mdcms:main"
|
|
|
|
[project.urls]
|
|
Homepage = "https://github.com/kbenestad/mdcms"
|
|
Documentation = "https://docs.benestad.net"
|
|
|
|
[tool.setuptools]
|
|
py-modules = ["mdcms"]
|