更新Docker

This commit is contained in:
小蚂蚁云
2026-10-26 09:07:19 +08:00
parent fdbeae092a
commit 988123cdeb
16 changed files with 1061 additions and 140 deletions
@@ -33,13 +33,21 @@ export function stripNumberPrefix(title) {
* 输出压缩为单行、去除行内 Markdown,按中文句末标点截断(≤100 字符)。
*/
export function extractDescription(md) {
let body = String(md).replace(/^---[\s\S]*?\n---\s*/, "");
const src = String(md);
const fm = src.match(/^---\r?\n([\s\S]*?)\r?\n---/);
const body = fm ? src.slice(fm[0].length) : src;
let text = "";
const tip = body.match(/^:::\s*tip[^\n]*\n([\s\S]*?)\n:::/m);
// frontmatter description 显式声明优先(无 H1 页面的补齐手段)
const fmDesc = fm && fm[1].match(/^description:\s*(.+)$/m);
if (fmDesc) {
text = fmDesc[1].trim().replace(/^["']|["']$/g, "");
}
const tip = !text && body.match(/^:::\s*tip[^\n]*\n([\s\S]*?)\n:::/m);
if (tip) {
text = tip[1];
} else {
}
if (!text) {
const afterH1 = body.match(/^# (?!#)(.+)$/m);
if (afterH1) {
const rest = body.slice((afterH1.index ?? 0) + afterH1[0].length);
+13 -13
View File
@@ -558,19 +558,19 @@ export const zhConfig: LocaleSpecificConfig<DefaultTheme.Config> = {
text: "📄 附录",
collapsed: false,
items: [
{ text: "A. 常见问题汇总", link: "/zh/appendix/faq.html" },
{ text: "B. 数据库表结构速查", link: "/zh/appendix/database-tables.html" },
{ text: "C. 配置项速查", link: "/zh/appendix/config-reference.html" },
{ text: "D. Utility 函数速查", link: "/zh/appendix/functions.html" },
{ text: "E. API 接口速查表", link: "/zh/appendix/api-cheatsheet.html" },
{ text: "F. 中间件执行顺序", link: "/zh/appendix/middleware.html" },
{ text: "G. ModuleSpec 声明速查", link: "/zh/appendix/module-spec.html" },
{ text: "H. 前端组件速查", link: "/zh/appendix/components.html" },
{ text: "I. 前端 Store 速查", link: "/zh/appendix/stores.html" },
{ text: "J. 前端枚举速查", link: "/zh/appendix/enums.html" },
{ text: "K. 术语表", link: "/zh/appendix/glossary.html" },
{ text: "L. 贡献指南", link: "/zh/other/contributing.html" },
{ text: "M. 免责声明", link: "/zh/other/declare.html" },
{ text: "📄 A. 常见问题汇总", link: "/zh/appendix/faq.html" },
{ text: "📄 B. 数据库表结构速查", link: "/zh/appendix/database-tables.html" },
{ text: "📄 C. 配置项速查", link: "/zh/appendix/config-reference.html" },
{ text: "📄 D. Utility 函数速查", link: "/zh/appendix/functions.html" },
{ text: "📄 E. API 接口速查表", link: "/zh/appendix/api-cheatsheet.html" },
{ text: "📄 F. 中间件执行顺序", link: "/zh/appendix/middleware.html" },
{ text: "📄 G. ModuleSpec 声明速查", link: "/zh/appendix/module-spec.html" },
{ text: "📄 H. 前端组件速查", link: "/zh/appendix/components.html" },
{ text: "📄 I. 前端 Store 速查", link: "/zh/appendix/stores.html" },
{ text: "📄 J. 前端枚举速查", link: "/zh/appendix/enums.html" },
{ text: "📄 K. 术语表", link: "/zh/appendix/glossary.html" },
{ text: "📄 L. 贡献指南", link: "/zh/other/contributing.html" },
{ text: "📄 M. 免责声明", link: "/zh/other/declare.html" },
],
},
],