Commit Graph

21 Commits

Author SHA1 Message Date
rbetree
280d376bac feat(templates):新增 Markdown 内容页支持
新增 template: content:构建期使用 markdown-it 将本地Markdown 渲染为 HTML(禁用 raw HTML/图片),并按MeNav的URLscheme白名单策略对链接做安全降级
2026-01-20 18:23:32 +08:00
rbetree
87d1f0244c chore: 引入统一日志模块,统一 cli 输出 2026-01-16 20:36:24 +08:00
rbetree
f2f59108a0 chore: 提交时自动格式化代码
- 安装 husky (^9.1.7) 和 lint-staged (^16.2.7)
- 配置 pre-commit hook 自动运行 Prettier
- 创建 .prettierignore 排除不需要格式化的文件
2026-01-16 16:34:47 +08:00
rbetree
48609b86de feat: 分类锚点&质量检查&依赖治理
- 分类生成唯一 slug,模板/子菜单/滚动/扩展定位统一使用 data-id
- lint 覆盖 src/scripts/test,CI 增量格式检查
- 清理冗余依赖,升级 esbuild,overrides 修复审计项
- 补充单测并更新修复清单
2026-01-04 20:39:42 +08:00
rbetree
4cc10dd2b2 feat: 减少渲染阻塞并压缩静态资源
- 移除首页副标题固定 Quicksand 外链字体,改为跟随全站字体变量
- 字体配置新增 fonts.preload(preload+onload 非阻塞加载,含 noscript 回退)
- Font Awesome CSS 改为 preload+onload 非阻塞加载,降低 render-blocking
- 构建阶段使用 esbuild 压缩 dist 的 style/script/pinyin-match(无 esbuild 时回退为直接复制)
- 同步更新文档说明与更新日志
2026-01-04 17:03:16 +08:00
rbetree
387cd2492e feat: 页面模板差异化改进 + 配置优化 + 兼容清理 (#29)
- 首页判定:navigation 第一项
- 模板:page/projects/articles/bookmarks/search-results
- bookmarks:update: YYYY-MM-DD | from: git|mtime
- articles:RSS 聚合只读条目 + 分类聚合 + 影子写回结构
- projects:repo 卡片 + 可选热力图 + 自动抓取元信息
- 工作流:构建前 sync + schedule 定时刷新
- 移除兼容:config.yml/config.yaml、navigation.yml、home 特例
- 迁移说明:config/update-instructions.md
2025-12-28 00:22:54 +08:00
dependabot[bot]
49763a95cf chore(deps): bump on-headers and serve (#25)
Bumps [on-headers](https://github.com/jshttp/on-headers) to 1.1.0 and updates ancestor dependency [serve](https://github.com/vercel/serve). These dependencies need to be updated together.


Updates `on-headers` from 1.0.2 to 1.1.0
- [Release notes](https://github.com/jshttp/on-headers/releases)
- [Changelog](https://github.com/jshttp/on-headers/blob/master/HISTORY.md)
- [Commits](https://github.com/jshttp/on-headers/compare/v1.0.2...v1.1.0)

Updates `serve` from 14.2.4 to 14.2.5
- [Release notes](https://github.com/vercel/serve/releases)
- [Commits](https://github.com/vercel/serve/compare/14.2.4...v14.2.5)

---
updated-dependencies:
- dependency-name: on-headers
  dependency-version: 1.1.0
  dependency-type: indirect
- dependency-name: serve
  dependency-version: 14.2.5
  dependency-type: direct:development
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-12-23 16:07:44 +08:00
rbetree
47e4369b09 chore: 安全升级并完善 CI/测试
- 升级 js-yaml 修复生产依赖漏洞
- 新增 CI:lint/test/build
- 增加书签处理单测与可测性导出"- 生成器补充 config/user 缺失提示
- 增加 lint/format/check 脚本与 Prettier 配置
- 统一行尾策略并支持书签确定性输出"
2025-12-22 00:44:51 +08:00
rbetree
7a7bf361e3 fix: 对齐配置策略并加固书签导入
1) src/bookmark-processor.js:加固书签导入
- config/user/ 不存在时先从 config/_default/ 初始化一套完整用户配置(符合“完全替换”策略)
- 优先更新 config/user/site.yml 的 navigation,确保包含 id: bookmarks;失败再兼容旧 navigation.yml
- 无 .html 书签文件时由报错改为警告并跳过,不阻塞流程
- 导航更新日志按结果输出,不再无条件“已更新”

2) config/README.md:修正文档
- 明确配置加载为“完全替换、不合并”
- 补充首次使用建议:复制 config/_default/ 到 config/user/

3) package.json:许可证对齐
- license 从 MIT 改为 AGPL-3.0-only(与 LICENSE/README 对齐)

4) .gitignore:忽略工具目录
- 新增忽略 .serena/
2025-12-22 00:19:44 +08:00
rbetree
009fe8dd98 fix: 去除废弃的restructure命令 2025-10-26 17:21:12 +08:00
coolzr
6359829298 fix: 去除 migrate-config.js 久配置迁移工具的支持 2025-10-24 01:26:32 +08:00
coolzr
75bc6c0e39 fix: 修复clean命令 2025-10-22 14:21:15 +08:00
coolzr
a403cf8f0d feat: 优化样式 2025-10-19 20:55:38 +08:00
coolzr
6447abef3a feat: 完善MeNav浏览器扩展API规范实现 2025-10-14 19:34:47 +08:00
Zuoling Rong
9ea6cb1f09 refactor: 完成Handlebars模板组件化 2025-05-09 00:13:50 +08:00
Zuoling Rong
f3da13035f refactor: 移除旧式双文件配置支持
- 简化配置加载逻辑,仅支持模块化配置
- 移除所有处理旧式配置文件的代码
- 创建配置迁移脚本,便于用户从旧版本迁移
2025-05-05 03:30:13 +08:00
Zuoling Rong
7f82481076 整理项目结构 2025-05-01 03:34:01 +08:00
Zuoling Rong
fff63bf5ec github名修改 2025-04-30 22:04:50 +08:00
Zuoling Rong
54bf316253 Update package.json 2025-02-02 20:50:17 +08:00
Zuoling Rong
d4caa5653d 1.2.3 2025-02-02 20:45:14 +08:00
Zuoling Rong
09f493ddbc 1.0 2025-01-31 21:51:24 +08:00