From b8f9ab3f55faeb8b1303f84742f4479d700928b4 Mon Sep 17 00:00:00 2001 From: luckyasme <807254037@qq.com> Date: Tue, 4 Mar 2025 15:38:06 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E6=94=B9=E6=A0=87=E9=A2=98?= =?UTF-8?q?=EF=BC=8C=E4=BC=98=E5=8C=96title?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docs/.vitepress/src/config/home.ts | 2 +- scripts/build.js | 4 +--- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/docs/.vitepress/src/config/home.ts b/docs/.vitepress/src/config/home.ts index 0a01448..ec622fc 100644 --- a/docs/.vitepress/src/config/home.ts +++ b/docs/.vitepress/src/config/home.ts @@ -106,7 +106,7 @@ export const toolList = [ href: '/zh/Tools/AI.html', }, { - title: '圆形桌面使用', + title: '图形桌面使用', desc: '提供桌面环境的安装和使用指南,包括UKUI、DDE、XFCE、Gnome、Kiran、I3', href: '/zh/Tools/desktop.html', }, diff --git a/scripts/build.js b/scripts/build.js index 507aef6..5b35d31 100644 --- a/scripts/build.js +++ b/scripts/build.js @@ -38,8 +38,6 @@ function getMarkdownOrignalContent(str) { return str .replace(/\*\*([^*]+)\*\*/g, '$1') // 去除加粗(**) .replace(/\*([^*]+)\*/g, '$1') // 去除斜体(*) - .replace(/__([^_]+)__/g, '$1') // 去除加粗(__) - .replace(/_([^_]+)_/g, '$1') // 去除斜体(_) .replace(/\[([^\]]+)\]\([^)]+\)/g, '$1') // 去除链接 .replace(/<[^>]+>/g, ''); // 去除 HTML 标签 } @@ -251,7 +249,7 @@ async function mergeReferences(filePath) { try { // 获取 md 的 header 和 content const content = fs.readFileSync(filePath, 'utf-8'); - const { data: frontmatter } = matter(content, {}); // gray-matter 具有缓存,当传递内容是一样的时候会返回之前已经解析过的对象,需要指定第二个参数来使每次返回都是新对象。详见 https://github.com/jonschlinkert/gray-matter/issues/129 + const { data: frontmatter } = matter(content); // gray-matter 具有缓存,当传递内容是一样的时候会返回之前已经解析过的对象,需要指定第二个参数来使每次返回都是新对象。详见 https://github.com/jonschlinkert/gray-matter/issues/129 // 如果存在id,代表节点是缓存节点,已经被处理过 if (frontmatter.id) { -- Gitee