Files

32 lines
1.8 KiB
Markdown
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# themes/ —— 公众号排版主题库(融合自 gzh-design-skill)
## 来源与协议
本目录的主题组件库、`ENGINE.md` 及配套脚本(`scripts/validate_gzh_html.py`、`scripts/wrap_preview.py`、`scripts/component_lint.py`、`assets/preview-template.html`)来自 [isjiamu/gzh-design-skill](https://github.com/isjiamu/gzh-design-skill)(作者:甲木 Jiamu × 摸鱼小李),原仓库与本项目快照均见 `LICENSE`(**AGPL-3.0**)。
**协议边界**:本目录及上述脚本适用 AGPL-3.0;MetaSkill 仓库其余部分保持 MIT。对本目录的修改处已在此声明:
- `component_lint.py`:扫描路径从 `references/*.md` 改为 `references/themes/*.md`(适配本仓库结构)
- `ENGINE.md`:从原仓库 SKILL.md 提炼适配的装配规则(输出文件名、签名区与账号画像对齐等融合改动见文内标注)
- 主题组件库文件(theme-*.md、common-components.md、theme-generator.md、theme-index.md)原样导入,未修改
## 在 le-wechat-article 中的角色
- **主排版引擎**:第 7 步排版转换默认走主题制——按 [theme-index.md](theme-index.md) 选主题,按 [ENGINE.md](ENGINE.md) 装配,产物过 `validate_gzh_html.py` 校验
- `scripts/md2wechat.py` 保留为**轻稿快档**(简报类 <1500 字或用户明确要快时)
- 主题选择由**该账号画像的「排版偏好」**决定默认值(多账号各配各的),第 2 步校准停点展示、可当场改
## 主题清单
6 套已注册主题见 [theme-index.md](theme-index.md)(摸鱼绿 / 红白色系 / 石墨极简 / 留白禅意 / 摸鱼票据 / 橄榄手记);为账号定制全新风格走 [theme-generator.md](theme-generator.md) 生成后登记。
## 维护
改动或新增主题组件库后跑:
```bash
python3 scripts/component_lint.py <skill 根目录>
```
确认 0 ERROR。