From 7569bea48b4a70efa792d9e8cc9fca64a3d700e1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Session=E5=B0=8F=E8=83=A1?= <102411014+SessionHu@users.noreply.github.com> Date: Wed, 28 Aug 2024 06:53:57 +0000 Subject: [PATCH] fix: try to fix memory limit --- .vuepress/config.js | 12 ++++++++++-- package.json | 2 +- 2 files changed, 11 insertions(+), 3 deletions(-) diff --git a/.vuepress/config.js b/.vuepress/config.js index 8a66f1e13b..2e90fca138 100644 --- a/.vuepress/config.js +++ b/.vuepress/config.js @@ -42,12 +42,20 @@ export default defineUserConfig({ repo: "https://github.com/SocialSisterYi/bilibili-API-collect", docsBranch: "vp-next", editLinkText: "在 GitHub 上编辑此页", - colorMode: "auto" + colorMode: "auto", + themePlugins: { + prismjs: false, + sitemap: false + } }), plugins: [ searchPlugin({}), shikiPlugin({ - lineNumbers: true + langs: [ + 'javascript', 'typescript', 'markdown', 'protobuf', 'json', 'jsonc', + 'shell', 'go', 'html', 'http', 'java', 'kotlin', 'python', 'rust', 'c', + 'c++', 'cs', 'php', 'swift' + ] }) ], extendsMarkdown: (md) => { diff --git a/package.json b/package.json index 5e6d4b1193..1d25605ee1 100644 --- a/package.json +++ b/package.json @@ -9,7 +9,7 @@ }, "scripts": { "dev": "vuepress dev", - "build": "vuepress build" + "build": "NODE_OPTIONS='--max-old-space-size=8192' vuepress build" }, "devDependencies": { "@vuepress/bundler-vite": "^2.0.0-rc.15",