<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:media="http://search.yahoo.com/mrss/" version="2.0"><channel><title>Halo - 强大易用的开源建站工具 | 应用市场 | 源蝶文档 | 版本发布</title><link>https://www.halo.run</link><atom:link href="https://www.halo.run/feed/app-store/apps/app-056bfru6/releases.xml" rel="self" type="application/rss+xml"/><description>Halo - 强大易用的开源建站工具 | 应用市场 | 源蝶文档 | 版本发布</description><generator>Halo v2.26.1</generator><language>zh-cn</language><image><url>https://www.halo.run/upload/logo.png</url><title>Halo - 强大易用的开源建站工具 | 应用市场 | 源蝶文档 | 版本发布</title><link>https://www.halo.run</link></image><lastBuildDate>Wed, 16 Sep 2026 13:35:01 GMT</lastBuildDate><follow_challenge><feedId>69597013489248256</feedId><userId>41706424548048896</userId></follow_challenge><item><title><![CDATA[源蝶文档 1.0.0 发布]]></title><link>https://www.halo.run/store/apps/app-056bfru6/releases/app-release-1dm4gipw</link><description><![CDATA[<img src="https://www.halo.run/plugins/feed/assets/telemetry.gif?title=%E6%BA%90%E8%9D%B6%E6%96%87%E6%A1%A3%201.0.0%20%E5%8F%91%E5%B8%83&amp;url=/store/apps/app-056bfru6/releases/app-release-1dm4gipw" width="1" height="1" alt="" style="opacity:0;">
<h1 id="%E7%89%88%E6%9C%AC%E8%AF%B4%E6%98%8E" tabindex="-1">版本说明</h1>
<p>本文档记录 <strong>源蝶文档（theme-mdocs）</strong> 的版本变更。</p>
<ul>
 <li>版本号规则：遵循 <a href="https://semver.org/lang/zh-CN/">语义化版本</a>，格式为 <code>主版本.次版本.修订号</code>。</li>
 <li>版本号来源：以 <code>theme.yaml</code> 中 <code>spec.version</code> 为准，本文档按同一版本号记录。</li>
 <li>日期格式：<code>YYYY-MM-DD</code>。</li>
</ul>
<hr>
<h2 id="%5B1.0.0%5D---2026-09-12" tabindex="-1">[1.0.0] - 2026-09-12</h2>
<p>首个正式版本，可稳定用于技术文档、知识库与产品手册站点。</p>
<p><strong>主题包</strong>：<code>dist/theme-mdocs-1.0.0.zip</code>
 <br>
 <strong>适用 Halo</strong>：<code>&gt;= 2.25.0</code></p>
<h3 id="%E6%96%B0%E5%A2%9E" tabindex="-1">新增</h3>
<h4 id="%E6%96%87%E6%A1%A3%E4%BD%93%E7%B3%BB" tabindex="-1">文档体系</h4>
<ul>
 <li><strong>文档组归档</strong>：在主题设置中勾选一级分类作为「文档组」，归档页只展示这些分类，普通分类不会混入文档体系。</li>
 <li><strong>多级目录树</strong>：左侧导航按 Halo 分类树递归渲染，父子分类可折叠 / 展开，支持默认全展开或仅展开当前路径。</li>
 <li><strong>文档统计</strong>：文档组标题下显示「共 X 篇文章」。</li>
 <li><strong>右侧 TOC（本页目录）</strong>：自动解析正文 <code>h2</code> / <code>h3</code> 生成目录，使用 <code>IntersectionObserver</code> 高亮当前阅读位置。</li>
 <li><strong>上下篇导航</strong>：同一分类内自动前后翻页。</li>
 <li><strong>复制 Markdown</strong>：内容页顶部工具栏可一键复制原始 Markdown，并支持生成当前页面的 Markdown 链接。</li>
</ul>
<h4 id="docsme-%E6%8F%92%E4%BB%B6%E9%80%82%E9%85%8D" tabindex="-1">Docsme 插件适配</h4>
<ul>
 <li>新增文档中心聚合页（<code>docs.html</code>）、项目目录页（<code>doc-catalog.html</code>）、文档详情页（<code>doc.html</code>）。</li>
 <li>复用 Docsme 插件自身的导航树、内容头、版本切换与上下篇模块。</li>
 <li>左侧导航可折叠展开，可配置默认全展开、是否显示文档数量。</li>
 <li>支持多版本文档切换。</li>
</ul>
<h4 id="minidocs-%E6%8F%92%E4%BB%B6%E9%80%82%E9%85%8D" tabindex="-1">MiniDocs 插件适配</h4>
<ul>
 <li>新增知识库中心页（<code>minidocs-docs.html</code>）与页内嵌阅读视图（<code>minidocs-reader.html</code>）。</li>
 <li>点击知识库卡片无需跳转即可进入阅读视图，支持无刷新切换文档、浏览器前进后退、URL 参数（<code>?kb=xx&amp;docSlug=xx</code>）直达。</li>
 <li>阅读视图支持知识库封面 / 文档数 / 更新时间、文档树折叠、TOC、点赞、浏览次数、分享链接与复制 Markdown。</li>
 <li>自动处理无权限场景（<code>401</code> / <code>403</code> 时提示登录）。</li>
</ul>
<h4 id="%E5%86%85%E5%AE%B9%E9%A1%B5%E6%93%8D%E4%BD%9C%E5%B7%A5%E5%85%B7%E6%A0%8F" tabindex="-1">内容页操作工具栏</h4>
<ul>
 <li>固定项：复制 Markdown、复制 Markdown 链接、点赞（Docsme / MiniDocs 文档）、分享（复制当前链接）。</li>
 <li>扩展项：「操作下拉菜单组」中可添加 <strong>在 ChatGPT 中打开</strong>、<strong>在 Claude 中打开</strong>、<strong>自定义</strong>（自定义 SVG 图标、标题与链接）。</li>
</ul>
<h4 id="%E4%B8%BB%E9%A2%98%E4%B8%8E%E5%A4%96%E8%A7%82" tabindex="-1">主题与外观</h4>
<ul>
 <li><strong>明暗主题</strong>：默认跟随系统，支持手动切换并记忆（<code>localStorage: mdocs-theme</code>）。</li>
 <li><strong>昼 / 夜 Logo</strong>：页眉与页脚可分别配置浅色、深色 Logo，切换主题时自动替换。</li>
 <li><strong>主题色</strong>：可设置全局主色；留空或为黑白灰时自动按明暗主题使用黑 / 白。</li>
 <li><strong>全局样式</strong>：字体大小、全局圆角、页面背景图或背景色。</li>
 <li><strong>背景图遮罩</strong>：快速开始卡片支持开启色彩遮罩并自定义遮罩颜色。</li>
 <li><strong>宽度体系</strong>：由 <code>--mdocs-width-content</code>（1080px）与 <code>--mdocs-width-page</code>（1400px）两个 CSS 变量统一控制。</li>
</ul>
<h4 id="%E9%A1%B5%E7%9C%89%E4%B8%8E%E9%A1%B5%E8%84%9A" tabindex="-1">页眉与页脚</h4>
<ul>
 <li>页眉：站点 Logo / 名称、左侧导航按钮组（最多 3 个）、主菜单下拉、搜索入口（需 <code>PluginSearchWidget</code>，支持 <code>⌘K</code>）、自定义图标按钮组（最多 6 个）、明暗切换、用户菜单（登录 / 用户中心 / 控制台 / 退出）。</li>
 <li>页脚：多列菜单（最多 4 个 Halo 菜单）、独立页脚 Logo、站点名称、版权信息、ICP 备案与公安联网备案。</li>
</ul>
<h4 id="%E9%A6%96%E9%A1%B5%E6%A8%A1%E5%9D%97%EF%BC%88%E5%8F%AF%E6%8B%96%E6%8B%BD%E6%8E%92%E5%BA%8F%EF%BC%89" tabindex="-1">首页模块（可拖拽排序）</h4>
<table>
 <thead>
  <tr>
   <th>模块</th>
   <th>类型值</th>
   <th>说明</th>
  </tr>
 </thead>
 <tbody>
  <tr>
   <td>主视觉</td>
   <td><code>hero-carousel</code></td>
   <td>标题 / 副标题 / 主次按钮 / 安装方式标签 / 轮播图（自动播放、拖拽切换、导航点）</td>
  </tr>
  <tr>
   <td>快速开始</td>
   <td><code>quick-start</code></td>
   <td>主推大卡 + 侧边卡片，支持背景图与色彩遮罩</td>
  </tr>
  <tr>
   <td>卡片模块</td>
   <td><code>cards</code></td>
   <td><code>type1</code> 背景图样式 / <code>type3</code> 图标简洁样式</td>
  </tr>
  <tr>
   <td>文章分类</td>
   <td><code>ocean-categories</code></td>
   <td>按分类生成卡片，支持主色、封面与自定义底部代码</td>
  </tr>
  <tr>
   <td>菜单模块</td>
   <td><code>ocean-menu</code></td>
   <td>展示指定菜单的前 4 个一级菜单项</td>
  </tr>
  <tr>
   <td>推荐文章</td>
   <td><code>ocean-posts</code></td>
   <td>按标签或分类取前 6 篇</td>
  </tr>
  <tr>
   <td>Docsme 文档项目</td>
   <td><code>plugin-docsme-module</code></td>
   <td>可自动读取插件归档卡片或手动添加</td>
  </tr>
  <tr>
   <td>MiniDocs 知识库</td>
   <td><code>plugin-minidocs-module</code></td>
   <td>可自动读取插件归档卡片或手动添加</td>
  </tr>
 </tbody>
</table>
<h4 id="%E8%87%AA%E5%AE%9A%E4%B9%89%E6%A8%A1%E6%9D%BF" tabindex="-1">自定义模板</h4>
<table>
 <thead>
  <tr>
   <th>模板名</th>
   <th>文件</th>
   <th>适用位置</th>
  </tr>
 </thead>
 <tbody>
  <tr>
   <td>文档</td>
   <td><code>post_documentation.html</code></td>
   <td>文章 → 新建</td>
  </tr>
  <tr>
   <td>docsme-docs</td>
   <td><code>docsme-docs.html</code></td>
   <td>页面 → 新建</td>
  </tr>
  <tr>
   <td>minidocs-docs</td>
   <td><code>minidocs-docs.html</code></td>
   <td>页面 → 新建</td>
  </tr>
 </tbody>
</table>
<h4 id="%E5%85%B6%E4%BB%96" tabindex="-1">其他</h4>
<ul>
 <li>响应式布局，移动端提供抽屉式目录与汉堡菜单。</li>
 <li>使用语义化标签与 <code>aria-*</code> 属性，兼顾无障碍与 SEO 基础。</li>
 <li>全站 CSS 变量驱动的设计令牌，便于二次定制。</li>
</ul>
<h3 id="%E7%8E%AF%E5%A2%83%E8%A6%81%E6%B1%82" tabindex="-1">环境要求</h3>
<table>
 <thead>
  <tr>
   <th>依赖</th>
   <th>版本 / 说明</th>
  </tr>
 </thead>
 <tbody>
  <tr>
   <td>Halo</td>
   <td><code>&gt;= 2.25.0</code></td>
  </tr>
  <tr>
   <td>Node.js</td>
   <td><code>^20.19.0</code> 或 <code>&gt;= 22.12.0</code>（仅本地构建需要）</td>
  </tr>
  <tr>
   <td>pnpm</td>
   <td><code>10.x</code>（<code>package.json</code> 已声明 <code>packageManager: pnpm@10.33.0</code>）</td>
  </tr>
 </tbody>
</table>
<p>可选插件（未安装时对应入口自动隐藏，不影响主题其它功能）：</p>
<table>
 <thead>
  <tr>
   <th>插件</th>
   <th>标识</th>
   <th>作用</th>
  </tr>
 </thead>
 <tbody>
  <tr>
   <td>Docsme</td>
   <td><code>plugin-docsme</code></td>
   <td>文档中心 / 项目目录 / 文档详情适配</td>
  </tr>
  <tr>
   <td>MiniDocs</td>
   <td><code>halo-plugin-minidocs</code></td>
   <td>知识库归档与内嵌阅读</td>
  </tr>
  <tr>
   <td>搜索组件</td>
   <td><code>PluginSearchWidget</code></td>
   <td>页眉搜索入口与 <code>⌘K</code> 快捷键</td>
  </tr>
 </tbody>
</table>
<h3 id="%E4%BD%BF%E7%94%A8%E9%A1%BB%E7%9F%A5" tabindex="-1">使用须知</h3>
<ul>
 <li>本项目为<strong>构建型主题</strong>：请修改 <code>src/</code> 下的模板与资源后执行 <code>pnpm build</code>，不要直接编辑 <code>templates/</code> 下的生成文件。</li>
 <li>后台「外观 → 主题」中修改 <code>theme.yaml</code> 后，需点击「<strong>重载主题配置</strong>」才会生效。</li>
 <li>主题目录名必须为 <code>theme-mdocs</code>，需与 <code>theme.yaml</code> 的 <code>metadata.name</code> 保持一致。</li>
 <li>主题设置中所有涉及跳转的选项默认值为空，<strong>留空时不会输出无效链接</strong>；备案号留空时备案栏整体不显示。</li>
 <li>默认预置了演示模块，正式建站时请替换「快速开始」「卡片模块」中的示例文案与示例图片。</li>
</ul>
<h3 id="%E9%9A%90%E7%A7%81" tabindex="-1">隐私</h3>
<ul>
 <li>主题不采集、不上传任何站点或访问者数据；仅在浏览器本地使用 <code>localStorage</code> 记忆明暗主题偏好（键名 <code>mdocs-theme</code>）。</li>
 <li>页面字体使用访问者系统自带字体栈，不下载、不内嵌第三方字体。</li>
</ul>
<h3 id="%E8%AE%B8%E5%8F%AF" tabindex="-1">许可</h3>
<ul>
 <li>以 <strong>MIT</strong> 许可发布，许可证全文见根目录 <a href="https://www.halo.run/LICENSE"><code>LICENSE</code></a>，主题元信息见 <code>theme.yaml</code> 的 <code>spec.license</code>。</li>
</ul>
<hr>
<h2 id="%E5%90%8E%E7%BB%AD%E7%89%88%E6%9C%AC" tabindex="-1">后续版本</h2>
<p>新版本发布时，在本文件顶部按同样格式追加一节，并同步更新 <code>theme.yaml</code> 的 <code>spec.version</code> 与 <code>README.md</code> 中的版本徽章与兼容性表格。</p>
<hr>
<p><a href="https://www.halo.run/store/apps/app-056bfru6/releases/app-release-1dm4gipw">查看版本详情</a></p>]]></description><guid isPermaLink="false">store.halo.run/Release/app-release-1dm4gipw</guid><pubDate>Mon, 14 Sep 2026 09:48:03 GMT</pubDate></item></channel></rss>