220 Commits

Author SHA1 Message Date
e0e60ea060 Build MeNav site 2026-04-22 12:47:22 +08:00
github-actions[bot]
efaddf52bd Merge pull request #65 from rbetree/dependabot/npm_and_yarn/main/npm-minor-patch-95ed20c41c
chore(deps-dev): bump prettier from 3.8.2 to 3.8.3 in the npm-minor-patch group
2026-04-20 01:14:35 +00:00
dependabot[bot]
f9986da498 chore(deps-dev): bump prettier in the npm-minor-patch group
Bumps the npm-minor-patch group with 1 update: [prettier](https://github.com/prettier/prettier).


Updates `prettier` from 3.8.2 to 3.8.3
- [Release notes](https://github.com/prettier/prettier/releases)
- [Changelog](https://github.com/prettier/prettier/blob/main/CHANGELOG.md)
- [Commits](https://github.com/prettier/prettier/compare/3.8.2...3.8.3)

---
updated-dependencies:
- dependency-name: prettier
  dependency-version: 3.8.3
  dependency-type: direct:development
  update-type: version-update:semver-patch
  dependency-group: npm-minor-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-04-20 01:14:22 +00:00
rbetree
cb04e21428 docs: add Vercel deploy + protection notes (#39) 2026-04-15 04:20:11 +08:00
github-actions[bot]
42885601d1 Merge pull request #64 from rbetree/dependabot/npm_and_yarn/main/npm-minor-patch-482c5ae6e5
chore(deps-dev): bump prettier from 3.8.1 to 3.8.2 in the npm-minor-patch group
2026-04-13 01:14:46 +00:00
dependabot[bot]
338dc0db50 chore(deps-dev): bump prettier in the npm-minor-patch group
Bumps the npm-minor-patch group with 1 update: [prettier](https://github.com/prettier/prettier).


Updates `prettier` from 3.8.1 to 3.8.2
- [Release notes](https://github.com/prettier/prettier/releases)
- [Changelog](https://github.com/prettier/prettier/blob/main/CHANGELOG.md)
- [Commits](https://github.com/prettier/prettier/compare/3.8.1...3.8.2)

---
updated-dependencies:
- dependency-name: prettier
  dependency-version: 3.8.2
  dependency-type: direct:development
  update-type: version-update:semver-patch
  dependency-group: npm-minor-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-04-13 01:14:36 +00:00
github-actions[bot]
e2c8eeeeb8 Merge pull request #63 from rbetree/dependabot/npm_and_yarn/main/npm-minor-patch-c39889ec24
chore(deps-dev): bump esbuild from 0.27.5 to 0.28.0 in the npm-minor-patch group
2026-04-06 01:14:09 +00:00
dependabot[bot]
47787317d5 chore(deps-dev): bump esbuild in the npm-minor-patch group
Bumps the npm-minor-patch group with 1 update: [esbuild](https://github.com/evanw/esbuild).


Updates `esbuild` from 0.27.5 to 0.28.0
- [Release notes](https://github.com/evanw/esbuild/releases)
- [Changelog](https://github.com/evanw/esbuild/blob/main/CHANGELOG.md)
- [Commits](https://github.com/evanw/esbuild/compare/v0.27.5...v0.28.0)

---
updated-dependencies:
- dependency-name: esbuild
  dependency-version: 0.28.0
  dependency-type: direct:development
  update-type: version-update:semver-minor
  dependency-group: npm-minor-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-04-06 01:13:59 +00:00
github-actions[bot]
5d424cfe5c Merge pull request #62 from rbetree/dependabot/github_actions/main/github-actions-minor-patch-20b45616f2
ci(deps): bump dependabot/fetch-metadata from 2.3.0 to 2.5.0 in the github-actions-minor-patch group
2026-04-02 06:26:53 +00:00
dependabot[bot]
5c33c5608a ci(deps): bump dependabot/fetch-metadata
Bumps the github-actions-minor-patch group with 1 update: [dependabot/fetch-metadata](https://github.com/dependabot/fetch-metadata).


Updates `dependabot/fetch-metadata` from 2.3.0 to 2.5.0
- [Release notes](https://github.com/dependabot/fetch-metadata/releases)
- [Commits](d7267f607e...21025c705c)

---
updated-dependencies:
- dependency-name: dependabot/fetch-metadata
  dependency-version: 2.5.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: github-actions-minor-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-04-02 06:26:42 +00:00
rbetree
dc4950a8b4 Merge branch 'main' of https://github.com/rbetree/menav 2026-04-02 14:25:48 +08:00
rbetree
d4ceae64b9 ci(dependabot): 忽略 actions major 更新 2026-04-02 14:15:09 +08:00
github-actions[bot]
ff3cca4b8e Merge pull request #60 from rbetree/dependabot/npm_and_yarn/main/npm-minor-patch-33ee24a25e
chore(deps): bump the npm-minor-patch group with 6 updates
2026-04-02 06:06:31 +00:00
dependabot[bot]
bde1f5ef67 chore(deps): bump the npm-minor-patch group with 6 updates
Bumps the npm-minor-patch group with 6 updates:

| Package | From | To |
| --- | --- | --- |
| [handlebars](https://github.com/handlebars-lang/handlebars.js) | `4.7.8` | `4.7.9` |
| [markdown-it](https://github.com/markdown-it/markdown-it) | `14.1.0` | `14.1.1` |
| [esbuild](https://github.com/evanw/esbuild) | `0.27.2` | `0.27.5` |
| [lint-staged](https://github.com/lint-staged/lint-staged) | `16.2.7` | `16.4.0` |
| [prettier](https://github.com/prettier/prettier) | `3.7.4` | `3.8.1` |
| [serve](https://github.com/vercel/serve) | `14.2.5` | `14.2.6` |


Updates `handlebars` from 4.7.8 to 4.7.9
- [Release notes](https://github.com/handlebars-lang/handlebars.js/releases)
- [Changelog](https://github.com/handlebars-lang/handlebars.js/blob/v4.7.9/release-notes.md)
- [Commits](https://github.com/handlebars-lang/handlebars.js/compare/v4.7.8...v4.7.9)

Updates `markdown-it` from 14.1.0 to 14.1.1
- [Changelog](https://github.com/markdown-it/markdown-it/blob/master/CHANGELOG.md)
- [Commits](https://github.com/markdown-it/markdown-it/compare/14.1.0...14.1.1)

Updates `esbuild` from 0.27.2 to 0.27.5
- [Release notes](https://github.com/evanw/esbuild/releases)
- [Changelog](https://github.com/evanw/esbuild/blob/main/CHANGELOG-2025.md)
- [Commits](https://github.com/evanw/esbuild/compare/v0.27.2...v0.27.5)

Updates `lint-staged` from 16.2.7 to 16.4.0
- [Release notes](https://github.com/lint-staged/lint-staged/releases)
- [Changelog](https://github.com/lint-staged/lint-staged/blob/main/CHANGELOG.md)
- [Commits](https://github.com/lint-staged/lint-staged/compare/v16.2.7...v16.4.0)

Updates `prettier` from 3.7.4 to 3.8.1
- [Release notes](https://github.com/prettier/prettier/releases)
- [Changelog](https://github.com/prettier/prettier/blob/main/CHANGELOG.md)
- [Commits](https://github.com/prettier/prettier/compare/3.7.4...3.8.1)

Updates `serve` from 14.2.5 to 14.2.6
- [Release notes](https://github.com/vercel/serve/releases)
- [Changelog](https://github.com/vercel/serve/blob/main/CHANGELOG.md)
- [Commits](https://github.com/vercel/serve/compare/v14.2.5...v14.2.6)

---
updated-dependencies:
- dependency-name: handlebars
  dependency-version: 4.7.9
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: npm-minor-patch
- dependency-name: markdown-it
  dependency-version: 14.1.1
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: npm-minor-patch
- dependency-name: esbuild
  dependency-version: 0.27.5
  dependency-type: direct:development
  update-type: version-update:semver-patch
  dependency-group: npm-minor-patch
- dependency-name: lint-staged
  dependency-version: 16.4.0
  dependency-type: direct:development
  update-type: version-update:semver-minor
  dependency-group: npm-minor-patch
- dependency-name: prettier
  dependency-version: 3.8.1
  dependency-type: direct:development
  update-type: version-update:semver-minor
  dependency-group: npm-minor-patch
- dependency-name: serve
  dependency-version: 14.2.6
  dependency-type: direct:development
  update-type: version-update:semver-patch
  dependency-group: npm-minor-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-04-02 06:06:18 +00:00
rbetree
f2e6876bf4 ci(dependabot): 配置依赖自动更新和自动合并 2026-04-02 14:05:01 +08:00
rbetree
f270bbd685 feat: stage sidebar submenu panel visibility 2026-03-28 15:29:33 +08:00
rbetree
0bd2090d74 fix: hide submenu when sidebar is collapsed 2026-03-28 14:32:21 +08:00
rbetree
f45df870d7 refactor(docker): simplify to single compose + dynamic build default 2026-02-20 00:52:23 +08:00
rbetree
b2aeb0b355 docs: move changelog out of README 2026-02-19 19:27:30 +08:00
rbetree
ebf7ebf14a ci(docker): publish ghcr latest and release tags only 2026-02-19 19:09:54 +08:00
rbetree
eea801bef3 feat(docker): add production-ready container deployment 2026-02-19 17:53:48 +08:00
rbetree
cc48a02676 refactor: 对原本的过长style.css进行拆分 2026-01-24 23:20:05 +08:00
rbetree
ca09df835d fix: 修复githubactions的书签文件选择逻辑 2026-01-24 23:00:14 +08:00
rbetree
50a416ef8e feat: 微调样式和配色 2026-01-24 22:02:13 +08:00
rbetree
b457b26c04 feat: 首页添加时间和todo模块 2026-01-22 15:08:33 +08:00
rbetree
e7a4547027 fix: 给侧边栏submenu-header添加一致的过渡动画 2026-01-21 19:48:05 +08:00
rbetree
1625f7342c feat: 调整页面顶部区域&重构项目页热力图&优化markdown内容页 2026-01-21 19:21:51 +08:00
rbetree
280d376bac feat(templates):新增 Markdown 内容页支持
新增 template: content:构建期使用 markdown-it 将本地Markdown 渲染为 HTML(禁用 raw HTML/图片),并按MeNav的URLscheme白名单策略对链接做安全降级
2026-01-20 18:23:32 +08:00
rbetree
f773b9e290 feat: 收紧 gap/padding 2026-01-19 22:34:11 +08:00
rbetree
58f1f16a7c refactor(ci): 去除ci工作流的prettier格式检查 2026-01-17 22:24:41 +08:00
rbetree
c6937429b8 feat(ci): 支持禁用 GitHub Pages 部署
为 GitHub Pages 部署步骤添加条件判断,通过 ENABLE_GITHUB_PAGES 变量控制
2026-01-17 21:10:02 +08:00
rbetree
06bbf3336c chore: 排除文档文件的格式检查 2026-01-17 02:35:07 +08:00
rbetree
0c6b3a68e1 refactor: 重构侧边栏布局,新增独立子菜单面板
Fixes: #36
2026-01-17 02:01:50 +08:00
rbetree
1049566937 feat(theme): 新增主题模式配置,支持跟随系统
- 新增 site.theme.mode 配置(dark/light/system)
- 支持 prefers-color-scheme 系统主题跟随
- 用户手动切换后停止跟随并持久化

ref #36
2026-01-17 00:59:05 +08:00
rbetree
d19c4da51d fix(icons): faviconV2 加入 drop_404_icon=true 参数避免404占位图以触发回退
- helpers:faviconV2Url / faviconFallbackUrl 统一追加 drop_404_icon=true
- runtime:新增站点的 faviconV2 com/cn URL 同步追加该参数
- docs:更新模板与 helper 文档示例
- test:新增用例防止参数回归
2026-01-16 22:52:39 +08:00
rbetree
0e154bc43e fix(cli): dev/dev:offline Ctrl-C 退出防重入并支持二次强制退出 2026-01-16 20:51:10 +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
89c1c0330b refactor: 统一错误处理机制
- 引入 ConfigError/TemplateError/BuildError/FileError 与 wrapAsyncError,统一错误输出
- generator 入口接入 wrapAsyncError,确保命令行执行路径一致
- 兜底逻辑使用 instanceof,保留 BuildError/TemplateError 上下文信息
- 合并格式化提交(仅缩进/换行调整)
2026-01-16 16:34:46 +08:00
rbetree
1a90f8fbe3 refactor: 模块化重构 generator 和 runtime 2026-01-15 22:12:52 +08:00
rbetree
bcfa6e6316 feat: 优化书签工作流步骤 2026-01-07 21:42:00 +08:00
rbetree
8f81b430b9 feat(extension): 缩减配置注入并输出 menav-config.json
- 构建:生成 dist/menav-config.json 供扩展按需加载
- 页面:menav-config-data 仅注入扩展元信息(configUrl/pageTemplates/icons/homePageId/allowedSchemes)
- 运行时:模板判定优先 pageTemplates,兼容旧 cfg.data[pageId].template
- 文档:更新 README 的扩展接口说明
2026-01-07 19:35:20 +08:00
rbetree
a3465fe4a1 fix: 模板/组件扫描显式排序以保证构建确定性
- loadHandlebarsTemplates:对 templates/layouts 与 templates/components 的 .hbs 列表先 filter+sort 再注册 partial
- 避免 fs.readdirSync 在不同文件系统/平台下返回顺序不一致导致的潜在产物漂移
2026-01-07 17:48:57 +08:00
rbetree
efd1683e2b feat(router): 支持?page=深链接&错误路由回退
- 导航/子菜单 href 统一为 ?page=<id>[#<slug>],支持复制/新开直达
- 启动时解析 ?page= 并同步导航高亮;子菜单跳转可组合 hash 定位分类
- 输入无效 pageId 时自动纠正 URL 到首页(replaceState,避免“内容回退但地址栏仍错误”)
- 构建生成 dist/404.html:将 /<id>(或 /<repo>/<id>)回跳到 /?page=<id> 并保留 hash
2026-01-07 17:29:48 +08:00
rbetree
1d158aabd7 feat: 将卡片悬浮提示固定在卡片下方或上方 2026-01-05 23:16:28 +08:00
rbetree
3e78332b54 style: 优化移动端ui逻辑与交互一致性
- 移动端布局:站点卡片统一两列;卡片改为横排左对齐,标题/描述省略防溢出
- 移动端留白:缩短分类卡片与页面边缘的左右间距,扩大可用宽度
- 搜索交互:搜索框常驻置顶;搜索按钮未删除仅隐藏;移除“搜索面板”切换/遮罩逻辑,按钮点击仅聚焦输入框
- 顶部栏:搜索框与菜单按钮同排;菜单按钮磁贴与搜索框风格/高度更契合;加入 safe-area 适配并修复横向溢出
- 侧边栏:移动端限制宽度并隐藏横向溢出,避免撑出右侧
- 磁贴统一:右下角主题/分类按钮在移动端与桌面端统一为同款磨砂卡片风格(含 safe-area 偏移)
2026-01-05 22:40:02 +08:00
rbetree
ccd18f5ac5 feat: 移除移动端的站点卡片悬停提示功能 2026-01-05 15:56:21 +08:00
rbetree
8a1b6a2d90 refactor: 去除顶部进度条&恢复滚动条 2026-01-04 22:44:16 +08:00
rbetree
a9275ffc6d feat: 搜索框聚焦时发光 2026-01-04 22:21:21 +08:00
rbetree
82d6341c00 chore: 使用 Prettier 统一代码风格 2026-01-04 21:07:07 +08:00