diff --git a/docs/.vitepress/src/config/home.ts b/docs/.vitepress/src/config/home.ts index 0a01448fa4a8dea21d3b24611221b2dc5e699e99..ec622fcaba1039a281d3ebf81c72cea469d091ee 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 507aef6ba1fdaf040a9e4b808fe5d7c35e97c90a..5b35d31cbd4e5f5364748a6184a5fee3e0ebae43 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) {