vuepress-theme-plume/assets/questions-jWT1OPPA.js

30 lines
26 KiB
JavaScript

import{$ as e,B as t,P as n,_ as r,f as i,g as a,h as o,l as s}from"./runtime-core.esm-bundler-CZvn3YaB.js";import{t as c}from"./plugin-vue_export-helper-CxTVcLa7.js";var l=JSON.parse(`{"path":"/en/faq/","title":"Frequently Asked Questions","lang":"en-US","frontmatter":{"title":"Frequently Asked Questions","createTime":"2025/10/08 08:47:36","permalink":"/en/faq/","article":false,"description":"This document primarily covers common issues and solutions you might encounter while using the theme. If you encounter any problems, you can first check the content below to see...","head":[["script",{"type":"application/ld+json"},"{\\"@context\\":\\"https://schema.org\\",\\"@type\\":\\"Article\\",\\"headline\\":\\"Frequently Asked Questions\\",\\"image\\":[\\"\\"],\\"dateModified\\":\\"2026-02-15T04:24:31.000Z\\",\\"author\\":[]}"],["meta",{"property":"og:url","content":"https://theme-plume.vuejs.press/en/faq/"}],["meta",{"property":"og:site_name","content":"Plume Theme"}],["meta",{"property":"og:title","content":"Frequently Asked Questions"}],["meta",{"property":"og:description","content":"This document primarily covers common issues and solutions you might encounter while using the theme. If you encounter any problems, you can first check the content below to see..."}],["meta",{"property":"og:type","content":"article"}],["meta",{"property":"og:locale","content":"en-US"}],["meta",{"property":"og:locale:alternate","content":"zh-CN"}],["meta",{"property":"og:updated_time","content":"2026-02-15T04:24:31.000Z"}],["meta",{"property":"article:modified_time","content":"2026-02-15T04:24:31.000Z"}],["link",{"rel":"alternate","hreflang":"zh-cn","href":"https://theme-plume.vuejs.press/faq/"}]]},"readingTime":{"minutes":3,"words":901},"git":{"createdTime":1759995965000,"updatedTime":1771129471000,"contributors":[{"name":"pengzhanbo","username":"pengzhanbo","email":"volodymyr@foxmail.com","commits":2,"avatar":"https://avatars.githubusercontent.com/pengzhanbo?v=4","url":"https://github.com/pengzhanbo"}],"changelog":[{"hash":"479680bba6e0ecbfb0121ae2109b7b5e45b7d1f8","time":1771129471000,"email":"volodymyr@foxmail.com","author":"pengzhanbo","message":"docs: update docs"},{"hash":"385059f214cb07fc9a098859e889432fb81f998b","time":1759995965000,"email":"volodymyr@foxmail.com","author":"pengzhanbo","message":"docs: update en docs (#708)"}]},"autoDesc":true,"filePathRelative":"en/questions.md","headers":[],"bulletin":false}`),u={name:`questions.md`},d={class:`code-block-title`,"data-title":`post.md`},f={class:`code-block-title-bar`},p={class:`title`},m={class:`code-block-title`,"data-title":`.vuepress/config.ts`},h={class:`code-block-title-bar`},g={class:`title`},_={class:`vp-steps`};function v(c,l,u,v,y,b){let x=t(`VPIcon`),S=t(`CodeTabs`),C=t(`VPLink`);return n(),i(`div`,null,[l[20]||=o(`<p>This document primarily covers common issues and solutions you might encounter while using the theme.</p><p>If you encounter any problems, you can first check the content below to see if there are related issues and solutions.</p><p>If you don&#39;t find what you&#39;re looking for, you can start a discussion with us via GitHub <a href="https://github.com/pengzhanbo/vuepress-theme-plume/discussions/new?category=q-a" target="_blank" rel="noopener noreferrer">Discussions</a>.</p><p>If you&#39;re certain that there&#39;s indeed an issue, please <a href="https://github.com/pengzhanbo/vuepress-theme-plume/issues/new?assignees=pengzhanbo&amp;labels=bug&amp;projects=&amp;template=bug-report.zh-CN.yml&amp;title=%5BBug%5D" target="_blank" rel="noopener noreferrer">Open an issue</a> on GitHub. In the issue, describe the specific details of the problem and, if necessary, try to provide a minimal reproduction package. We will address it as soon as possible.</p><details class="hint-container details"><summary>What should I pay attention to when starting a discussion or raising an issue?</summary><p>We welcome you to start discussions or ask any questions, regardless of how simple they may seem. Asking questions actively is good. However, please ensure the following three points:</p><ol><li><p>You have already attempted to search the relevant documentation.</p></li><li><p>You provide a detailed description in your discussion.</p></li><li><p>You are not asking questions unrelated to VuePress, nor are you seeking technical support for custom implementations.</p><p>We will not answer questions like &quot;How can I use a specific feature of the theme in isolation in my own project?&quot; or &quot;How can I implement a specific feature of the theme in my own project?&quot;.</p></li></ol></details><h2 id="how-to-update-the-theme" tabindex="-1"><a class="header-anchor" href="#how-to-update-the-theme"><span>How to update the theme?</span></a></h2><p>You can update the theme using the <code>vp-update</code> command.</p><p><code>vp-update</code> is a CLI tool maintained by the VuePress team. It helps you check for the latest versions of VuePress-related themes, plugins, etc., within your project and automatically installs the dependencies for you.</p><p>Copy and run the following command in your project:</p>`,9),r(S,{id:`0`,data:[{id:`pnpm`},{id:`yarn`},{id:`npm`}],"tab-id":`npm-to-pnpm-yarn-npm`},{title0:e(({value:e,isActive:t})=>[r(x,{provider:`iconify`,name:`vscode-icons:file-type-light-pnpm`}),l[0]||=s(`span`,null,`pnpm`,-1)]),title1:e(({value:e,isActive:t})=>[r(x,{provider:`iconify`,name:`vscode-icons:file-type-yarn`}),l[1]||=s(`span`,null,`yarn`,-1)]),title2:e(({value:e,isActive:t})=>[r(x,{provider:`iconify`,name:`logos:npm-icon`}),l[2]||=s(`span`,null,`npm`,-1)]),tab0:e(({value:e,isActive:t})=>[...l[3]||=[s(`div`,{class:`language-sh`,"data-highlighter":`shiki`,"data-ext":`sh`,style:{"--shiki-light":`#393a34`,"--shiki-dark":`#dbd7caee`,"--shiki-light-bg":`#ffffff`,"--shiki-dark-bg":`#121212`}},[s(`pre`,{class:`shiki shiki-themes vitesse-light vitesse-dark vp-code`},[s(`code`,{class:`language-sh`},[s(`span`,{class:`line`},[s(`span`,{style:{"--shiki-light":`#59873A`,"--shiki-dark":`#80A665`}},`pnpm`),s(`span`,{style:{"--shiki-light":`#B56959`,"--shiki-dark":`#C98A7D`}},` dlx`),s(`span`,{style:{"--shiki-light":`#B56959`,"--shiki-dark":`#C98A7D`}},` vp-update`)])])])],-1)]]),tab1:e(({value:e,isActive:t})=>[...l[4]||=[s(`div`,{class:`language-sh`,"data-highlighter":`shiki`,"data-ext":`sh`,style:{"--shiki-light":`#393a34`,"--shiki-dark":`#dbd7caee`,"--shiki-light-bg":`#ffffff`,"--shiki-dark-bg":`#121212`}},[s(`pre`,{class:`shiki shiki-themes vitesse-light vitesse-dark vp-code`},[s(`code`,{class:`language-sh`},[s(`span`,{class:`line`},[s(`span`,{style:{"--shiki-light":`#59873A`,"--shiki-dark":`#80A665`}},`yarn`),s(`span`,{style:{"--shiki-light":`#B56959`,"--shiki-dark":`#C98A7D`}},` dlx`),s(`span`,{style:{"--shiki-light":`#B56959`,"--shiki-dark":`#C98A7D`}},` vp-update`)])])])],-1)]]),tab2:e(({value:e,isActive:t})=>[...l[5]||=[s(`div`,{class:`language-sh`,"data-highlighter":`shiki`,"data-ext":`sh`,style:{"--shiki-light":`#393a34`,"--shiki-dark":`#dbd7caee`,"--shiki-light-bg":`#ffffff`,"--shiki-dark-bg":`#121212`}},[s(`pre`,{class:`shiki shiki-themes vitesse-light vitesse-dark vp-code`},[s(`code`,{class:`language-sh`},[s(`span`,{class:`line`},[s(`span`,{style:{"--shiki-light":`#59873A`,"--shiki-dark":`#80A665`}},`npx`),s(`span`,{style:{"--shiki-light":`#B56959`,"--shiki-dark":`#C98A7D`}},` vp-update`)])])])],-1)]]),_:1}),l[21]||=o(`<h2 id="why-don-t-new-features-take-effect-after-updating-the-theme-version" tabindex="-1"><a class="header-anchor" href="#why-don-t-new-features-take-effect-after-updating-the-theme-version"><span>Why don&#39;t new features take effect after updating the theme version?</span></a></h2><p>Because VuePress takes a long time to fully compile all <code>markdown</code> files in the source directory when starting the dev server, the theme implements caching for <code>markdown</code> compilation to improve startup speed. After updating the theme and restarting the dev server, if the <code>markdown</code> files in the source directory haven&#39;t changed, the compilation is skipped and the cache is used directly. This can cause new features related to markdown not to take effect.</p><p><strong>Simply delete the cache files and restart</strong>:</p><ol><li><p>Method 1: Directly delete the <code>.vuepress/.cache</code> directory.</p></li><li><p>Method 2: Add the <code>--clean-cache</code> parameter when starting the dev server command:</p><div class="language-sh" data-highlighter="shiki" data-ext="sh" style="--shiki-light:#393a34;--shiki-dark:#dbd7caee;--shiki-light-bg:#ffffff;--shiki-dark-bg:#121212;"><pre class="shiki shiki-themes vitesse-light vitesse-dark vp-code"><code class="language-sh"><span class="line"><span style="--shiki-light:#59873A;--shiki-dark:#80A665;">vuepress</span><span style="--shiki-light:#B56959;--shiki-dark:#C98A7D;"> dev</span><span style="--shiki-light:#B56959;--shiki-dark:#C98A7D;"> docs</span><span style="--shiki-light:#A65E2B;--shiki-dark:#C99076;"> --clean-cache</span></span></code></pre></div></li></ol><h2 id="why-don-t-changes-to-theme-plugin-configurations-take-effect" tabindex="-1"><a class="header-anchor" href="#why-don-t-changes-to-theme-plugin-configurations-take-effect"><span>Why don&#39;t changes to theme plugin configurations take effect?</span></a></h2><p>This issue commonly occurs when modifying configurations for <code>plugins.markdownEnhance</code>, <code>plugins.markdownPower</code>, <code>plugins.markdownImage</code>, and <code>plugins.markdownMath</code>. The reason is the same as <a href="#why-dont-new-features-take-effect-after-updating-the-theme-version">Why don&#39;t new features take effect after updating the theme version?</a>. Therefore,</p><p><strong>Simply delete the cache files and restart</strong>:</p><ol><li><p>Method 1: Directly delete the <code>.vuepress/.cache</code> directory.</p></li><li><p>Method 2: Add the <code>--clean-cache</code> parameter when starting the dev server command:</p><div class="language-sh" data-highlighter="shiki" data-ext="sh" style="--shiki-light:#393a34;--shiki-dark:#dbd7caee;--shiki-light-bg:#ffffff;--shiki-dark-bg:#121212;"><pre class="shiki shiki-themes vitesse-light vitesse-dark vp-code"><code class="language-sh"><span class="line"><span style="--shiki-light:#59873A;--shiki-dark:#80A665;">vuepress</span><span style="--shiki-light:#B56959;--shiki-dark:#C98A7D;"> dev</span><span style="--shiki-light:#B56959;--shiki-dark:#C98A7D;"> docs</span><span style="--shiki-light:#A65E2B;--shiki-dark:#C99076;"> --clean-cache</span></span></code></pre></div></li></ol><h2 id="after-updating-dependencies-restart-prompts-import-xxxx-not-exist" tabindex="-1"><a class="header-anchor" href="#after-updating-dependencies-restart-prompts-import-xxxx-not-exist"><span>After updating dependencies, restart prompts <code>import &quot;xxxx&quot; not exist</code></span></a></h2><p>Sometimes, after updating the theme and related dependencies, there might be an issue where the package manager fails to correctly generate the new dependency tree, leading to errors like &quot;module not found&quot; when importing certain dependencies. At this point, the dependency lock files (like <code>package-lock.json</code> or <code>pnpm-lock.yaml</code>) might be corrupted.</p><p>Please directly delete the dependency lock files (<code>package-lock.json</code>, <code>pnpm-lock.yaml</code>, etc.) and the <code>node_modules</code> directory, then reinstall the dependencies.</p><h2 id="how-to-hide-the-page-footer" tabindex="-1"><a class="header-anchor" href="#how-to-hide-the-page-footer"><span>How to hide the page footer?</span></a></h2><p>You can hide the footer by adding <code>footer: false</code> in the frontmatter of the Markdown file.</p>`,13),s(`div`,d,[s(`div`,f,[s(`span`,p,[r(x,{provider:`iconify`,name:`vscode-icons:file-type-markdown`}),l[6]||=a(`post.md`,-1)])]),l[7]||=o(`<div class="language-md" data-highlighter="shiki" data-ext="md" style="--shiki-light:#393a34;--shiki-dark:#dbd7caee;--shiki-light-bg:#ffffff;--shiki-dark-bg:#121212;"><pre class="shiki shiki-themes vitesse-light vitesse-dark vp-code"><code class="language-md"><span class="line"><span style="--shiki-light:#999999;--shiki-dark:#666666;">---</span></span>
<span class="line"><span style="--shiki-light:#998418;--shiki-dark:#B8A965;">footer</span><span style="--shiki-light:#999999;--shiki-dark:#666666;">:</span><span style="--shiki-light:#1E754F;--shiki-dark:#4D9375;"> false</span></span>
<span class="line"><span style="--shiki-light:#999999;--shiki-dark:#666666;">---</span></span>
<span class="line"></span>
<span class="line"><span style="--shiki-light:#393A34;--shiki-dark:#DBD7CAEE;">content</span></span></code></pre></div>`,1)]),s(`p`,null,[r(C,{href:`../config/frontmatter/basic.md#footer`,class:`read-more`},{default:e(()=>[...l[8]||=[a(`Configuration Documentation: `,-1),s(`strong`,null,`frontmatter > Footer`,-1)]]),_:1})]),l[22]||=s(`p`,null,[a(`Or you can hide the footer for all pages on the main site by adding `),s(`code`,null,`footer: false`),a(` in the theme configuration file.`)],-1),s(`div`,m,[s(`div`,h,[s(`span`,g,[r(x,{provider:`iconify`,name:`vscode-icons:file-type-typescript`}),l[9]||=a(`.vuepress/config.ts`,-1)])]),l[10]||=o(`<div class="language-ts" data-highlighter="shiki" data-ext="ts" style="--shiki-light:#393a34;--shiki-dark:#dbd7caee;--shiki-light-bg:#ffffff;--shiki-dark-bg:#121212;"><pre class="shiki shiki-themes vitesse-light vitesse-dark has-diff vp-code"><code class="language-ts"><span class="line"><span style="--shiki-light:#1E754F;--shiki-dark:#4D9375;">export</span><span style="--shiki-light:#1E754F;--shiki-dark:#4D9375;"> default</span><span style="--shiki-light:#59873A;--shiki-dark:#80A665;"> defineUserConfig</span><span style="--shiki-light:#999999;--shiki-dark:#666666;">({</span></span>
<span class="line"><span style="--shiki-light:#998418;--shiki-dark:#B8A965;"> theme</span><span style="--shiki-light:#999999;--shiki-dark:#666666;">: </span><span style="--shiki-light:#59873A;--shiki-dark:#80A665;">plumeTheme</span><span style="--shiki-light:#999999;--shiki-dark:#666666;">({</span></span>
<span class="line diff add"><span style="--shiki-light:#998418;--shiki-dark:#B8A965;"> footer</span><span style="--shiki-light:#999999;--shiki-dark:#666666;">: </span><span style="--shiki-light:#1E754F;--shiki-dark:#4D9375;">false</span><span style="--shiki-light:#999999;--shiki-dark:#666666;">, </span></span>
<span class="line"><span style="--shiki-light:#999999;--shiki-dark:#666666;"> })</span></span>
<span class="line"><span style="--shiki-light:#999999;--shiki-dark:#666666;">})</span></span></code></pre></div>`,1)]),s(`p`,null,[r(C,{href:`../config/theme.md#footer`,class:`read-more`},{default:e(()=>[...l[11]||=[a(`Configuration Documentation: `,-1),s(`strong`,null,`Theme Configuration`,-1)]]),_:1})]),l[23]||=o(`<h2 id="build-error-javascript-heap-out-of-memory" tabindex="-1"><a class="header-anchor" href="#build-error-javascript-heap-out-of-memory"><span>Build error: <code>JavaScript heap out of memory</code></span></a></h2><p>When executing <code>npm run docs:build</code>, you encounter an error similar to:</p><div class="language-sh line-numbers-mode" data-highlighter="shiki" data-ext="sh" style="--shiki-light:#393a34;--shiki-dark:#dbd7caee;--shiki-light-bg:#ffffff;--shiki-dark-bg:#121212;"><pre class="shiki shiki-themes vitesse-light vitesse-dark vp-code"><code class="language-sh"><span class="line"><span style="--shiki-light:#AB5959;--shiki-dark:#CB7676;">&lt;</span><span style="--shiki-light:#393A34;--shiki-dark:#DBD7CAEE;">--- Last few GCs ---</span><span style="--shiki-light:#AB5959;--shiki-dark:#CB7676;">&gt;</span></span>
<span class="line"></span>
<span class="line"><span style="--shiki-light:#999999;--shiki-dark:#666666;">[</span><span style="--shiki-light:#393A34;--shiki-dark:#DBD7CAEE;">69161:0x7fe63aa00000</span><span style="--shiki-light:#999999;--shiki-dark:#666666;">]</span><span style="--shiki-light:#393A34;--shiki-dark:#DBD7CAEE;"> 137006 ms: xxxxxx</span></span>
<span class="line"><span style="--shiki-light:#999999;--shiki-dark:#666666;">[</span><span style="--shiki-light:#393A34;--shiki-dark:#DBD7CAEE;">69161:0x7fe63aa00000</span><span style="--shiki-light:#999999;--shiki-dark:#666666;">]</span><span style="--shiki-light:#393A34;--shiki-dark:#DBD7CAEE;"> 139327 ms: xxxxxxxx</span></span>
<span class="line"></span>
<span class="line"><span style="--shiki-light:#AB5959;--shiki-dark:#CB7676;">&lt;</span><span style="--shiki-light:#393A34;--shiki-dark:#DBD7CAEE;">--- JS stacktrace ---</span><span style="--shiki-light:#AB5959;--shiki-dark:#CB7676;">&gt;</span></span>
<span class="line"><span style="--shiki-light:#59873A;--shiki-dark:#80A665;">FATAL</span><span style="--shiki-light:#B56959;--shiki-dark:#C98A7D;"> ERROR:</span><span style="--shiki-light:#B56959;--shiki-dark:#C98A7D;"> Reached</span><span style="--shiki-light:#B56959;--shiki-dark:#C98A7D;"> heap</span><span style="--shiki-light:#B56959;--shiki-dark:#C98A7D;"> limit</span><span style="--shiki-light:#B56959;--shiki-dark:#C98A7D;"> Allocation</span><span style="--shiki-light:#B56959;--shiki-dark:#C98A7D;"> failed</span><span style="--shiki-light:#B56959;--shiki-dark:#C98A7D;"> -</span><span style="--shiki-light:#B56959;--shiki-dark:#C98A7D;"> JavaScript</span><span style="--shiki-light:#B56959;--shiki-dark:#C98A7D;"> heap</span><span style="--shiki-light:#B56959;--shiki-dark:#C98A7D;"> out</span><span style="--shiki-light:#B56959;--shiki-dark:#C98A7D;"> of</span><span style="--shiki-light:#B56959;--shiki-dark:#C98A7D;"> memory</span></span>
<span class="line"><span style="--shiki-light:#59873A;--shiki-dark:#80A665;">-----</span><span style="--shiki-light:#B56959;--shiki-dark:#C98A7D;"> Native</span><span style="--shiki-light:#B56959;--shiki-dark:#C98A7D;"> stack</span><span style="--shiki-light:#B56959;--shiki-dark:#C98A7D;"> trace</span><span style="--shiki-light:#A65E2B;--shiki-dark:#C99076;"> -----</span></span>
<span class="line"></span>
<span class="line"><span style="--shiki-light:#59873A;--shiki-dark:#80A665;">1:</span><span style="--shiki-light:#2F798A;--shiki-dark:#4C9A91;"> 0x107ce7c84</span><span style="--shiki-light:#B56959;--shiki-dark:#C98A7D;"> xxxxxxxxxxxx</span></span>
<span class="line"><span style="--shiki-light:#998418;--shiki-dark:#B8A965;">...</span></span></code></pre><div class="line-numbers" aria-hidden="true" style="counter-reset:line-number 0;"><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div></div></div><p>This is due to insufficient Node.js memory.</p><p>Modify the Node.js memory limit by adding the following environment variables:</p><p><strong>Method 1: In the current terminal session</strong>:</p><div class="language-sh" data-highlighter="shiki" data-ext="sh" style="--shiki-light:#393a34;--shiki-dark:#dbd7caee;--shiki-light-bg:#ffffff;--shiki-dark-bg:#121212;"><pre class="shiki shiki-themes vitesse-light vitesse-dark vp-code"><code class="language-sh"><span class="line"><span style="--shiki-light:#AB5959;--shiki-dark:#CB7676;">export</span><span style="--shiki-light:#B07D48;--shiki-dark:#BD976A;"> NODE_OPTIONS</span><span style="--shiki-light:#999999;--shiki-dark:#666666;">=</span><span style="--shiki-light:#B5695977;--shiki-dark:#C98A7D77;">&quot;</span><span style="--shiki-light:#B56959;--shiki-dark:#C98A7D;">--max_old_space_size=8192</span><span style="--shiki-light:#B5695977;--shiki-dark:#C98A7D77;">&quot;</span></span>
<span class="line"><span style="--shiki-light:#59873A;--shiki-dark:#80A665;">npm</span><span style="--shiki-light:#B56959;--shiki-dark:#C98A7D;"> run</span><span style="--shiki-light:#B56959;--shiki-dark:#C98A7D;"> docs:build</span></span></code></pre></div><p><mark class="warning">Note that this method is only effective for the current terminal session.</mark></p><p><strong>Method 2: In the local environment</strong>:</p><p>If you need to keep this environment variable long-term, you can modify the Node.js memory limit in your local environment:</p>`,10),s(`div`,_,[s(`ul`,null,[s(`li`,null,[l[18]||=s(`p`,null,[a(`Install `),s(`code`,null,`cross-env`),a(` in your project`)],-1),r(S,{id:`0`,data:[{id:`pnpm`},{id:`yarn`},{id:`npm`}],"tab-id":`npm-to-pnpm-yarn-npm`},{title0:e(({value:e,isActive:t})=>[r(x,{provider:`iconify`,name:`vscode-icons:file-type-light-pnpm`}),l[12]||=s(`span`,null,`pnpm`,-1)]),title1:e(({value:e,isActive:t})=>[r(x,{provider:`iconify`,name:`vscode-icons:file-type-yarn`}),l[13]||=s(`span`,null,`yarn`,-1)]),title2:e(({value:e,isActive:t})=>[r(x,{provider:`iconify`,name:`logos:npm-icon`}),l[14]||=s(`span`,null,`npm`,-1)]),tab0:e(({value:e,isActive:t})=>[...l[15]||=[s(`div`,{class:`language-sh`,"data-highlighter":`shiki`,"data-ext":`sh`,style:{"--shiki-light":`#393a34`,"--shiki-dark":`#dbd7caee`,"--shiki-light-bg":`#ffffff`,"--shiki-dark-bg":`#121212`}},[s(`pre`,{class:`shiki shiki-themes vitesse-light vitesse-dark vp-code`},[s(`code`,{class:`language-sh`},[s(`span`,{class:`line`},[s(`span`,{style:{"--shiki-light":`#59873A`,"--shiki-dark":`#80A665`}},`pnpm`),s(`span`,{style:{"--shiki-light":`#B56959`,"--shiki-dark":`#C98A7D`}},` add`),s(`span`,{style:{"--shiki-light":`#A65E2B`,"--shiki-dark":`#C99076`}},` -D`),s(`span`,{style:{"--shiki-light":`#B56959`,"--shiki-dark":`#C98A7D`}},` cross-env`)])])])],-1)]]),tab1:e(({value:e,isActive:t})=>[...l[16]||=[s(`div`,{class:`language-sh`,"data-highlighter":`shiki`,"data-ext":`sh`,style:{"--shiki-light":`#393a34`,"--shiki-dark":`#dbd7caee`,"--shiki-light-bg":`#ffffff`,"--shiki-dark-bg":`#121212`}},[s(`pre`,{class:`shiki shiki-themes vitesse-light vitesse-dark vp-code`},[s(`code`,{class:`language-sh`},[s(`span`,{class:`line`},[s(`span`,{style:{"--shiki-light":`#59873A`,"--shiki-dark":`#80A665`}},`yarn`),s(`span`,{style:{"--shiki-light":`#B56959`,"--shiki-dark":`#C98A7D`}},` add`),s(`span`,{style:{"--shiki-light":`#A65E2B`,"--shiki-dark":`#C99076`}},` -D`),s(`span`,{style:{"--shiki-light":`#B56959`,"--shiki-dark":`#C98A7D`}},` cross-env`)])])])],-1)]]),tab2:e(({value:e,isActive:t})=>[...l[17]||=[s(`div`,{class:`language-sh`,"data-highlighter":`shiki`,"data-ext":`sh`,style:{"--shiki-light":`#393a34`,"--shiki-dark":`#dbd7caee`,"--shiki-light-bg":`#ffffff`,"--shiki-dark-bg":`#121212`}},[s(`pre`,{class:`shiki shiki-themes vitesse-light vitesse-dark vp-code`},[s(`code`,{class:`language-sh`},[s(`span`,{class:`line`},[s(`span`,{style:{"--shiki-light":`#59873A`,"--shiki-dark":`#80A665`}},`npm`),s(`span`,{style:{"--shiki-light":`#B56959`,"--shiki-dark":`#C98A7D`}},` install`),s(`span`,{style:{"--shiki-light":`#A65E2B`,"--shiki-dark":`#C99076`}},` -D`),s(`span`,{style:{"--shiki-light":`#B56959`,"--shiki-dark":`#C98A7D`}},` cross-env`)])])])],-1)]]),_:1})]),l[19]||=o(`<li><p>Add <code>scripts</code> in <code>package.json</code>:</p><div class="language-json" data-highlighter="shiki" data-ext="json" style="--shiki-light:#393a34;--shiki-dark:#dbd7caee;--shiki-light-bg:#ffffff;--shiki-dark-bg:#121212;"><pre class="shiki shiki-themes vitesse-light vitesse-dark vp-code"><code class="language-json"><span class="line"><span style="--shiki-light:#999999;--shiki-dark:#666666;">{</span></span>
<span class="line"><span style="--shiki-light:#99841877;--shiki-dark:#B8A96577;"> &quot;</span><span style="--shiki-light:#998418;--shiki-dark:#B8A965;">scripts</span><span style="--shiki-light:#99841877;--shiki-dark:#B8A96577;">&quot;</span><span style="--shiki-light:#999999;--shiki-dark:#666666;">:</span><span style="--shiki-light:#999999;--shiki-dark:#666666;"> {</span></span>
<span class="line"><span style="--shiki-light:#99841877;--shiki-dark:#B8A96577;"> &quot;</span><span style="--shiki-light:#998418;--shiki-dark:#B8A965;">docs:build-local</span><span style="--shiki-light:#99841877;--shiki-dark:#B8A96577;">&quot;</span><span style="--shiki-light:#999999;--shiki-dark:#666666;">:</span><span style="--shiki-light:#B5695977;--shiki-dark:#C98A7D77;"> &quot;</span><span style="--shiki-light:#B56959;--shiki-dark:#C98A7D;">cross-env NODE_OPTIONS=</span><span style="--shiki-light:#A65E2B;--shiki-dark:#C99076;">\\&quot;</span><span style="--shiki-light:#B56959;--shiki-dark:#C98A7D;">--max_old_space_size=8192</span><span style="--shiki-light:#A65E2B;--shiki-dark:#C99076;">\\&quot;</span><span style="--shiki-light:#B56959;--shiki-dark:#C98A7D;"> vuepress build docs --clean-cache --clean-temp</span><span style="--shiki-light:#B5695977;--shiki-dark:#C98A7D77;">&quot;</span></span>
<span class="line"><span style="--shiki-light:#999999;--shiki-dark:#666666;"> }</span></span>
<span class="line"><span style="--shiki-light:#999999;--shiki-dark:#666666;">}</span></span></code></pre></div></li>`,1)])]),l[24]||=o(`<p>When building locally, use <code>npm run docs:build-local</code> to build the package.</p><p><strong>Method 3: In GitHub Actions</strong>:</p><p>Modify the <code>.github/workflows/deploy.yml</code> file and add the following environment variables:</p><div class="language-yaml" data-highlighter="shiki" data-ext="yaml" style="--shiki-light:#393a34;--shiki-dark:#dbd7caee;--shiki-light-bg:#ffffff;--shiki-dark-bg:#121212;"><pre class="shiki shiki-themes vitesse-light vitesse-dark has-diff vp-code"><code class="language-yaml"><span class="line"><span style="--shiki-light:#A0ADA0;--shiki-dark:#758575DD;"># ...</span></span>
<span class="line"><span style="--shiki-light:#999999;--shiki-dark:#666666;">-</span><span style="--shiki-light:#998418;--shiki-dark:#B8A965;"> name</span><span style="--shiki-light:#999999;--shiki-dark:#666666;">:</span><span style="--shiki-light:#B56959;--shiki-dark:#C98A7D;"> Build VuePress site</span></span>
<span class="line diff add"><span style="--shiki-light:#998418;--shiki-dark:#B8A965;"> env</span><span style="--shiki-light:#999999;--shiki-dark:#666666;">:</span></span>
<span class="line diff add"><span style="--shiki-light:#998418;--shiki-dark:#B8A965;"> NODE_OPTIONS</span><span style="--shiki-light:#999999;--shiki-dark:#666666;">:</span><span style="--shiki-light:#B56959;--shiki-dark:#C98A7D;"> --max_old_space_size=8192</span></span>
<span class="line"><span style="--shiki-light:#998418;--shiki-dark:#B8A965;"> run</span><span style="--shiki-light:#999999;--shiki-dark:#666666;">:</span><span style="--shiki-light:#B56959;--shiki-dark:#C98A7D;"> npm run docs:build</span></span>
<span class="line"></span>
<span class="line"><span style="--shiki-light:#A0ADA0;--shiki-dark:#758575DD;"># ...</span></span></code></pre></div>`,4)])}var y=c(u,[[`render`,v]]);export{l as _pageData,y as default};