vuepress-theme-plume/assets/intro-B_MGeHx4.js

104 lines
81 KiB
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

import{$ as e,B as t,P as ee,_ as n,f as te,g as r,h as i,l as a}from"./runtime-core.esm-bundler-CZvn3YaB.js";import{t as ne}from"./plugin-vue_export-helper-CxTVcLa7.js";var o=JSON.parse(`{"path":"/config/intro/","title":"配置说明 | 配置","lang":"zh-CN","frontmatter":{"title":"配置说明","createTime":"2024/03/02 10:48:14","permalink":"/config/intro/","description":"概述 vuepress-theme-plume 是基于 VuePress 开发的主题,其配置完全遵循 VuePress 的配置规范。 VuePress 提供三种配置类型: 站点配置:在配置文件(如 .vuepress/config.ts中直接导出的对象 主题配置:传递给 plumeTheme() 函数的参数对象 页面配置:基于 YAML 语法在页面 ...","head":[["script",{"type":"application/ld+json"},"{\\"@context\\":\\"https://schema.org\\",\\"@type\\":\\"Article\\",\\"headline\\":\\"配置说明\\",\\"image\\":[\\"\\"],\\"dateModified\\":\\"2026-03-08T13:55:27.000Z\\",\\"author\\":[]}"],["meta",{"property":"og:url","content":"https://theme-plume.vuejs.press/config/intro/"}],["meta",{"property":"og:site_name","content":"Plume 主题"}],["meta",{"property":"og:title","content":"配置说明"}],["meta",{"property":"og:description","content":"概述 vuepress-theme-plume 是基于 VuePress 开发的主题,其配置完全遵循 VuePress 的配置规范。 VuePress 提供三种配置类型: 站点配置:在配置文件(如 .vuepress/config.ts中直接导出的对象 主题配置:传递给 plumeTheme() 函数的参数对象 页面配置:基于 YAML 语法在页面 ..."}],["meta",{"property":"og:type","content":"article"}],["meta",{"property":"og:locale","content":"zh-CN"}],["meta",{"property":"og:locale:alternate","content":"en-US"}],["meta",{"property":"og:updated_time","content":"2026-03-08T13:55:27.000Z"}],["meta",{"property":"article:modified_time","content":"2026-03-08T13:55:27.000Z"}],["link",{"rel":"alternate","hreflang":"en-us","href":"https://theme-plume.vuejs.press/en/config/intro/"}]]},"readingTime":{"minutes":3.01,"words":904},"git":{"createdTime":1759849989000,"updatedTime":1772978127000,"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":"97a5ba20c3eb976864d8a9ec7342a061bb73c03b","time":1772978127000,"email":"volodymyr@foxmail.com","author":"pengzhanbo","message":"docs: fix typo"},{"hash":"4d2361a7046214fe0f4e4af01831107fd00e38ad","time":1759849989000,"email":"volodymyr@foxmail.com","author":"pengzhanbo","message":"feat(theme)!: add collections support (#704)"}]},"autoDesc":true,"filePathRelative":"config/intro.md","headers":[],"bulletin":false}`),re={name:`intro.md`},ie={class:`code-block-title`,"data-title":`.vuepress/config.ts`},s={class:`code-block-title-bar`},c={class:`title`},l={class:`language-ts`,"data-highlighter":`shiki`,"data-ext":`ts`,style:{"--shiki-light":`#393a34`,"--shiki-dark":`#dbd7caee`,"--shiki-light-bg":`#ffffff`,"--shiki-dark-bg":`#121212`}},u={class:`shiki shiki-themes vitesse-light vitesse-dark has-diff has-highlighted vp-code twoslash lsp`},d={class:`language-ts`},f={class:`line`},p={style:{"--shiki-light":`#B07D48`,"--shiki-dark":`#BD976A`}},m={class:`line`},h={style:{"--shiki-light":`#B07D48`,"--shiki-dark":`#BD976A`}},g={class:`line`},_={style:{"--shiki-light":`#B07D48`,"--shiki-dark":`#BD976A`}},v={class:`line`},y={style:{"--shiki-light":`#59873A`,"--shiki-dark":`#80A665`}},b={class:`line highlighted`},x={style:{"--shiki-light":`#998418`,"--shiki-dark":`#B8A965`}},S={class:`line highlighted`},C={style:{"--shiki-light":`#998418`,"--shiki-dark":`#B8A965`}},w={class:`line highlighted`},T={style:{"--shiki-light":`#998418`,"--shiki-dark":`#B8A965`}},E={class:`line`},D={style:{"--shiki-light":`#998418`,"--shiki-dark":`#B8A965`}},O={style:{"--shiki-light":`#59873A`,"--shiki-dark":`#80A665`}},k={class:`line diff add`},A={style:{"--shiki-light":`#998418`,"--shiki-dark":`#B8A965`}},j={style:{"--shiki-light":`#59873A`,"--shiki-dark":`#80A665`}},M={class:`code-block-title`,"data-title":`.vuepress/config.ts`},N={class:`code-block-title-bar`},P={class:`title`},F={class:`language-ts`,"data-highlighter":`shiki`,"data-ext":`ts`,style:{"--shiki-light":`#393a34`,"--shiki-dark":`#dbd7caee`,"--shiki-light-bg":`#ffffff`,"--shiki-dark-bg":`#121212`}},I={class:`shiki shiki-themes vitesse-light vitesse-dark vp-code twoslash lsp`},L={class:`language-ts`},R={class:`line`},z={style:{"--shiki-light":`#B07D48`,"--shiki-dark":`#BD976A`}},B={class:`line`},V={style:{"--shiki-light":`#B07D48`,"--shiki-dark":`#BD976A`}},H={class:`line`},U={style:{"--shiki-light":`#59873A`,"--shiki-dark":`#80A665`}},W={class:`line`},G={style:{"--shiki-light":`#998418`,"--shiki-dark":`#B8A965`}},K={style:{"--shiki-light":`#59873A`,"--shiki-dark":`#80A665`}},q={class:`vp-file-tree`},J={class:`code-block-title`,"data-title":`plume.config.ts`},Y={class:`code-block-title-bar`},ae={class:`title`},oe={class:`language-ts`,"data-highlighter":`shiki`,"data-ext":`ts`,style:{"--shiki-light":`#393a34`,"--shiki-dark":`#dbd7caee`,"--shiki-light-bg":`#ffffff`,"--shiki-dark-bg":`#121212`}},se={class:`shiki shiki-themes vitesse-light vitesse-dark vp-code twoslash lsp`},ce={class:`language-ts`},le={class:`line`},ue={style:{"--shiki-light":`#B07D48`,"--shiki-dark":`#BD976A`}},de={class:`line`},fe={style:{"--shiki-light":`#B07D48`,"--shiki-dark":`#BD976A`}},pe={class:`line`},me={style:{"--shiki-light":`#59873A`,"--shiki-dark":`#80A665`}},he={class:`line`},ge={style:{"--shiki-light":`#998418`,"--shiki-dark":`#B8A965`}},_e={class:`line`},ve={style:{"--shiki-light":`#998418`,"--shiki-dark":`#B8A965`}},ye={class:`line`},be={style:{"--shiki-light":`#B07D48`,"--shiki-dark":`#BD976A`}},xe={class:`code-block-title`,"data-title":`.vuepress/config.ts`},Se={class:`code-block-title-bar`},Ce={class:`title`},we={class:`language-ts`,"data-highlighter":`shiki`,"data-ext":`ts`,style:{"--shiki-light":`#393a34`,"--shiki-dark":`#dbd7caee`,"--shiki-light-bg":`#ffffff`,"--shiki-dark-bg":`#121212`}},Te={class:`shiki shiki-themes vitesse-light vitesse-dark has-diff vp-code twoslash lsp`},Ee={class:`language-ts`},De={class:`line`},Oe={style:{"--shiki-light":`#B07D48`,"--shiki-dark":`#BD976A`}},ke={class:`line`},Ae={style:{"--shiki-light":`#B07D48`,"--shiki-dark":`#BD976A`}},je={class:`line`},Me={style:{"--shiki-light":`#59873A`,"--shiki-dark":`#80A665`}},Ne={class:`line`},Pe={style:{"--shiki-light":`#998418`,"--shiki-dark":`#B8A965`}},Fe={style:{"--shiki-light":`#59873A`,"--shiki-dark":`#80A665`}},Ie={class:`line diff add`},Le={style:{"--shiki-light":`#998418`,"--shiki-dark":`#B8A965`}},Re={style:{"--shiki-light":`#59873A`,"--shiki-dark":`#80A665`}},ze={style:{"--shiki-light":`#B07D48`,"--shiki-dark":`#BD976A`}},Be={class:`code-block-title`,"data-title":`article.md`},Ve={class:`code-block-title-bar`},He={class:`title`},Ue={class:`hint-container tip`},We={class:`hint-container-title`};function X(ne,o,re,X,Ge,Ke){let qe=t(`Badge`),Z=t(`VPIcon`),Q=t(`v-menu`),Je=t(`VPCopyButton`),$=t(`FileTreeNode`),Ye=t(`VPLink`);return ee(),te(`div`,null,[o[215]||=i(`<h2 id="概述" tabindex="-1"><a class="header-anchor" href="#概述"><span>概述</span></a></h2><p><mark>vuepress-theme-plume</mark> 是基于 <a href="https://v2.vuepress.vuejs.org/" target="_blank" rel="noopener noreferrer">VuePress</a> 开发的主题,其配置完全遵循 VuePress 的配置规范。</p><p><strong>VuePress 提供三种配置类型:</strong></p><ul><li><strong>站点配置</strong>:在配置文件(如 <code>.vuepress/config.ts</code>)中直接导出的对象</li><li><strong>主题配置</strong>:传递给 <code>plumeTheme()</code> 函数的参数对象</li><li><strong>页面配置</strong>:基于 YAML 语法在页面 Frontmatter 中定义</li></ul><h2 id="vuepress-配置文件" tabindex="-1"><a class="header-anchor" href="#vuepress-配置文件"><span>VuePress 配置文件</span></a></h2><p>VuePress 的基础配置文件通常是 <code>.vuepress/config.js</code>,同时也支持 TypeScript 配置文件。使用 <code>.vuepress/config.ts</code> 可以获得更完善的类型提示。</p><p>VuePress 按以下优先顺序解析配置文件:</p><p><strong>当前工作目录 (cwd) 下:</strong></p><ul><li><code>vuepress.config.ts</code></li><li><code>vuepress.config.js</code></li><li><code>vuepress.config.mjs</code></li></ul><p><strong>源文件目录 (sourceDir) 下:</strong></p>`,10),a(`ul`,null,[a(`li`,null,[o[0]||=a(`code`,null,`.vuepress/config.ts`,-1),o[1]||=r(),n(qe,{type:`tip`,text:`推荐使用`})]),o[2]||=a(`li`,null,[a(`code`,null,`.vuepress/config.js`)],-1),o[3]||=a(`li`,null,[a(`code`,null,`.vuepress/config.mjs`)],-1)]),o[216]||=a(`p`,null,[a(`strong`,null,`基础配置示例:`)],-1),a(`div`,ie,[a(`div`,s,[a(`span`,c,[n(Z,{provider:`iconify`,name:`vscode-icons:file-type-typescript`}),o[4]||=r(`.vuepress/config.ts`,-1)])]),a(`div`,l,[a(`pre`,u,[a(`code`,d,[a(`span`,f,[o[7]||=a(`span`,{style:{"--shiki-light":`#1E754F`,"--shiki-dark":`#4D9375`}},`import`,-1),o[8]||=a(`span`,{style:{"--shiki-light":`#999999`,"--shiki-dark":`#666666`}},` {`,-1),o[9]||=a(`span`,{style:{"--shiki-light":`#B07D48`,"--shiki-dark":`#BD976A`}},` `,-1),a(`span`,p,[n(Q,{class:`twoslash-hover`,"popper-class":`shiki twoslash-floating vp-copy-ignore vp-code`,theme:`twoslash`},{popper:e(({})=>[...o[5]||=[a(`span`,{class:`twoslash-popup-container vp-copy-ignore`},[a(`code`,{class:`twoslash-popup-code`},[a(`span`,{style:{"--shiki-light":`#AB5959`,"--shiki-dark":`#CB7676`}},`const `),a(`span`,{style:{"--shiki-light":`#59873A`,"--shiki-dark":`#80A665`}},`viteBundler`),a(`span`,{style:{"--shiki-light":`#999999`,"--shiki-dark":`#666666`}},`: (`),a(`span`,{style:{"--shiki-light":`#B07D48`,"--shiki-dark":`#BD976A`}},`options`),a(`span`,{style:{"--shiki-light":`#AB5959`,"--shiki-dark":`#CB7676`}},`?`),a(`span`,{style:{"--shiki-light":`#999999`,"--shiki-dark":`#666666`}},`: `),a(`span`,{style:{"--shiki-light":`#2E8F82`,"--shiki-dark":`#5DA994`}},`ViteBundlerOptions`),a(`span`,{style:{"--shiki-light":`#999999`,"--shiki-dark":`#666666`}},`) => `),a(`span`,{style:{"--shiki-light":`#2E8F82`,"--shiki-dark":`#5DA994`}},`Bundler`)])],-1)]]),default:e(()=>[o[6]||=a(`span`,null,`viteBundler`,-1)]),_:1})]),o[10]||=i(`<span style="--shiki-light:#999999;--shiki-dark:#666666;"> }</span><span style="--shiki-light:#1E754F;--shiki-dark:#4D9375;"> from</span><span style="--shiki-light:#B5695977;--shiki-dark:#C98A7D77;"> &#39;</span><span style="--shiki-light:#B56959;--shiki-dark:#C98A7D;">@vuepress/bundler-vite</span><span style="--shiki-light:#B5695977;--shiki-dark:#C98A7D77;">&#39;</span>`,5)]),o[55]||=r(`
`,-1),a(`span`,m,[o[13]||=a(`span`,{style:{"--shiki-light":`#1E754F`,"--shiki-dark":`#4D9375`}},`import`,-1),o[14]||=a(`span`,{style:{"--shiki-light":`#999999`,"--shiki-dark":`#666666`}},` {`,-1),o[15]||=a(`span`,{style:{"--shiki-light":`#B07D48`,"--shiki-dark":`#BD976A`}},` `,-1),a(`span`,h,[n(Q,{class:`twoslash-hover`,"popper-class":`shiki twoslash-floating vp-copy-ignore vp-code`,theme:`twoslash`},{popper:e(({})=>[...o[11]||=[a(`span`,{class:`twoslash-popup-container vp-copy-ignore`},[a(`code`,{class:`twoslash-popup-code`},[a(`span`,{style:{"--shiki-light":`#AB5959`,"--shiki-dark":`#CB7676`}},`const `),a(`span`,{style:{"--shiki-light":`#59873A`,"--shiki-dark":`#80A665`}},`defineUserConfig`),a(`span`,{style:{"--shiki-light":`#999999`,"--shiki-dark":`#666666`}},`: (`),a(`span`,{style:{"--shiki-light":`#B07D48`,"--shiki-dark":`#BD976A`}},`config`),a(`span`,{style:{"--shiki-light":`#999999`,"--shiki-dark":`#666666`}},`: `),a(`span`,{style:{"--shiki-light":`#2E8F82`,"--shiki-dark":`#5DA994`}},`UserConfig`),a(`span`,{style:{"--shiki-light":`#999999`,"--shiki-dark":`#666666`}},`) => `),a(`span`,{style:{"--shiki-light":`#2E8F82`,"--shiki-dark":`#5DA994`}},`UserConfig`)])],-1)]]),default:e(()=>[o[12]||=a(`span`,null,`defineUserConfig`,-1)]),_:1})]),o[16]||=i(`<span style="--shiki-light:#999999;--shiki-dark:#666666;"> }</span><span style="--shiki-light:#1E754F;--shiki-dark:#4D9375;"> from</span><span style="--shiki-light:#B5695977;--shiki-dark:#C98A7D77;"> &#39;</span><span style="--shiki-light:#B56959;--shiki-dark:#C98A7D;">vuepress</span><span style="--shiki-light:#B5695977;--shiki-dark:#C98A7D77;">&#39;</span>`,5)]),o[56]||=r(`
`,-1),a(`span`,g,[o[19]||=a(`span`,{style:{"--shiki-light":`#1E754F`,"--shiki-dark":`#4D9375`}},`import`,-1),o[20]||=a(`span`,{style:{"--shiki-light":`#999999`,"--shiki-dark":`#666666`}},` {`,-1),o[21]||=a(`span`,{style:{"--shiki-light":`#B07D48`,"--shiki-dark":`#BD976A`}},` `,-1),a(`span`,_,[n(Q,{class:`twoslash-hover`,"popper-class":`shiki twoslash-floating vp-copy-ignore vp-code`,theme:`twoslash`},{popper:e(({})=>[...o[17]||=[a(`span`,{class:`twoslash-popup-container vp-copy-ignore`},[a(`code`,{class:`twoslash-popup-code`},[a(`span`,{style:{"--shiki-light":`#AB5959`,"--shiki-dark":`#CB7676`}},`function`),a(`span`,{style:{"--shiki-light":`#59873A`,"--shiki-dark":`#80A665`}},` plumeTheme`),a(`span`,{style:{"--shiki-light":`#999999`,"--shiki-dark":`#666666`}},`(`),a(`span`,{style:{"--shiki-light":`#B07D48`,"--shiki-dark":`#BD976A`}},`options`),a(`span`,{style:{"--shiki-light":`#AB5959`,"--shiki-dark":`#CB7676`}},`?`),a(`span`,{style:{"--shiki-light":`#999999`,"--shiki-dark":`#666666`}},`: `),a(`span`,{style:{"--shiki-light":`#2E8F82`,"--shiki-dark":`#5DA994`}},`ThemeOptions`),a(`span`,{style:{"--shiki-light":`#999999`,"--shiki-dark":`#666666`}},`):`),a(`span`,{style:{"--shiki-light":`#2E8F82`,"--shiki-dark":`#5DA994`}},` Theme`)]),a(`div`,{class:`twoslash-popup-docs vp-doc`,"vp-content":``},[a(`p`,null,`VuePress Theme Plume`),r(`
`),a(`p`,null,`VuePress 主题 Plume`)]),a(`div`,{class:`twoslash-popup-docs twoslash-popup-docs-tags vp-doc`,"vp-content":``},[a(`span`,{class:`twoslash-popup-docs-tag`},[a(`span`,{class:`twoslash-popup-docs-tag-name`},`@param`),a(`span`,{class:`twoslash-popup-docs-tag-value`},[a(`code`,null,`options`),r(` Theme options / 主题配置`)])]),a(`span`,{class:`twoslash-popup-docs-tag`},[a(`span`,{class:`twoslash-popup-docs-tag-name`},`@example`),a(`span`,{class:`twoslash-popup-docs-tag-value`},[a(`div`,{class:`language-ts`,"data-ext":`ts`,"data-title":`ts`,"data-highlighter":`shiki`,style:{"--shiki-light":`#393a34`,"--shiki-dark":`#dbd7caee`,"--shiki-light-bg":`#ffffff`,"--shiki-dark-bg":`#121212`}},[a(`pre`,{class:`shiki shiki-themes vitesse-light vitesse-dark`,style:{"--shiki-light":`#393a34`,"--shiki-dark":`#dbd7caee`,"--shiki-light-bg":`#ffffff`,"--shiki-dark-bg":`#121212`},tabindex:`0`},[a(`code`,null,[a(`span`,{class:`line`},[a(`span`,{style:{"--shiki-light":`#1E754F`,"--shiki-dark":`#4D9375`}},`import`),a(`span`,{style:{"--shiki-light":`#999999`,"--shiki-dark":`#666666`}},` {`),a(`span`,{style:{"--shiki-light":`#B07D48`,"--shiki-dark":`#BD976A`}},` defineUserConfig`),a(`span`,{style:{"--shiki-light":`#999999`,"--shiki-dark":`#666666`}},` }`),a(`span`,{style:{"--shiki-light":`#1E754F`,"--shiki-dark":`#4D9375`}},` from`),a(`span`,{style:{"--shiki-light":`#B5695977`,"--shiki-dark":`#C98A7D77`}},` '`),a(`span`,{style:{"--shiki-light":`#B56959`,"--shiki-dark":`#C98A7D`}},`vuepress`),a(`span`,{style:{"--shiki-light":`#B5695977`,"--shiki-dark":`#C98A7D77`}},`'`)]),r(`
`),a(`span`,{class:`line`},[a(`span`,{style:{"--shiki-light":`#1E754F`,"--shiki-dark":`#4D9375`}},`import`),a(`span`,{style:{"--shiki-light":`#999999`,"--shiki-dark":`#666666`}},` {`),a(`span`,{style:{"--shiki-light":`#B07D48`,"--shiki-dark":`#BD976A`}},` plumeTheme`),a(`span`,{style:{"--shiki-light":`#999999`,"--shiki-dark":`#666666`}},` }`),a(`span`,{style:{"--shiki-light":`#1E754F`,"--shiki-dark":`#4D9375`}},` from`),a(`span`,{style:{"--shiki-light":`#B5695977`,"--shiki-dark":`#C98A7D77`}},` '`),a(`span`,{style:{"--shiki-light":`#B56959`,"--shiki-dark":`#C98A7D`}},`vuepress-theme-plume`),a(`span`,{style:{"--shiki-light":`#B5695977`,"--shiki-dark":`#C98A7D77`}},`'`)]),r(`
`),a(`span`,{class:`line`}),r(`
`),a(`span`,{class:`line`},[a(`span`,{style:{"--shiki-light":`#1E754F`,"--shiki-dark":`#4D9375`}},`export`),a(`span`,{style:{"--shiki-light":`#1E754F`,"--shiki-dark":`#4D9375`}},` default`),a(`span`,{style:{"--shiki-light":`#59873A`,"--shiki-dark":`#80A665`}},` defineUserConfig`),a(`span`,{style:{"--shiki-light":`#999999`,"--shiki-dark":`#666666`}},`({`)]),r(`
`),a(`span`,{class:`line`},[a(`span`,{style:{"--shiki-light":`#998418`,"--shiki-dark":`#B8A965`}},` theme`),a(`span`,{style:{"--shiki-light":`#999999`,"--shiki-dark":`#666666`}},`: `),a(`span`,{style:{"--shiki-light":`#59873A`,"--shiki-dark":`#80A665`}},`plumeTheme`),a(`span`,{style:{"--shiki-light":`#999999`,"--shiki-dark":`#666666`}},`({`)]),r(`
`),a(`span`,{class:`line`},[a(`span`,{style:{"--shiki-light":`#A0ADA0`,"--shiki-dark":`#758575DD`}},` // ...options`)]),r(`
`),a(`span`,{class:`line`},[a(`span`,{style:{"--shiki-light":`#999999`,"--shiki-dark":`#666666`}},` })`)]),r(`
`),a(`span`,{class:`line`},[a(`span`,{style:{"--shiki-light":`#999999`,"--shiki-dark":`#666666`}},`})`)])])])])])])])],-1)]]),default:e(()=>[o[18]||=a(`span`,null,`plumeTheme`,-1)]),_:1})]),o[22]||=i(`<span style="--shiki-light:#999999;--shiki-dark:#666666;"> }</span><span style="--shiki-light:#1E754F;--shiki-dark:#4D9375;"> from</span><span style="--shiki-light:#B5695977;--shiki-dark:#C98A7D77;"> &#39;</span><span style="--shiki-light:#B56959;--shiki-dark:#C98A7D;">vuepress-theme-plume</span><span style="--shiki-light:#B5695977;--shiki-dark:#C98A7D77;">&#39;</span>`,5)]),o[57]||=r(`
`,-1),o[58]||=a(`span`,{class:`line`},null,-1),o[59]||=r(`
`,-1),a(`span`,v,[o[25]||=a(`span`,{style:{"--shiki-light":`#1E754F`,"--shiki-dark":`#4D9375`}},`export`,-1),o[26]||=a(`span`,{style:{"--shiki-light":`#1E754F`,"--shiki-dark":`#4D9375`}},` default`,-1),o[27]||=a(`span`,{style:{"--shiki-light":`#59873A`,"--shiki-dark":`#80A665`}},` `,-1),a(`span`,y,[n(Q,{class:`twoslash-hover`,"popper-class":`shiki twoslash-floating vp-copy-ignore vp-code`,theme:`twoslash`},{popper:e(({})=>[...o[23]||=[a(`span`,{class:`twoslash-popup-container vp-copy-ignore`},[a(`code`,{class:`twoslash-popup-code`},[a(`span`,{style:{"--shiki-light":`#AB5959`,"--shiki-dark":`#CB7676`}},`function`),a(`span`,{style:{"--shiki-light":`#59873A`,"--shiki-dark":`#80A665`}},` defineUserConfig`),a(`span`,{style:{"--shiki-light":`#999999`,"--shiki-dark":`#666666`}},`(`),a(`span`,{style:{"--shiki-light":`#B07D48`,"--shiki-dark":`#BD976A`}},`config`),a(`span`,{style:{"--shiki-light":`#999999`,"--shiki-dark":`#666666`}},`: `),a(`span`,{style:{"--shiki-light":`#2E8F82`,"--shiki-dark":`#5DA994`}},`UserConfig`),a(`span`,{style:{"--shiki-light":`#999999`,"--shiki-dark":`#666666`}},`):`),a(`span`,{style:{"--shiki-light":`#2E8F82`,"--shiki-dark":`#5DA994`}},` UserConfig`)])],-1)]]),default:e(()=>[o[24]||=a(`span`,null,`defineUserConfig`,-1)]),_:1})]),o[28]||=a(`span`,{style:{"--shiki-light":`#999999`,"--shiki-dark":`#666666`}},`({`,-1)]),o[60]||=r(`
`,-1),o[61]||=a(`span`,{class:`line highlighted`},[a(`span`,{style:{"--shiki-light":`#A0ADA0`,"--shiki-dark":`#758575DD`}},` // VuePress 基础配置`)],-1),o[62]||=r(`
`,-1),a(`span`,b,[o[31]||=a(`span`,{style:{"--shiki-light":`#998418`,"--shiki-dark":`#B8A965`}},` `,-1),a(`span`,x,[n(Q,{class:`twoslash-hover`,"popper-class":`shiki twoslash-floating vp-copy-ignore vp-code`,theme:`twoslash`},{popper:e(({})=>[...o[29]||=[a(`span`,{class:`twoslash-popup-container vp-copy-ignore`},[a(`code`,{class:`twoslash-popup-code`},[a(`span`,{style:{"--shiki-light":`#B07D48`,"--shiki-dark":`#BD976A`}},`lang`),a(`span`,{style:{"--shiki-light":`#AB5959`,"--shiki-dark":`#CB7676`}},`?:`),a(`span`,{style:{"--shiki-light":`#B07D48`,"--shiki-dark":`#BD976A`}},` string`),a(`span`,{style:{"--shiki-light":`#AB5959`,"--shiki-dark":`#CB7676`}},` |`),a(`span`,{style:{"--shiki-light":`#AB5959`,"--shiki-dark":`#CB7676`}},` undefined`)]),a(`div`,{class:`twoslash-popup-docs vp-doc`,"vp-content":``},[a(`p`,null,`Language for the site`)]),a(`div`,{class:`twoslash-popup-docs twoslash-popup-docs-tags vp-doc`,"vp-content":``},[a(`span`,{class:`twoslash-popup-docs-tag`},[a(`span`,{class:`twoslash-popup-docs-tag-name`},`@default`),a(`span`,{class:`twoslash-popup-docs-tag-value`},`'en-US'`)])])],-1)]]),default:e(()=>[o[30]||=a(`span`,null,`lang`,-1)]),_:1})]),o[32]||=i(`<span style="--shiki-light:#999999;--shiki-dark:#666666;">: </span><span style="--shiki-light:#B5695977;--shiki-dark:#C98A7D77;">&#39;</span><span style="--shiki-light:#B56959;--shiki-dark:#C98A7D;">zh-CN</span><span style="--shiki-light:#B5695977;--shiki-dark:#C98A7D77;">&#39;</span><span style="--shiki-light:#999999;--shiki-dark:#666666;">,</span>`,5)]),o[63]||=r(`
`,-1),a(`span`,S,[o[35]||=a(`span`,{style:{"--shiki-light":`#998418`,"--shiki-dark":`#B8A965`}},` `,-1),a(`span`,C,[n(Q,{class:`twoslash-hover`,"popper-class":`shiki twoslash-floating vp-copy-ignore vp-code`,theme:`twoslash`},{popper:e(({})=>[...o[33]||=[a(`span`,{class:`twoslash-popup-container vp-copy-ignore`},[a(`code`,{class:`twoslash-popup-code`},[a(`span`,{style:{"--shiki-light":`#B07D48`,"--shiki-dark":`#BD976A`}},`title`),a(`span`,{style:{"--shiki-light":`#AB5959`,"--shiki-dark":`#CB7676`}},`?:`),a(`span`,{style:{"--shiki-light":`#B07D48`,"--shiki-dark":`#BD976A`}},` string`),a(`span`,{style:{"--shiki-light":`#AB5959`,"--shiki-dark":`#CB7676`}},` |`),a(`span`,{style:{"--shiki-light":`#AB5959`,"--shiki-dark":`#CB7676`}},` undefined`)]),a(`div`,{class:`twoslash-popup-docs vp-doc`,"vp-content":``},[a(`p`,null,`Title for the site`)]),a(`div`,{class:`twoslash-popup-docs twoslash-popup-docs-tags vp-doc`,"vp-content":``},[a(`span`,{class:`twoslash-popup-docs-tag`},[a(`span`,{class:`twoslash-popup-docs-tag-name`},`@default`),a(`span`,{class:`twoslash-popup-docs-tag-value`},`''`)])])],-1)]]),default:e(()=>[o[34]||=a(`span`,null,`title`,-1)]),_:1})]),o[36]||=i(`<span style="--shiki-light:#999999;--shiki-dark:#666666;">: </span><span style="--shiki-light:#B5695977;--shiki-dark:#C98A7D77;">&#39;</span><span style="--shiki-light:#B56959;--shiki-dark:#C98A7D;">你好, VuePress </span><span style="--shiki-light:#B5695977;--shiki-dark:#C98A7D77;">&#39;</span><span style="--shiki-light:#999999;--shiki-dark:#666666;">,</span>`,5)]),o[64]||=r(`
`,-1),a(`span`,w,[o[39]||=a(`span`,{style:{"--shiki-light":`#998418`,"--shiki-dark":`#B8A965`}},` `,-1),a(`span`,T,[n(Q,{class:`twoslash-hover`,"popper-class":`shiki twoslash-floating vp-copy-ignore vp-code`,theme:`twoslash`},{popper:e(({})=>[...o[37]||=[a(`span`,{class:`twoslash-popup-container vp-copy-ignore`},[a(`code`,{class:`twoslash-popup-code`},[a(`span`,{style:{"--shiki-light":`#B07D48`,"--shiki-dark":`#BD976A`}},`description`),a(`span`,{style:{"--shiki-light":`#AB5959`,"--shiki-dark":`#CB7676`}},`?:`),a(`span`,{style:{"--shiki-light":`#B07D48`,"--shiki-dark":`#BD976A`}},` string`),a(`span`,{style:{"--shiki-light":`#AB5959`,"--shiki-dark":`#CB7676`}},` |`),a(`span`,{style:{"--shiki-light":`#AB5959`,"--shiki-dark":`#CB7676`}},` undefined`)]),a(`div`,{class:`twoslash-popup-docs vp-doc`,"vp-content":``},[a(`p`,null,`Description for the site`)]),a(`div`,{class:`twoslash-popup-docs twoslash-popup-docs-tags vp-doc`,"vp-content":``},[a(`span`,{class:`twoslash-popup-docs-tag`},[a(`span`,{class:`twoslash-popup-docs-tag-name`},`@default`),a(`span`,{class:`twoslash-popup-docs-tag-value`},`''`)])])],-1)]]),default:e(()=>[o[38]||=a(`span`,null,`description`,-1)]),_:1})]),o[40]||=i(`<span style="--shiki-light:#999999;--shiki-dark:#666666;">: </span><span style="--shiki-light:#B5695977;--shiki-dark:#C98A7D77;">&#39;</span><span style="--shiki-light:#B56959;--shiki-dark:#C98A7D;">这是我的第一个 VuePress 站点</span><span style="--shiki-light:#B5695977;--shiki-dark:#C98A7D77;">&#39;</span><span style="--shiki-light:#999999;--shiki-dark:#666666;">,</span>`,5)]),o[65]||=i(`
<span class="line highlighted"><span style="--shiki-light:#A0ADA0;--shiki-dark:#758575DD;"> // ...</span></span>
<span class="line"></span>
<span class="line"><span style="--shiki-light:#A0ADA0;--shiki-dark:#758575DD;"> // 使用 Vite 作为构建工具</span></span>
`,7),a(`span`,E,[o[45]||=a(`span`,{style:{"--shiki-light":`#998418`,"--shiki-dark":`#B8A965`}},` `,-1),a(`span`,D,[n(Q,{class:`twoslash-hover`,"popper-class":`shiki twoslash-floating vp-copy-ignore vp-code`,theme:`twoslash`},{popper:e(({})=>[...o[41]||=[a(`span`,{class:`twoslash-popup-container vp-copy-ignore`},[a(`code`,{class:`twoslash-popup-code`},[a(`span`,{style:{"--shiki-light":`#B07D48`,"--shiki-dark":`#BD976A`}},`bundler`),a(`span`,{style:{"--shiki-light":`#AB5959`,"--shiki-dark":`#CB7676`}},`?:`),a(`span`,{style:{"--shiki-light":`#B07D48`,"--shiki-dark":`#BD976A`}},` Bundler`),a(`span`,{style:{"--shiki-light":`#AB5959`,"--shiki-dark":`#CB7676`}},` |`),a(`span`,{style:{"--shiki-light":`#AB5959`,"--shiki-dark":`#CB7676`}},` undefined`)]),a(`div`,{class:`twoslash-popup-docs vp-doc`,"vp-content":``},[a(`p`,null,`Vuepress bundler`)]),a(`div`,{class:`twoslash-popup-docs twoslash-popup-docs-tags vp-doc`,"vp-content":``},[a(`span`,{class:`twoslash-popup-docs-tag`},[a(`span`,{class:`twoslash-popup-docs-tag-name`},`@required`)])])],-1)]]),default:e(()=>[o[42]||=a(`span`,null,`bundler`,-1)]),_:1})]),o[46]||=a(`span`,{style:{"--shiki-light":`#999999`,"--shiki-dark":`#666666`}},`: `,-1),a(`span`,O,[n(Q,{class:`twoslash-hover`,"popper-class":`shiki twoslash-floating vp-copy-ignore vp-code`,theme:`twoslash`},{popper:e(({})=>[...o[43]||=[a(`span`,{class:`twoslash-popup-container vp-copy-ignore`},[a(`code`,{class:`twoslash-popup-code`},[a(`span`,{style:{"--shiki-light":`#AB5959`,"--shiki-dark":`#CB7676`}},`function`),a(`span`,{style:{"--shiki-light":`#59873A`,"--shiki-dark":`#80A665`}},` viteBundler`),a(`span`,{style:{"--shiki-light":`#999999`,"--shiki-dark":`#666666`}},`(`),a(`span`,{style:{"--shiki-light":`#B07D48`,"--shiki-dark":`#BD976A`}},`options`),a(`span`,{style:{"--shiki-light":`#AB5959`,"--shiki-dark":`#CB7676`}},`?`),a(`span`,{style:{"--shiki-light":`#999999`,"--shiki-dark":`#666666`}},`: `),a(`span`,{style:{"--shiki-light":`#2E8F82`,"--shiki-dark":`#5DA994`}},`ViteBundlerOptions`),a(`span`,{style:{"--shiki-light":`#999999`,"--shiki-dark":`#666666`}},`):`),a(`span`,{style:{"--shiki-light":`#2E8F82`,"--shiki-dark":`#5DA994`}},` Bundler`)])],-1)]]),default:e(()=>[o[44]||=a(`span`,null,`viteBundler`,-1)]),_:1})]),o[47]||=a(`span`,{style:{"--shiki-light":`#999999`,"--shiki-dark":`#666666`}},`(),`,-1)]),o[66]||=r(`
`,-1),o[67]||=a(`span`,{class:`line`},null,-1),o[68]||=r(`
`,-1),o[69]||=a(`span`,{class:`line`},[a(`span`,{style:{"--shiki-light":`#A0ADA0`,"--shiki-dark":`#758575DD`}},` // 启用 Plume 主题`)],-1),o[70]||=r(`
`,-1),a(`span`,k,[o[52]||=a(`span`,{style:{"--shiki-light":`#998418`,"--shiki-dark":`#B8A965`}},` `,-1),a(`span`,A,[n(Q,{class:`twoslash-hover`,"popper-class":`shiki twoslash-floating vp-copy-ignore vp-code`,theme:`twoslash`},{popper:e(({})=>[...o[48]||=[a(`span`,{class:`twoslash-popup-container vp-copy-ignore`},[a(`code`,{class:`twoslash-popup-code`},[a(`span`,{style:{"--shiki-light":`#B07D48`,"--shiki-dark":`#BD976A`}},`theme`),a(`span`,{style:{"--shiki-light":`#AB5959`,"--shiki-dark":`#CB7676`}},`?:`),a(`span`,{style:{"--shiki-light":`#B07D48`,"--shiki-dark":`#BD976A`}},` Theme`),a(`span`,{style:{"--shiki-light":`#AB5959`,"--shiki-dark":`#CB7676`}},` |`),a(`span`,{style:{"--shiki-light":`#AB5959`,"--shiki-dark":`#CB7676`}},` undefined`)]),a(`div`,{class:`twoslash-popup-docs vp-doc`,"vp-content":``},[a(`p`,null,`Vuepress theme`)]),a(`div`,{class:`twoslash-popup-docs twoslash-popup-docs-tags vp-doc`,"vp-content":``},[a(`span`,{class:`twoslash-popup-docs-tag`},[a(`span`,{class:`twoslash-popup-docs-tag-name`},`@required`)])])],-1)]]),default:e(()=>[o[49]||=a(`span`,null,`theme`,-1)]),_:1})]),o[53]||=a(`span`,{style:{"--shiki-light":`#999999`,"--shiki-dark":`#666666`}},`: `,-1),a(`span`,j,[n(Q,{class:`twoslash-hover`,"popper-class":`shiki twoslash-floating vp-copy-ignore vp-code`,theme:`twoslash`},{popper:e(({})=>[...o[50]||=[a(`span`,{class:`twoslash-popup-container vp-copy-ignore`},[a(`code`,{class:`twoslash-popup-code`},[a(`span`,{style:{"--shiki-light":`#AB5959`,"--shiki-dark":`#CB7676`}},`function`),a(`span`,{style:{"--shiki-light":`#59873A`,"--shiki-dark":`#80A665`}},` plumeTheme`),a(`span`,{style:{"--shiki-light":`#999999`,"--shiki-dark":`#666666`}},`(`),a(`span`,{style:{"--shiki-light":`#B07D48`,"--shiki-dark":`#BD976A`}},`options`),a(`span`,{style:{"--shiki-light":`#AB5959`,"--shiki-dark":`#CB7676`}},`?`),a(`span`,{style:{"--shiki-light":`#999999`,"--shiki-dark":`#666666`}},`: `),a(`span`,{style:{"--shiki-light":`#2E8F82`,"--shiki-dark":`#5DA994`}},`ThemeOptions`),a(`span`,{style:{"--shiki-light":`#999999`,"--shiki-dark":`#666666`}},`):`),a(`span`,{style:{"--shiki-light":`#2E8F82`,"--shiki-dark":`#5DA994`}},` Theme`)]),a(`div`,{class:`twoslash-popup-docs vp-doc`,"vp-content":``},[a(`p`,null,`VuePress Theme Plume`),r(`
`),a(`p`,null,`VuePress 主题 Plume`)]),a(`div`,{class:`twoslash-popup-docs twoslash-popup-docs-tags vp-doc`,"vp-content":``},[a(`span`,{class:`twoslash-popup-docs-tag`},[a(`span`,{class:`twoslash-popup-docs-tag-name`},`@param`),a(`span`,{class:`twoslash-popup-docs-tag-value`},[a(`code`,null,`options`),r(` Theme options / 主题配置`)])]),a(`span`,{class:`twoslash-popup-docs-tag`},[a(`span`,{class:`twoslash-popup-docs-tag-name`},`@example`),a(`span`,{class:`twoslash-popup-docs-tag-value`},[a(`div`,{class:`language-ts`,"data-ext":`ts`,"data-title":`ts`,"data-highlighter":`shiki`,style:{"--shiki-light":`#393a34`,"--shiki-dark":`#dbd7caee`,"--shiki-light-bg":`#ffffff`,"--shiki-dark-bg":`#121212`}},[a(`pre`,{class:`shiki shiki-themes vitesse-light vitesse-dark`,style:{"--shiki-light":`#393a34`,"--shiki-dark":`#dbd7caee`,"--shiki-light-bg":`#ffffff`,"--shiki-dark-bg":`#121212`},tabindex:`0`},[a(`code`,null,[a(`span`,{class:`line`},[a(`span`,{style:{"--shiki-light":`#1E754F`,"--shiki-dark":`#4D9375`}},`import`),a(`span`,{style:{"--shiki-light":`#999999`,"--shiki-dark":`#666666`}},` {`),a(`span`,{style:{"--shiki-light":`#B07D48`,"--shiki-dark":`#BD976A`}},` defineUserConfig`),a(`span`,{style:{"--shiki-light":`#999999`,"--shiki-dark":`#666666`}},` }`),a(`span`,{style:{"--shiki-light":`#1E754F`,"--shiki-dark":`#4D9375`}},` from`),a(`span`,{style:{"--shiki-light":`#B5695977`,"--shiki-dark":`#C98A7D77`}},` '`),a(`span`,{style:{"--shiki-light":`#B56959`,"--shiki-dark":`#C98A7D`}},`vuepress`),a(`span`,{style:{"--shiki-light":`#B5695977`,"--shiki-dark":`#C98A7D77`}},`'`)]),r(`
`),a(`span`,{class:`line`},[a(`span`,{style:{"--shiki-light":`#1E754F`,"--shiki-dark":`#4D9375`}},`import`),a(`span`,{style:{"--shiki-light":`#999999`,"--shiki-dark":`#666666`}},` {`),a(`span`,{style:{"--shiki-light":`#B07D48`,"--shiki-dark":`#BD976A`}},` plumeTheme`),a(`span`,{style:{"--shiki-light":`#999999`,"--shiki-dark":`#666666`}},` }`),a(`span`,{style:{"--shiki-light":`#1E754F`,"--shiki-dark":`#4D9375`}},` from`),a(`span`,{style:{"--shiki-light":`#B5695977`,"--shiki-dark":`#C98A7D77`}},` '`),a(`span`,{style:{"--shiki-light":`#B56959`,"--shiki-dark":`#C98A7D`}},`vuepress-theme-plume`),a(`span`,{style:{"--shiki-light":`#B5695977`,"--shiki-dark":`#C98A7D77`}},`'`)]),r(`
`),a(`span`,{class:`line`}),r(`
`),a(`span`,{class:`line`},[a(`span`,{style:{"--shiki-light":`#1E754F`,"--shiki-dark":`#4D9375`}},`export`),a(`span`,{style:{"--shiki-light":`#1E754F`,"--shiki-dark":`#4D9375`}},` default`),a(`span`,{style:{"--shiki-light":`#59873A`,"--shiki-dark":`#80A665`}},` defineUserConfig`),a(`span`,{style:{"--shiki-light":`#999999`,"--shiki-dark":`#666666`}},`({`)]),r(`
`),a(`span`,{class:`line`},[a(`span`,{style:{"--shiki-light":`#998418`,"--shiki-dark":`#B8A965`}},` theme`),a(`span`,{style:{"--shiki-light":`#999999`,"--shiki-dark":`#666666`}},`: `),a(`span`,{style:{"--shiki-light":`#59873A`,"--shiki-dark":`#80A665`}},`plumeTheme`),a(`span`,{style:{"--shiki-light":`#999999`,"--shiki-dark":`#666666`}},`({`)]),r(`
`),a(`span`,{class:`line`},[a(`span`,{style:{"--shiki-light":`#A0ADA0`,"--shiki-dark":`#758575DD`}},` // ...options`)]),r(`
`),a(`span`,{class:`line`},[a(`span`,{style:{"--shiki-light":`#999999`,"--shiki-dark":`#666666`}},` })`)]),r(`
`),a(`span`,{class:`line`},[a(`span`,{style:{"--shiki-light":`#999999`,"--shiki-dark":`#666666`}},`})`)])])])])])])])],-1)]]),default:e(()=>[o[51]||=a(`span`,null,`plumeTheme`,-1)]),_:1})]),o[54]||=a(`span`,{style:{"--shiki-light":`#999999`,"--shiki-dark":`#666666`}},`({ `,-1)]),o[71]||=i(`
<span class="line diff add"><span style="--shiki-light:#A0ADA0;--shiki-dark:#758575DD;"> // 主题配置项</span></span>
<span class="line diff add"><span style="--shiki-light:#A0ADA0;--shiki-dark:#758575DD;"> // ...</span></span>
<span class="line diff add"><span style="--shiki-light:#999999;--shiki-dark:#666666;"> }),</span></span>
<span class="line"><span style="--shiki-light:#999999;--shiki-dark:#666666;">})</span></span>`,8)])])])]),o[217]||=a(`h2`,{id:`主题配置文件`,tabindex:`-1`},[a(`a`,{class:`header-anchor`,href:`#主题配置文件`},[a(`span`,null,`主题配置文件`)])],-1),o[218]||=a(`p`,null,[r(`通常我们在 `),a(`code`,null,`.vuepress/config.ts`),r(` 中配置主题:`)],-1),a(`div`,M,[a(`div`,N,[a(`span`,P,[n(Z,{provider:`iconify`,name:`vscode-icons:file-type-typescript`}),o[72]||=r(`.vuepress/config.ts`,-1)])]),a(`div`,F,[a(`pre`,I,[a(`code`,L,[a(`span`,R,[o[75]||=a(`span`,{style:{"--shiki-light":`#1E754F`,"--shiki-dark":`#4D9375`}},`import`,-1),o[76]||=a(`span`,{style:{"--shiki-light":`#999999`,"--shiki-dark":`#666666`}},` {`,-1),o[77]||=a(`span`,{style:{"--shiki-light":`#B07D48`,"--shiki-dark":`#BD976A`}},` `,-1),a(`span`,z,[n(Q,{class:`twoslash-hover`,"popper-class":`shiki twoslash-floating vp-copy-ignore vp-code`,theme:`twoslash`},{popper:e(({})=>[...o[73]||=[a(`span`,{class:`twoslash-popup-container vp-copy-ignore`},[a(`code`,{class:`twoslash-popup-code`},[a(`span`,{style:{"--shiki-light":`#AB5959`,"--shiki-dark":`#CB7676`}},`const `),a(`span`,{style:{"--shiki-light":`#59873A`,"--shiki-dark":`#80A665`}},`defineUserConfig`),a(`span`,{style:{"--shiki-light":`#999999`,"--shiki-dark":`#666666`}},`: (`),a(`span`,{style:{"--shiki-light":`#B07D48`,"--shiki-dark":`#BD976A`}},`config`),a(`span`,{style:{"--shiki-light":`#999999`,"--shiki-dark":`#666666`}},`: `),a(`span`,{style:{"--shiki-light":`#2E8F82`,"--shiki-dark":`#5DA994`}},`UserConfig`),a(`span`,{style:{"--shiki-light":`#999999`,"--shiki-dark":`#666666`}},`) => `),a(`span`,{style:{"--shiki-light":`#2E8F82`,"--shiki-dark":`#5DA994`}},`UserConfig`)])],-1)]]),default:e(()=>[o[74]||=a(`span`,null,`defineUserConfig`,-1)]),_:1})]),o[78]||=i(`<span style="--shiki-light:#999999;--shiki-dark:#666666;"> }</span><span style="--shiki-light:#1E754F;--shiki-dark:#4D9375;"> from</span><span style="--shiki-light:#B5695977;--shiki-dark:#C98A7D77;"> &#39;</span><span style="--shiki-light:#B56959;--shiki-dark:#C98A7D;">vuepress</span><span style="--shiki-light:#B5695977;--shiki-dark:#C98A7D77;">&#39;</span>`,5)]),o[98]||=r(`
`,-1),a(`span`,B,[o[81]||=a(`span`,{style:{"--shiki-light":`#1E754F`,"--shiki-dark":`#4D9375`}},`import`,-1),o[82]||=a(`span`,{style:{"--shiki-light":`#999999`,"--shiki-dark":`#666666`}},` {`,-1),o[83]||=a(`span`,{style:{"--shiki-light":`#B07D48`,"--shiki-dark":`#BD976A`}},` `,-1),a(`span`,V,[n(Q,{class:`twoslash-hover`,"popper-class":`shiki twoslash-floating vp-copy-ignore vp-code`,theme:`twoslash`},{popper:e(({})=>[...o[79]||=[a(`span`,{class:`twoslash-popup-container vp-copy-ignore`},[a(`code`,{class:`twoslash-popup-code`},[a(`span`,{style:{"--shiki-light":`#AB5959`,"--shiki-dark":`#CB7676`}},`function`),a(`span`,{style:{"--shiki-light":`#59873A`,"--shiki-dark":`#80A665`}},` plumeTheme`),a(`span`,{style:{"--shiki-light":`#999999`,"--shiki-dark":`#666666`}},`(`),a(`span`,{style:{"--shiki-light":`#B07D48`,"--shiki-dark":`#BD976A`}},`options`),a(`span`,{style:{"--shiki-light":`#AB5959`,"--shiki-dark":`#CB7676`}},`?`),a(`span`,{style:{"--shiki-light":`#999999`,"--shiki-dark":`#666666`}},`: `),a(`span`,{style:{"--shiki-light":`#2E8F82`,"--shiki-dark":`#5DA994`}},`ThemeOptions`),a(`span`,{style:{"--shiki-light":`#999999`,"--shiki-dark":`#666666`}},`):`),a(`span`,{style:{"--shiki-light":`#2E8F82`,"--shiki-dark":`#5DA994`}},` Theme`)]),a(`div`,{class:`twoslash-popup-docs vp-doc`,"vp-content":``},[a(`p`,null,`VuePress Theme Plume`),r(`
`),a(`p`,null,`VuePress 主题 Plume`)]),a(`div`,{class:`twoslash-popup-docs twoslash-popup-docs-tags vp-doc`,"vp-content":``},[a(`span`,{class:`twoslash-popup-docs-tag`},[a(`span`,{class:`twoslash-popup-docs-tag-name`},`@param`),a(`span`,{class:`twoslash-popup-docs-tag-value`},[a(`code`,null,`options`),r(` Theme options / 主题配置`)])]),a(`span`,{class:`twoslash-popup-docs-tag`},[a(`span`,{class:`twoslash-popup-docs-tag-name`},`@example`),a(`span`,{class:`twoslash-popup-docs-tag-value`},[a(`div`,{class:`language-ts`,"data-ext":`ts`,"data-title":`ts`,"data-highlighter":`shiki`,style:{"--shiki-light":`#393a34`,"--shiki-dark":`#dbd7caee`,"--shiki-light-bg":`#ffffff`,"--shiki-dark-bg":`#121212`}},[a(`pre`,{class:`shiki shiki-themes vitesse-light vitesse-dark`,style:{"--shiki-light":`#393a34`,"--shiki-dark":`#dbd7caee`,"--shiki-light-bg":`#ffffff`,"--shiki-dark-bg":`#121212`},tabindex:`0`},[a(`code`,null,[a(`span`,{class:`line`},[a(`span`,{style:{"--shiki-light":`#1E754F`,"--shiki-dark":`#4D9375`}},`import`),a(`span`,{style:{"--shiki-light":`#999999`,"--shiki-dark":`#666666`}},` {`),a(`span`,{style:{"--shiki-light":`#B07D48`,"--shiki-dark":`#BD976A`}},` defineUserConfig`),a(`span`,{style:{"--shiki-light":`#999999`,"--shiki-dark":`#666666`}},` }`),a(`span`,{style:{"--shiki-light":`#1E754F`,"--shiki-dark":`#4D9375`}},` from`),a(`span`,{style:{"--shiki-light":`#B5695977`,"--shiki-dark":`#C98A7D77`}},` '`),a(`span`,{style:{"--shiki-light":`#B56959`,"--shiki-dark":`#C98A7D`}},`vuepress`),a(`span`,{style:{"--shiki-light":`#B5695977`,"--shiki-dark":`#C98A7D77`}},`'`)]),r(`
`),a(`span`,{class:`line`},[a(`span`,{style:{"--shiki-light":`#1E754F`,"--shiki-dark":`#4D9375`}},`import`),a(`span`,{style:{"--shiki-light":`#999999`,"--shiki-dark":`#666666`}},` {`),a(`span`,{style:{"--shiki-light":`#B07D48`,"--shiki-dark":`#BD976A`}},` plumeTheme`),a(`span`,{style:{"--shiki-light":`#999999`,"--shiki-dark":`#666666`}},` }`),a(`span`,{style:{"--shiki-light":`#1E754F`,"--shiki-dark":`#4D9375`}},` from`),a(`span`,{style:{"--shiki-light":`#B5695977`,"--shiki-dark":`#C98A7D77`}},` '`),a(`span`,{style:{"--shiki-light":`#B56959`,"--shiki-dark":`#C98A7D`}},`vuepress-theme-plume`),a(`span`,{style:{"--shiki-light":`#B5695977`,"--shiki-dark":`#C98A7D77`}},`'`)]),r(`
`),a(`span`,{class:`line`}),r(`
`),a(`span`,{class:`line`},[a(`span`,{style:{"--shiki-light":`#1E754F`,"--shiki-dark":`#4D9375`}},`export`),a(`span`,{style:{"--shiki-light":`#1E754F`,"--shiki-dark":`#4D9375`}},` default`),a(`span`,{style:{"--shiki-light":`#59873A`,"--shiki-dark":`#80A665`}},` defineUserConfig`),a(`span`,{style:{"--shiki-light":`#999999`,"--shiki-dark":`#666666`}},`({`)]),r(`
`),a(`span`,{class:`line`},[a(`span`,{style:{"--shiki-light":`#998418`,"--shiki-dark":`#B8A965`}},` theme`),a(`span`,{style:{"--shiki-light":`#999999`,"--shiki-dark":`#666666`}},`: `),a(`span`,{style:{"--shiki-light":`#59873A`,"--shiki-dark":`#80A665`}},`plumeTheme`),a(`span`,{style:{"--shiki-light":`#999999`,"--shiki-dark":`#666666`}},`({`)]),r(`
`),a(`span`,{class:`line`},[a(`span`,{style:{"--shiki-light":`#A0ADA0`,"--shiki-dark":`#758575DD`}},` // ...options`)]),r(`
`),a(`span`,{class:`line`},[a(`span`,{style:{"--shiki-light":`#999999`,"--shiki-dark":`#666666`}},` })`)]),r(`
`),a(`span`,{class:`line`},[a(`span`,{style:{"--shiki-light":`#999999`,"--shiki-dark":`#666666`}},`})`)])])])])])])])],-1)]]),default:e(()=>[o[80]||=a(`span`,null,`plumeTheme`,-1)]),_:1})]),o[84]||=i(`<span style="--shiki-light:#999999;--shiki-dark:#666666;"> }</span><span style="--shiki-light:#1E754F;--shiki-dark:#4D9375;"> from</span><span style="--shiki-light:#B5695977;--shiki-dark:#C98A7D77;"> &#39;</span><span style="--shiki-light:#B56959;--shiki-dark:#C98A7D;">vuepress-theme-plume</span><span style="--shiki-light:#B5695977;--shiki-dark:#C98A7D77;">&#39;</span>`,5)]),o[99]||=r(`
`,-1),o[100]||=a(`span`,{class:`line`},null,-1),o[101]||=r(`
`,-1),a(`span`,H,[o[87]||=a(`span`,{style:{"--shiki-light":`#1E754F`,"--shiki-dark":`#4D9375`}},`export`,-1),o[88]||=a(`span`,{style:{"--shiki-light":`#1E754F`,"--shiki-dark":`#4D9375`}},` default`,-1),o[89]||=a(`span`,{style:{"--shiki-light":`#59873A`,"--shiki-dark":`#80A665`}},` `,-1),a(`span`,U,[n(Q,{class:`twoslash-hover`,"popper-class":`shiki twoslash-floating vp-copy-ignore vp-code`,theme:`twoslash`},{popper:e(({})=>[...o[85]||=[a(`span`,{class:`twoslash-popup-container vp-copy-ignore`},[a(`code`,{class:`twoslash-popup-code`},[a(`span`,{style:{"--shiki-light":`#AB5959`,"--shiki-dark":`#CB7676`}},`function`),a(`span`,{style:{"--shiki-light":`#59873A`,"--shiki-dark":`#80A665`}},` defineUserConfig`),a(`span`,{style:{"--shiki-light":`#999999`,"--shiki-dark":`#666666`}},`(`),a(`span`,{style:{"--shiki-light":`#B07D48`,"--shiki-dark":`#BD976A`}},`config`),a(`span`,{style:{"--shiki-light":`#999999`,"--shiki-dark":`#666666`}},`: `),a(`span`,{style:{"--shiki-light":`#2E8F82`,"--shiki-dark":`#5DA994`}},`UserConfig`),a(`span`,{style:{"--shiki-light":`#999999`,"--shiki-dark":`#666666`}},`):`),a(`span`,{style:{"--shiki-light":`#2E8F82`,"--shiki-dark":`#5DA994`}},` UserConfig`)])],-1)]]),default:e(()=>[o[86]||=a(`span`,null,`defineUserConfig`,-1)]),_:1})]),o[90]||=a(`span`,{style:{"--shiki-light":`#999999`,"--shiki-dark":`#666666`}},`({`,-1)]),o[102]||=r(`
`,-1),a(`span`,W,[o[95]||=a(`span`,{style:{"--shiki-light":`#998418`,"--shiki-dark":`#B8A965`}},` `,-1),a(`span`,G,[n(Q,{class:`twoslash-hover`,"popper-class":`shiki twoslash-floating vp-copy-ignore vp-code`,theme:`twoslash`},{popper:e(({})=>[...o[91]||=[a(`span`,{class:`twoslash-popup-container vp-copy-ignore`},[a(`code`,{class:`twoslash-popup-code`},[a(`span`,{style:{"--shiki-light":`#B07D48`,"--shiki-dark":`#BD976A`}},`theme`),a(`span`,{style:{"--shiki-light":`#AB5959`,"--shiki-dark":`#CB7676`}},`?:`),a(`span`,{style:{"--shiki-light":`#B07D48`,"--shiki-dark":`#BD976A`}},` Theme`),a(`span`,{style:{"--shiki-light":`#AB5959`,"--shiki-dark":`#CB7676`}},` |`),a(`span`,{style:{"--shiki-light":`#AB5959`,"--shiki-dark":`#CB7676`}},` undefined`)]),a(`div`,{class:`twoslash-popup-docs vp-doc`,"vp-content":``},[a(`p`,null,`Vuepress theme`)]),a(`div`,{class:`twoslash-popup-docs twoslash-popup-docs-tags vp-doc`,"vp-content":``},[a(`span`,{class:`twoslash-popup-docs-tag`},[a(`span`,{class:`twoslash-popup-docs-tag-name`},`@required`)])])],-1)]]),default:e(()=>[o[92]||=a(`span`,null,`theme`,-1)]),_:1})]),o[96]||=a(`span`,{style:{"--shiki-light":`#999999`,"--shiki-dark":`#666666`}},`: `,-1),a(`span`,K,[n(Q,{class:`twoslash-hover`,"popper-class":`shiki twoslash-floating vp-copy-ignore vp-code`,theme:`twoslash`},{popper:e(({})=>[...o[93]||=[a(`span`,{class:`twoslash-popup-container vp-copy-ignore`},[a(`code`,{class:`twoslash-popup-code`},[a(`span`,{style:{"--shiki-light":`#AB5959`,"--shiki-dark":`#CB7676`}},`function`),a(`span`,{style:{"--shiki-light":`#59873A`,"--shiki-dark":`#80A665`}},` plumeTheme`),a(`span`,{style:{"--shiki-light":`#999999`,"--shiki-dark":`#666666`}},`(`),a(`span`,{style:{"--shiki-light":`#B07D48`,"--shiki-dark":`#BD976A`}},`options`),a(`span`,{style:{"--shiki-light":`#AB5959`,"--shiki-dark":`#CB7676`}},`?`),a(`span`,{style:{"--shiki-light":`#999999`,"--shiki-dark":`#666666`}},`: `),a(`span`,{style:{"--shiki-light":`#2E8F82`,"--shiki-dark":`#5DA994`}},`ThemeOptions`),a(`span`,{style:{"--shiki-light":`#999999`,"--shiki-dark":`#666666`}},`):`),a(`span`,{style:{"--shiki-light":`#2E8F82`,"--shiki-dark":`#5DA994`}},` Theme`)]),a(`div`,{class:`twoslash-popup-docs vp-doc`,"vp-content":``},[a(`p`,null,`VuePress Theme Plume`),r(`
`),a(`p`,null,`VuePress 主题 Plume`)]),a(`div`,{class:`twoslash-popup-docs twoslash-popup-docs-tags vp-doc`,"vp-content":``},[a(`span`,{class:`twoslash-popup-docs-tag`},[a(`span`,{class:`twoslash-popup-docs-tag-name`},`@param`),a(`span`,{class:`twoslash-popup-docs-tag-value`},[a(`code`,null,`options`),r(` Theme options / 主题配置`)])]),a(`span`,{class:`twoslash-popup-docs-tag`},[a(`span`,{class:`twoslash-popup-docs-tag-name`},`@example`),a(`span`,{class:`twoslash-popup-docs-tag-value`},[a(`div`,{class:`language-ts`,"data-ext":`ts`,"data-title":`ts`,"data-highlighter":`shiki`,style:{"--shiki-light":`#393a34`,"--shiki-dark":`#dbd7caee`,"--shiki-light-bg":`#ffffff`,"--shiki-dark-bg":`#121212`}},[a(`pre`,{class:`shiki shiki-themes vitesse-light vitesse-dark`,style:{"--shiki-light":`#393a34`,"--shiki-dark":`#dbd7caee`,"--shiki-light-bg":`#ffffff`,"--shiki-dark-bg":`#121212`},tabindex:`0`},[a(`code`,null,[a(`span`,{class:`line`},[a(`span`,{style:{"--shiki-light":`#1E754F`,"--shiki-dark":`#4D9375`}},`import`),a(`span`,{style:{"--shiki-light":`#999999`,"--shiki-dark":`#666666`}},` {`),a(`span`,{style:{"--shiki-light":`#B07D48`,"--shiki-dark":`#BD976A`}},` defineUserConfig`),a(`span`,{style:{"--shiki-light":`#999999`,"--shiki-dark":`#666666`}},` }`),a(`span`,{style:{"--shiki-light":`#1E754F`,"--shiki-dark":`#4D9375`}},` from`),a(`span`,{style:{"--shiki-light":`#B5695977`,"--shiki-dark":`#C98A7D77`}},` '`),a(`span`,{style:{"--shiki-light":`#B56959`,"--shiki-dark":`#C98A7D`}},`vuepress`),a(`span`,{style:{"--shiki-light":`#B5695977`,"--shiki-dark":`#C98A7D77`}},`'`)]),r(`
`),a(`span`,{class:`line`},[a(`span`,{style:{"--shiki-light":`#1E754F`,"--shiki-dark":`#4D9375`}},`import`),a(`span`,{style:{"--shiki-light":`#999999`,"--shiki-dark":`#666666`}},` {`),a(`span`,{style:{"--shiki-light":`#B07D48`,"--shiki-dark":`#BD976A`}},` plumeTheme`),a(`span`,{style:{"--shiki-light":`#999999`,"--shiki-dark":`#666666`}},` }`),a(`span`,{style:{"--shiki-light":`#1E754F`,"--shiki-dark":`#4D9375`}},` from`),a(`span`,{style:{"--shiki-light":`#B5695977`,"--shiki-dark":`#C98A7D77`}},` '`),a(`span`,{style:{"--shiki-light":`#B56959`,"--shiki-dark":`#C98A7D`}},`vuepress-theme-plume`),a(`span`,{style:{"--shiki-light":`#B5695977`,"--shiki-dark":`#C98A7D77`}},`'`)]),r(`
`),a(`span`,{class:`line`}),r(`
`),a(`span`,{class:`line`},[a(`span`,{style:{"--shiki-light":`#1E754F`,"--shiki-dark":`#4D9375`}},`export`),a(`span`,{style:{"--shiki-light":`#1E754F`,"--shiki-dark":`#4D9375`}},` default`),a(`span`,{style:{"--shiki-light":`#59873A`,"--shiki-dark":`#80A665`}},` defineUserConfig`),a(`span`,{style:{"--shiki-light":`#999999`,"--shiki-dark":`#666666`}},`({`)]),r(`
`),a(`span`,{class:`line`},[a(`span`,{style:{"--shiki-light":`#998418`,"--shiki-dark":`#B8A965`}},` theme`),a(`span`,{style:{"--shiki-light":`#999999`,"--shiki-dark":`#666666`}},`: `),a(`span`,{style:{"--shiki-light":`#59873A`,"--shiki-dark":`#80A665`}},`plumeTheme`),a(`span`,{style:{"--shiki-light":`#999999`,"--shiki-dark":`#666666`}},`({`)]),r(`
`),a(`span`,{class:`line`},[a(`span`,{style:{"--shiki-light":`#A0ADA0`,"--shiki-dark":`#758575DD`}},` // ...options`)]),r(`
`),a(`span`,{class:`line`},[a(`span`,{style:{"--shiki-light":`#999999`,"--shiki-dark":`#666666`}},` })`)]),r(`
`),a(`span`,{class:`line`},[a(`span`,{style:{"--shiki-light":`#999999`,"--shiki-dark":`#666666`}},`})`)])])])])])])])],-1)]]),default:e(()=>[o[94]||=a(`span`,null,`plumeTheme`,-1)]),_:1})]),o[97]||=a(`span`,{style:{"--shiki-light":`#999999`,"--shiki-dark":`#666666`}},`({`,-1)]),o[103]||=i(`
<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>
<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>`,8)])])])]),o[219]||=a(`p`,null,`然而,修改此文件会导致 VuePress 服务重启并全量刷新。对于小型站点,这个过程很快;但对于内容较多的站点,每次重启都需要较长时间。`,-1),a(`p`,null,[o[104]||=r(`频繁修改配置文件还容易导致 VuePress `,-1),o[105]||=a(`mark`,{class:`caution`},`服务崩溃`,-1),o[106]||=r(),n(Z,{provider:`iconify`,name:`twemoji:angry-face`}),o[107]||=r(`,需要手动重启服务,严重影响内容编写效率。`,-1)]),o[220]||=a(`p`,null,[a(`strong`,null,`解决方案:主题热更新配置`),r(``)],-1),a(`p`,null,[o[108]||=r(`主题提供了 `,-1),o[109]||=a(`code`,null,`plume.config.ts`,-1),o[110]||=r(` 配置文件,`,-1),o[111]||=a(`mark`,{class:`tip`},`对该文件的修改支持热更新,无需重启服务`,-1),o[112]||=r(),n(Z,{provider:`iconify`,name:`twemoji:confetti-ball`}),o[113]||=r(``,-1)]),o[221]||=i(`<p>您可以在其中配置支持热更新的字段,如 <code>navbar</code>、<code>profile</code> 等。</p><div class="hint-container tip"><p class="hint-container-title">提示</p><p>这些字段仍可在 VuePress 配置文件的 <code>theme</code> 中配置,但主题配置文件的设置最终会合并到主配置中。</p><p>为避免数据重复,请勿在两地同时配置同一字段。</p></div><details class="hint-container details"><summary>什么是热更新?</summary><p><strong>热更新</strong> 是一种开发技术,在 VuePress 中体现为:</p><ul><li>配置修改实时生效,无需重启服务,浏览器不刷新页面</li><li>页面修改实时生效,浏览器无刷新更新内容</li></ul></details><h3 id="配置方法" tabindex="-1"><a class="header-anchor" href="#配置方法"><span>配置方法</span></a></h3><p>在 VuePress 配置文件同级目录下创建 <code>plume.config.ts</code> 文件:</p>`,5),a(`div`,q,[n(Je,{text:`eJzT43o0ZcqjKQ1ApJCSn1zMpQAECCG9stLUgqLUYog4RG4OVC45Py8tM12vBFkOpq8gpzQ3VQ+uAgCrwyny`,encode:``,"aria-label":`复制`,"data-copied":`已复制`}),n($,{expanded:``,type:`folder`,filename:`docs`,level:0},{icon:e(()=>[n(Z,{provider:`iconify`,name:`vscode-icons:folder-type-docs`})]),default:e(()=>[n($,{expanded:``,type:`folder`,filename:`.vuepress`,level:1},{icon:e(()=>[n(Z,{provider:`iconify`,name:`vscode-icons:default-folder`})]),default:e(()=>[n($,{type:`file`,filename:`config.ts`,level:2},{icon:e(()=>[n(Z,{provider:`iconify`,name:`vscode-icons:file-type-typescript`})]),_:1}),n($,{focus:``,type:`file`,filename:`plume.config.ts`,level:2},{icon:e(()=>[n(Z,{provider:`iconify`,name:`vscode-icons:file-type-typescript`})]),_:1})]),_:1})]),_:1})]),a(`div`,J,[a(`div`,Y,[a(`span`,ae,[n(Z,{provider:`iconify`,name:`vscode-icons:file-type-typescript`}),o[114]||=r(`plume.config.ts`,-1)])]),a(`div`,oe,[a(`pre`,se,[a(`code`,ce,[a(`span`,le,[o[117]||=a(`span`,{style:{"--shiki-light":`#1E754F`,"--shiki-dark":`#4D9375`}},`import`,-1),o[118]||=a(`span`,{style:{"--shiki-light":`#999999`,"--shiki-dark":`#666666`}},` {`,-1),o[119]||=a(`span`,{style:{"--shiki-light":`#B07D48`,"--shiki-dark":`#BD976A`}},` `,-1),a(`span`,ue,[n(Q,{class:`twoslash-hover`,"popper-class":`shiki twoslash-floating vp-copy-ignore vp-code`,theme:`twoslash`},{popper:e(({})=>[...o[115]||=[a(`span`,{class:`twoslash-popup-container vp-copy-ignore`},[a(`code`,{class:`twoslash-popup-code`},[a(`span`,{style:{"--shiki-light":`#AB5959`,"--shiki-dark":`#CB7676`}},`function`),a(`span`,{style:{"--shiki-light":`#59873A`,"--shiki-dark":`#80A665`}},` defineThemeConfig`),a(`span`,{style:{"--shiki-light":`#999999`,"--shiki-dark":`#666666`}},`(`),a(`span`,{style:{"--shiki-light":`#B07D48`,"--shiki-dark":`#BD976A`}},`config`),a(`span`,{style:{"--shiki-light":`#999999`,"--shiki-dark":`#666666`}},`: `),a(`span`,{style:{"--shiki-light":`#2E8F82`,"--shiki-dark":`#5DA994`}},`ThemeConfig`),a(`span`,{style:{"--shiki-light":`#999999`,"--shiki-dark":`#666666`}},`):`),a(`span`,{style:{"--shiki-light":`#2E8F82`,"--shiki-dark":`#5DA994`}},` ThemeConfig`)]),a(`div`,{class:`twoslash-popup-docs vp-doc`,"vp-content":``},[a(`p`,null,[r(`Theme configuration helper function, used in separate `),a(`code`,null,`plume.config.ts`)]),r(`
`),a(`p`,null,[r(`主题配置,在单独的 `),a(`code`,null,`plume.config.ts`),r(` 中使用的类型帮助函数`)])])],-1)]]),default:e(()=>[o[116]||=a(`span`,null,`defineThemeConfig`,-1)]),_:1})]),o[120]||=i(`<span style="--shiki-light:#999999;--shiki-dark:#666666;"> }</span><span style="--shiki-light:#1E754F;--shiki-dark:#4D9375;"> from</span><span style="--shiki-light:#B5695977;--shiki-dark:#C98A7D77;"> &#39;</span><span style="--shiki-light:#B56959;--shiki-dark:#C98A7D;">vuepress-theme-plume</span><span style="--shiki-light:#B5695977;--shiki-dark:#C98A7D77;">&#39;</span>`,5)]),o[147]||=r(`
`,-1),a(`span`,de,[o[123]||=a(`span`,{style:{"--shiki-light":`#1E754F`,"--shiki-dark":`#4D9375`}},`import`,-1),o[124]||=a(`span`,{style:{"--shiki-light":`#B07D48`,"--shiki-dark":`#BD976A`}},` `,-1),a(`span`,fe,[n(Q,{class:`twoslash-hover`,"popper-class":`shiki twoslash-floating vp-copy-ignore vp-code`,theme:`twoslash`},{popper:e(({})=>[...o[121]||=[a(`span`,{class:`twoslash-popup-container vp-copy-ignore`},[a(`code`,{class:`twoslash-popup-code`},[a(`span`,{style:{"--shiki-light":`#1E754F`,"--shiki-dark":`#4D9375`}},`import`),a(`span`,{style:{"--shiki-light":`#B07D48`,"--shiki-dark":`#BD976A`}},` navbar`)])],-1)]]),default:e(()=>[o[122]||=a(`span`,null,`navbar`,-1)]),_:1})]),o[125]||=a(`span`,{style:{"--shiki-light":`#1E754F`,"--shiki-dark":`#4D9375`}},` from`,-1),o[126]||=a(`span`,{style:{"--shiki-light":`#B5695977`,"--shiki-dark":`#C98A7D77`}},` '`,-1),o[127]||=a(`span`,{style:{"--shiki-light":`#B56959`,"--shiki-dark":`#C98A7D`}},`./navbar`,-1),o[128]||=a(`span`,{style:{"--shiki-light":`#B5695977`,"--shiki-dark":`#C98A7D77`}},`'`,-1)]),o[148]||=r(`
`,-1),o[149]||=a(`span`,{class:`line`},null,-1),o[150]||=r(`
`,-1),a(`span`,pe,[o[131]||=a(`span`,{style:{"--shiki-light":`#1E754F`,"--shiki-dark":`#4D9375`}},`export`,-1),o[132]||=a(`span`,{style:{"--shiki-light":`#1E754F`,"--shiki-dark":`#4D9375`}},` default`,-1),o[133]||=a(`span`,{style:{"--shiki-light":`#59873A`,"--shiki-dark":`#80A665`}},` `,-1),a(`span`,me,[n(Q,{class:`twoslash-hover`,"popper-class":`shiki twoslash-floating vp-copy-ignore vp-code`,theme:`twoslash`},{popper:e(({})=>[...o[129]||=[a(`span`,{class:`twoslash-popup-container vp-copy-ignore`},[a(`code`,{class:`twoslash-popup-code`},[a(`span`,{style:{"--shiki-light":`#AB5959`,"--shiki-dark":`#CB7676`}},`function`),a(`span`,{style:{"--shiki-light":`#59873A`,"--shiki-dark":`#80A665`}},` defineThemeConfig`),a(`span`,{style:{"--shiki-light":`#999999`,"--shiki-dark":`#666666`}},`(`),a(`span`,{style:{"--shiki-light":`#B07D48`,"--shiki-dark":`#BD976A`}},`config`),a(`span`,{style:{"--shiki-light":`#999999`,"--shiki-dark":`#666666`}},`: `),a(`span`,{style:{"--shiki-light":`#2E8F82`,"--shiki-dark":`#5DA994`}},`ThemeConfig`),a(`span`,{style:{"--shiki-light":`#999999`,"--shiki-dark":`#666666`}},`):`),a(`span`,{style:{"--shiki-light":`#2E8F82`,"--shiki-dark":`#5DA994`}},` ThemeConfig`)]),a(`div`,{class:`twoslash-popup-docs vp-doc`,"vp-content":``},[a(`p`,null,[r(`Theme configuration helper function, used in separate `),a(`code`,null,`plume.config.ts`)]),r(`
`),a(`p`,null,[r(`主题配置,在单独的 `),a(`code`,null,`plume.config.ts`),r(` 中使用的类型帮助函数`)])])],-1)]]),default:e(()=>[o[130]||=a(`span`,null,`defineThemeConfig`,-1)]),_:1})]),o[134]||=a(`span`,{style:{"--shiki-light":`#999999`,"--shiki-dark":`#666666`}},`({`,-1)]),o[151]||=r(`
`,-1),o[152]||=a(`span`,{class:`line`},[a(`span`,{style:{"--shiki-light":`#A0ADA0`,"--shiki-dark":`#758575DD`}},` // 主题配置`)],-1),o[153]||=r(`
`,-1),a(`span`,he,[o[137]||=a(`span`,{style:{"--shiki-light":`#998418`,"--shiki-dark":`#B8A965`}},` `,-1),a(`span`,ge,[n(Q,{class:`twoslash-hover`,"popper-class":`shiki twoslash-floating vp-copy-ignore vp-code`,theme:`twoslash`},{popper:e(({})=>[...o[135]||=[a(`span`,{class:`twoslash-popup-container vp-copy-ignore`},[a(`code`,{class:`twoslash-popup-code`},[a(`span`,{style:{"--shiki-light":`#B07D48`,"--shiki-dark":`#BD976A`}},`ThemeLocale`),a(`span`,{style:{"--shiki-light":`#999999`,"--shiki-dark":`#666666`}},`.`),a(`span`,{style:{"--shiki-light":`#B07D48`,"--shiki-dark":`#BD976A`}},`profile`),a(`span`,{style:{"--shiki-light":`#AB5959`,"--shiki-dark":`#CB7676`}},`?:`),a(`span`,{style:{"--shiki-light":`#B07D48`,"--shiki-dark":`#BD976A`}},` ProfileOptions`),a(`span`,{style:{"--shiki-light":`#AB5959`,"--shiki-dark":`#CB7676`}},` |`),a(`span`,{style:{"--shiki-light":`#AB5959`,"--shiki-dark":`#CB7676`}},` undefined`)]),a(`div`,{class:`twoslash-popup-docs vp-doc`,"vp-content":``},[a(`p`,null,`配置博主拥有者 个人资料`),r(`
`),a(`p`,null,`显示在博客右侧侧边栏`)])],-1)]]),default:e(()=>[o[136]||=a(`span`,null,`profile`,-1)]),_:1})]),o[138]||=a(`span`,{style:{"--shiki-light":`#999999`,"--shiki-dark":`#666666`}},`: {`,-1)]),o[154]||=r(`
`,-1),a(`span`,_e,[o[141]||=a(`span`,{style:{"--shiki-light":`#998418`,"--shiki-dark":`#B8A965`}},` `,-1),a(`span`,ve,[n(Q,{class:`twoslash-hover`,"popper-class":`shiki twoslash-floating vp-copy-ignore vp-code`,theme:`twoslash`},{popper:e(({})=>[...o[139]||=[a(`span`,{class:`twoslash-popup-container vp-copy-ignore`},[a(`code`,{class:`twoslash-popup-code`},[a(`span`,{style:{"--shiki-light":`#B07D48`,"--shiki-dark":`#BD976A`}},`ProfileOptions`),a(`span`,{style:{"--shiki-light":`#999999`,"--shiki-dark":`#666666`}},`.`),a(`span`,{style:{"--shiki-light":`#B07D48`,"--shiki-dark":`#BD976A`}},`name`),a(`span`,{style:{"--shiki-light":`#AB5959`,"--shiki-dark":`#CB7676`}},`?:`),a(`span`,{style:{"--shiki-light":`#B07D48`,"--shiki-dark":`#BD976A`}},` string`),a(`span`,{style:{"--shiki-light":`#AB5959`,"--shiki-dark":`#CB7676`}},` |`),a(`span`,{style:{"--shiki-light":`#AB5959`,"--shiki-dark":`#CB7676`}},` undefined`)]),a(`div`,{class:`twoslash-popup-docs vp-doc`,"vp-content":``},[a(`p`,null,`名称`)])],-1)]]),default:e(()=>[o[140]||=a(`span`,null,`name`,-1)]),_:1})]),o[142]||=i(`<span style="--shiki-light:#999999;--shiki-dark:#666666;">: </span><span style="--shiki-light:#B5695977;--shiki-dark:#C98A7D77;">&#39;</span><span style="--shiki-light:#B56959;--shiki-dark:#C98A7D;">Your name</span><span style="--shiki-light:#B5695977;--shiki-dark:#C98A7D77;">&#39;</span><span style="--shiki-light:#999999;--shiki-dark:#666666;">,</span>`,5)]),o[155]||=r(`
`,-1),o[156]||=a(`span`,{class:`line`},[a(`span`,{style:{"--shiki-light":`#999999`,"--shiki-dark":`#666666`}},` },`)],-1),o[157]||=r(`
`,-1),a(`span`,ye,[o[145]||=a(`span`,{style:{"--shiki-light":`#B07D48`,"--shiki-dark":`#BD976A`}},` `,-1),a(`span`,be,[n(Q,{class:`twoslash-hover`,"popper-class":`shiki twoslash-floating vp-copy-ignore vp-code`,theme:`twoslash`},{popper:e(({})=>[...o[143]||=[a(`span`,{class:`twoslash-popup-container vp-copy-ignore`},[a(`code`,{class:`twoslash-popup-code`},[a(`span`,{style:{"--shiki-light":`#B07D48`,"--shiki-dark":`#BD976A`}},`ThemeLocale`),a(`span`,{style:{"--shiki-light":`#999999`,"--shiki-dark":`#666666`}},`.`),a(`span`,{style:{"--shiki-light":`#B07D48`,"--shiki-dark":`#BD976A`}},`navbar`),a(`span`,{style:{"--shiki-light":`#AB5959`,"--shiki-dark":`#CB7676`}},`?:`),a(`span`,{style:{"--shiki-light":`#1E754F`,"--shiki-dark":`#4D9375`}},` false`),a(`span`,{style:{"--shiki-light":`#AB5959`,"--shiki-dark":`#CB7676`}},` |`),a(`span`,{style:{"--shiki-light":`#B07D48`,"--shiki-dark":`#BD976A`}},` ThemeNavItem`),a(`span`,{style:{"--shiki-light":`#999999`,"--shiki-dark":`#666666`}},`[]`),a(`span`,{style:{"--shiki-light":`#AB5959`,"--shiki-dark":`#CB7676`}},` |`),a(`span`,{style:{"--shiki-light":`#AB5959`,"--shiki-dark":`#CB7676`}},` undefined`)]),a(`div`,{class:`twoslash-popup-docs vp-doc`,"vp-content":``},[a(`p`,null,`导航栏配置`),r(`
`),a(`p`,null,[r(`设置为 `),a(`code`,null,`false`),r(` 将会禁用导航栏`)])])],-1)]]),default:e(()=>[o[144]||=a(`span`,null,`navbar`,-1)]),_:1})]),o[146]||=a(`span`,{style:{"--shiki-light":`#999999`,"--shiki-dark":`#666666`}},`,`,-1)]),o[158]||=r(`
`,-1),o[159]||=a(`span`,{class:`line`},[a(`span`,{style:{"--shiki-light":`#999999`,"--shiki-dark":`#666666`}},`})`)],-1)])])])]),o[222]||=i(`<p><code>defineThemeConfig(config)</code> 函数提供完整的类型提示。除 <code>plugins</code> 外,大多数配置都可在此文件中定义。</p><div class="hint-container warning"><p class="hint-container-title">注意事项</p><ul><li>主题配置文件仅支持部分热更新字段</li><li>避免在 VuePress 配置文件中重复配置已在主题配置文件中设置的字段</li></ul></div><h3 id="自定义配置文件路径" tabindex="-1"><a class="header-anchor" href="#自定义配置文件路径"><span>自定义配置文件路径</span></a></h3><p>如需使用非默认路径,可在 VuePress 配置中指定:</p>`,4),a(`div`,xe,[a(`div`,Se,[a(`span`,Ce,[n(Z,{provider:`iconify`,name:`vscode-icons:file-type-typescript`}),o[160]||=r(`.vuepress/config.ts`,-1)])]),a(`div`,we,[a(`pre`,Te,[a(`code`,Ee,[o[198]||=i(`<span class="line"><span style="--shiki-light:#1E754F;--shiki-dark:#4D9375;">import</span><span style="--shiki-light:#B07D48;--shiki-dark:#BD976A;"> </span><span style="--shiki-light:#B07D48;--shiki-dark:#BD976A;">path</span><span style="--shiki-light:#1E754F;--shiki-dark:#4D9375;"> from</span><span style="--shiki-light:#B5695977;--shiki-dark:#C98A7D77;"> &#39;</span><span style="--shiki-light:#B56959;--shiki-dark:#C98A7D;">node:path</span><span style="--shiki-light:#B5695977;--shiki-dark:#C98A7D77;">&#39;</span></span>
`,2),a(`span`,De,[o[163]||=a(`span`,{style:{"--shiki-light":`#1E754F`,"--shiki-dark":`#4D9375`}},`import`,-1),o[164]||=a(`span`,{style:{"--shiki-light":`#999999`,"--shiki-dark":`#666666`}},` {`,-1),o[165]||=a(`span`,{style:{"--shiki-light":`#B07D48`,"--shiki-dark":`#BD976A`}},` `,-1),a(`span`,Oe,[n(Q,{class:`twoslash-hover`,"popper-class":`shiki twoslash-floating vp-copy-ignore vp-code`,theme:`twoslash`},{popper:e(({})=>[...o[161]||=[a(`span`,{class:`twoslash-popup-container vp-copy-ignore`},[a(`code`,{class:`twoslash-popup-code`},[a(`span`,{style:{"--shiki-light":`#AB5959`,"--shiki-dark":`#CB7676`}},`const `),a(`span`,{style:{"--shiki-light":`#59873A`,"--shiki-dark":`#80A665`}},`defineUserConfig`),a(`span`,{style:{"--shiki-light":`#999999`,"--shiki-dark":`#666666`}},`: (`),a(`span`,{style:{"--shiki-light":`#B07D48`,"--shiki-dark":`#BD976A`}},`config`),a(`span`,{style:{"--shiki-light":`#999999`,"--shiki-dark":`#666666`}},`: `),a(`span`,{style:{"--shiki-light":`#2E8F82`,"--shiki-dark":`#5DA994`}},`UserConfig`),a(`span`,{style:{"--shiki-light":`#999999`,"--shiki-dark":`#666666`}},`) => `),a(`span`,{style:{"--shiki-light":`#2E8F82`,"--shiki-dark":`#5DA994`}},`UserConfig`)])],-1)]]),default:e(()=>[o[162]||=a(`span`,null,`defineUserConfig`,-1)]),_:1})]),o[166]||=i(`<span style="--shiki-light:#999999;--shiki-dark:#666666;"> }</span><span style="--shiki-light:#1E754F;--shiki-dark:#4D9375;"> from</span><span style="--shiki-light:#B5695977;--shiki-dark:#C98A7D77;"> &#39;</span><span style="--shiki-light:#B56959;--shiki-dark:#C98A7D;">vuepress</span><span style="--shiki-light:#B5695977;--shiki-dark:#C98A7D77;">&#39;</span>`,5)]),o[199]||=r(`
`,-1),a(`span`,ke,[o[169]||=a(`span`,{style:{"--shiki-light":`#1E754F`,"--shiki-dark":`#4D9375`}},`import`,-1),o[170]||=a(`span`,{style:{"--shiki-light":`#999999`,"--shiki-dark":`#666666`}},` {`,-1),o[171]||=a(`span`,{style:{"--shiki-light":`#B07D48`,"--shiki-dark":`#BD976A`}},` `,-1),a(`span`,Ae,[n(Q,{class:`twoslash-hover`,"popper-class":`shiki twoslash-floating vp-copy-ignore vp-code`,theme:`twoslash`},{popper:e(({})=>[...o[167]||=[a(`span`,{class:`twoslash-popup-container vp-copy-ignore`},[a(`code`,{class:`twoslash-popup-code`},[a(`span`,{style:{"--shiki-light":`#AB5959`,"--shiki-dark":`#CB7676`}},`function`),a(`span`,{style:{"--shiki-light":`#59873A`,"--shiki-dark":`#80A665`}},` plumeTheme`),a(`span`,{style:{"--shiki-light":`#999999`,"--shiki-dark":`#666666`}},`(`),a(`span`,{style:{"--shiki-light":`#B07D48`,"--shiki-dark":`#BD976A`}},`options`),a(`span`,{style:{"--shiki-light":`#AB5959`,"--shiki-dark":`#CB7676`}},`?`),a(`span`,{style:{"--shiki-light":`#999999`,"--shiki-dark":`#666666`}},`: `),a(`span`,{style:{"--shiki-light":`#2E8F82`,"--shiki-dark":`#5DA994`}},`ThemeOptions`),a(`span`,{style:{"--shiki-light":`#999999`,"--shiki-dark":`#666666`}},`):`),a(`span`,{style:{"--shiki-light":`#2E8F82`,"--shiki-dark":`#5DA994`}},` Theme`)]),a(`div`,{class:`twoslash-popup-docs vp-doc`,"vp-content":``},[a(`p`,null,`VuePress Theme Plume`),r(`
`),a(`p`,null,`VuePress 主题 Plume`)]),a(`div`,{class:`twoslash-popup-docs twoslash-popup-docs-tags vp-doc`,"vp-content":``},[a(`span`,{class:`twoslash-popup-docs-tag`},[a(`span`,{class:`twoslash-popup-docs-tag-name`},`@param`),a(`span`,{class:`twoslash-popup-docs-tag-value`},[a(`code`,null,`options`),r(` Theme options / 主题配置`)])]),a(`span`,{class:`twoslash-popup-docs-tag`},[a(`span`,{class:`twoslash-popup-docs-tag-name`},`@example`),a(`span`,{class:`twoslash-popup-docs-tag-value`},[a(`div`,{class:`language-ts`,"data-ext":`ts`,"data-title":`ts`,"data-highlighter":`shiki`,style:{"--shiki-light":`#393a34`,"--shiki-dark":`#dbd7caee`,"--shiki-light-bg":`#ffffff`,"--shiki-dark-bg":`#121212`}},[a(`pre`,{class:`shiki shiki-themes vitesse-light vitesse-dark`,style:{"--shiki-light":`#393a34`,"--shiki-dark":`#dbd7caee`,"--shiki-light-bg":`#ffffff`,"--shiki-dark-bg":`#121212`},tabindex:`0`},[a(`code`,null,[a(`span`,{class:`line`},[a(`span`,{style:{"--shiki-light":`#1E754F`,"--shiki-dark":`#4D9375`}},`import`),a(`span`,{style:{"--shiki-light":`#999999`,"--shiki-dark":`#666666`}},` {`),a(`span`,{style:{"--shiki-light":`#B07D48`,"--shiki-dark":`#BD976A`}},` defineUserConfig`),a(`span`,{style:{"--shiki-light":`#999999`,"--shiki-dark":`#666666`}},` }`),a(`span`,{style:{"--shiki-light":`#1E754F`,"--shiki-dark":`#4D9375`}},` from`),a(`span`,{style:{"--shiki-light":`#B5695977`,"--shiki-dark":`#C98A7D77`}},` '`),a(`span`,{style:{"--shiki-light":`#B56959`,"--shiki-dark":`#C98A7D`}},`vuepress`),a(`span`,{style:{"--shiki-light":`#B5695977`,"--shiki-dark":`#C98A7D77`}},`'`)]),r(`
`),a(`span`,{class:`line`},[a(`span`,{style:{"--shiki-light":`#1E754F`,"--shiki-dark":`#4D9375`}},`import`),a(`span`,{style:{"--shiki-light":`#999999`,"--shiki-dark":`#666666`}},` {`),a(`span`,{style:{"--shiki-light":`#B07D48`,"--shiki-dark":`#BD976A`}},` plumeTheme`),a(`span`,{style:{"--shiki-light":`#999999`,"--shiki-dark":`#666666`}},` }`),a(`span`,{style:{"--shiki-light":`#1E754F`,"--shiki-dark":`#4D9375`}},` from`),a(`span`,{style:{"--shiki-light":`#B5695977`,"--shiki-dark":`#C98A7D77`}},` '`),a(`span`,{style:{"--shiki-light":`#B56959`,"--shiki-dark":`#C98A7D`}},`vuepress-theme-plume`),a(`span`,{style:{"--shiki-light":`#B5695977`,"--shiki-dark":`#C98A7D77`}},`'`)]),r(`
`),a(`span`,{class:`line`}),r(`
`),a(`span`,{class:`line`},[a(`span`,{style:{"--shiki-light":`#1E754F`,"--shiki-dark":`#4D9375`}},`export`),a(`span`,{style:{"--shiki-light":`#1E754F`,"--shiki-dark":`#4D9375`}},` default`),a(`span`,{style:{"--shiki-light":`#59873A`,"--shiki-dark":`#80A665`}},` defineUserConfig`),a(`span`,{style:{"--shiki-light":`#999999`,"--shiki-dark":`#666666`}},`({`)]),r(`
`),a(`span`,{class:`line`},[a(`span`,{style:{"--shiki-light":`#998418`,"--shiki-dark":`#B8A965`}},` theme`),a(`span`,{style:{"--shiki-light":`#999999`,"--shiki-dark":`#666666`}},`: `),a(`span`,{style:{"--shiki-light":`#59873A`,"--shiki-dark":`#80A665`}},`plumeTheme`),a(`span`,{style:{"--shiki-light":`#999999`,"--shiki-dark":`#666666`}},`({`)]),r(`
`),a(`span`,{class:`line`},[a(`span`,{style:{"--shiki-light":`#A0ADA0`,"--shiki-dark":`#758575DD`}},` // ...options`)]),r(`
`),a(`span`,{class:`line`},[a(`span`,{style:{"--shiki-light":`#999999`,"--shiki-dark":`#666666`}},` })`)]),r(`
`),a(`span`,{class:`line`},[a(`span`,{style:{"--shiki-light":`#999999`,"--shiki-dark":`#666666`}},`})`)])])])])])])])],-1)]]),default:e(()=>[o[168]||=a(`span`,null,`plumeTheme`,-1)]),_:1})]),o[172]||=i(`<span style="--shiki-light:#999999;--shiki-dark:#666666;"> }</span><span style="--shiki-light:#1E754F;--shiki-dark:#4D9375;"> from</span><span style="--shiki-light:#B5695977;--shiki-dark:#C98A7D77;"> &#39;</span><span style="--shiki-light:#B56959;--shiki-dark:#C98A7D;">vuepress-theme-plume</span><span style="--shiki-light:#B5695977;--shiki-dark:#C98A7D77;">&#39;</span>`,5)]),o[200]||=r(`
`,-1),o[201]||=a(`span`,{class:`line`},null,-1),o[202]||=r(`
`,-1),a(`span`,je,[o[175]||=a(`span`,{style:{"--shiki-light":`#1E754F`,"--shiki-dark":`#4D9375`}},`export`,-1),o[176]||=a(`span`,{style:{"--shiki-light":`#1E754F`,"--shiki-dark":`#4D9375`}},` default`,-1),o[177]||=a(`span`,{style:{"--shiki-light":`#59873A`,"--shiki-dark":`#80A665`}},` `,-1),a(`span`,Me,[n(Q,{class:`twoslash-hover`,"popper-class":`shiki twoslash-floating vp-copy-ignore vp-code`,theme:`twoslash`},{popper:e(({})=>[...o[173]||=[a(`span`,{class:`twoslash-popup-container vp-copy-ignore`},[a(`code`,{class:`twoslash-popup-code`},[a(`span`,{style:{"--shiki-light":`#AB5959`,"--shiki-dark":`#CB7676`}},`function`),a(`span`,{style:{"--shiki-light":`#59873A`,"--shiki-dark":`#80A665`}},` defineUserConfig`),a(`span`,{style:{"--shiki-light":`#999999`,"--shiki-dark":`#666666`}},`(`),a(`span`,{style:{"--shiki-light":`#B07D48`,"--shiki-dark":`#BD976A`}},`config`),a(`span`,{style:{"--shiki-light":`#999999`,"--shiki-dark":`#666666`}},`: `),a(`span`,{style:{"--shiki-light":`#2E8F82`,"--shiki-dark":`#5DA994`}},`UserConfig`),a(`span`,{style:{"--shiki-light":`#999999`,"--shiki-dark":`#666666`}},`):`),a(`span`,{style:{"--shiki-light":`#2E8F82`,"--shiki-dark":`#5DA994`}},` UserConfig`)])],-1)]]),default:e(()=>[o[174]||=a(`span`,null,`defineUserConfig`,-1)]),_:1})]),o[178]||=a(`span`,{style:{"--shiki-light":`#999999`,"--shiki-dark":`#666666`}},`({`,-1)]),o[203]||=r(`
`,-1),a(`span`,Ne,[o[183]||=a(`span`,{style:{"--shiki-light":`#998418`,"--shiki-dark":`#B8A965`}},` `,-1),a(`span`,Pe,[n(Q,{class:`twoslash-hover`,"popper-class":`shiki twoslash-floating vp-copy-ignore vp-code`,theme:`twoslash`},{popper:e(({})=>[...o[179]||=[a(`span`,{class:`twoslash-popup-container vp-copy-ignore`},[a(`code`,{class:`twoslash-popup-code`},[a(`span`,{style:{"--shiki-light":`#B07D48`,"--shiki-dark":`#BD976A`}},`theme`),a(`span`,{style:{"--shiki-light":`#AB5959`,"--shiki-dark":`#CB7676`}},`?:`),a(`span`,{style:{"--shiki-light":`#B07D48`,"--shiki-dark":`#BD976A`}},` Theme`),a(`span`,{style:{"--shiki-light":`#AB5959`,"--shiki-dark":`#CB7676`}},` |`),a(`span`,{style:{"--shiki-light":`#AB5959`,"--shiki-dark":`#CB7676`}},` undefined`)]),a(`div`,{class:`twoslash-popup-docs vp-doc`,"vp-content":``},[a(`p`,null,`Vuepress theme`)]),a(`div`,{class:`twoslash-popup-docs twoslash-popup-docs-tags vp-doc`,"vp-content":``},[a(`span`,{class:`twoslash-popup-docs-tag`},[a(`span`,{class:`twoslash-popup-docs-tag-name`},`@required`)])])],-1)]]),default:e(()=>[o[180]||=a(`span`,null,`theme`,-1)]),_:1})]),o[184]||=a(`span`,{style:{"--shiki-light":`#999999`,"--shiki-dark":`#666666`}},`: `,-1),a(`span`,Fe,[n(Q,{class:`twoslash-hover`,"popper-class":`shiki twoslash-floating vp-copy-ignore vp-code`,theme:`twoslash`},{popper:e(({})=>[...o[181]||=[a(`span`,{class:`twoslash-popup-container vp-copy-ignore`},[a(`code`,{class:`twoslash-popup-code`},[a(`span`,{style:{"--shiki-light":`#AB5959`,"--shiki-dark":`#CB7676`}},`function`),a(`span`,{style:{"--shiki-light":`#59873A`,"--shiki-dark":`#80A665`}},` plumeTheme`),a(`span`,{style:{"--shiki-light":`#999999`,"--shiki-dark":`#666666`}},`(`),a(`span`,{style:{"--shiki-light":`#B07D48`,"--shiki-dark":`#BD976A`}},`options`),a(`span`,{style:{"--shiki-light":`#AB5959`,"--shiki-dark":`#CB7676`}},`?`),a(`span`,{style:{"--shiki-light":`#999999`,"--shiki-dark":`#666666`}},`: `),a(`span`,{style:{"--shiki-light":`#2E8F82`,"--shiki-dark":`#5DA994`}},`ThemeOptions`),a(`span`,{style:{"--shiki-light":`#999999`,"--shiki-dark":`#666666`}},`):`),a(`span`,{style:{"--shiki-light":`#2E8F82`,"--shiki-dark":`#5DA994`}},` Theme`)]),a(`div`,{class:`twoslash-popup-docs vp-doc`,"vp-content":``},[a(`p`,null,`VuePress Theme Plume`),r(`
`),a(`p`,null,`VuePress 主题 Plume`)]),a(`div`,{class:`twoslash-popup-docs twoslash-popup-docs-tags vp-doc`,"vp-content":``},[a(`span`,{class:`twoslash-popup-docs-tag`},[a(`span`,{class:`twoslash-popup-docs-tag-name`},`@param`),a(`span`,{class:`twoslash-popup-docs-tag-value`},[a(`code`,null,`options`),r(` Theme options / 主题配置`)])]),a(`span`,{class:`twoslash-popup-docs-tag`},[a(`span`,{class:`twoslash-popup-docs-tag-name`},`@example`),a(`span`,{class:`twoslash-popup-docs-tag-value`},[a(`div`,{class:`language-ts`,"data-ext":`ts`,"data-title":`ts`,"data-highlighter":`shiki`,style:{"--shiki-light":`#393a34`,"--shiki-dark":`#dbd7caee`,"--shiki-light-bg":`#ffffff`,"--shiki-dark-bg":`#121212`}},[a(`pre`,{class:`shiki shiki-themes vitesse-light vitesse-dark`,style:{"--shiki-light":`#393a34`,"--shiki-dark":`#dbd7caee`,"--shiki-light-bg":`#ffffff`,"--shiki-dark-bg":`#121212`},tabindex:`0`},[a(`code`,null,[a(`span`,{class:`line`},[a(`span`,{style:{"--shiki-light":`#1E754F`,"--shiki-dark":`#4D9375`}},`import`),a(`span`,{style:{"--shiki-light":`#999999`,"--shiki-dark":`#666666`}},` {`),a(`span`,{style:{"--shiki-light":`#B07D48`,"--shiki-dark":`#BD976A`}},` defineUserConfig`),a(`span`,{style:{"--shiki-light":`#999999`,"--shiki-dark":`#666666`}},` }`),a(`span`,{style:{"--shiki-light":`#1E754F`,"--shiki-dark":`#4D9375`}},` from`),a(`span`,{style:{"--shiki-light":`#B5695977`,"--shiki-dark":`#C98A7D77`}},` '`),a(`span`,{style:{"--shiki-light":`#B56959`,"--shiki-dark":`#C98A7D`}},`vuepress`),a(`span`,{style:{"--shiki-light":`#B5695977`,"--shiki-dark":`#C98A7D77`}},`'`)]),r(`
`),a(`span`,{class:`line`},[a(`span`,{style:{"--shiki-light":`#1E754F`,"--shiki-dark":`#4D9375`}},`import`),a(`span`,{style:{"--shiki-light":`#999999`,"--shiki-dark":`#666666`}},` {`),a(`span`,{style:{"--shiki-light":`#B07D48`,"--shiki-dark":`#BD976A`}},` plumeTheme`),a(`span`,{style:{"--shiki-light":`#999999`,"--shiki-dark":`#666666`}},` }`),a(`span`,{style:{"--shiki-light":`#1E754F`,"--shiki-dark":`#4D9375`}},` from`),a(`span`,{style:{"--shiki-light":`#B5695977`,"--shiki-dark":`#C98A7D77`}},` '`),a(`span`,{style:{"--shiki-light":`#B56959`,"--shiki-dark":`#C98A7D`}},`vuepress-theme-plume`),a(`span`,{style:{"--shiki-light":`#B5695977`,"--shiki-dark":`#C98A7D77`}},`'`)]),r(`
`),a(`span`,{class:`line`}),r(`
`),a(`span`,{class:`line`},[a(`span`,{style:{"--shiki-light":`#1E754F`,"--shiki-dark":`#4D9375`}},`export`),a(`span`,{style:{"--shiki-light":`#1E754F`,"--shiki-dark":`#4D9375`}},` default`),a(`span`,{style:{"--shiki-light":`#59873A`,"--shiki-dark":`#80A665`}},` defineUserConfig`),a(`span`,{style:{"--shiki-light":`#999999`,"--shiki-dark":`#666666`}},`({`)]),r(`
`),a(`span`,{class:`line`},[a(`span`,{style:{"--shiki-light":`#998418`,"--shiki-dark":`#B8A965`}},` theme`),a(`span`,{style:{"--shiki-light":`#999999`,"--shiki-dark":`#666666`}},`: `),a(`span`,{style:{"--shiki-light":`#59873A`,"--shiki-dark":`#80A665`}},`plumeTheme`),a(`span`,{style:{"--shiki-light":`#999999`,"--shiki-dark":`#666666`}},`({`)]),r(`
`),a(`span`,{class:`line`},[a(`span`,{style:{"--shiki-light":`#A0ADA0`,"--shiki-dark":`#758575DD`}},` // ...options`)]),r(`
`),a(`span`,{class:`line`},[a(`span`,{style:{"--shiki-light":`#999999`,"--shiki-dark":`#666666`}},` })`)]),r(`
`),a(`span`,{class:`line`},[a(`span`,{style:{"--shiki-light":`#999999`,"--shiki-dark":`#666666`}},`})`)])])])])])])])],-1)]]),default:e(()=>[o[182]||=a(`span`,null,`plumeTheme`,-1)]),_:1})]),o[185]||=a(`span`,{style:{"--shiki-light":`#999999`,"--shiki-dark":`#666666`}},`({`,-1)]),o[204]||=r(`
`,-1),o[205]||=a(`span`,{class:`line`},[a(`span`,{style:{"--shiki-light":`#A0ADA0`,"--shiki-dark":`#758575DD`}},` // 自定义配置文件路径`)],-1),o[206]||=r(`
`,-1),a(`span`,Ie,[o[192]||=a(`span`,{style:{"--shiki-light":`#998418`,"--shiki-dark":`#B8A965`}},` `,-1),a(`span`,Le,[n(Q,{class:`twoslash-hover`,"popper-class":`shiki twoslash-floating vp-copy-ignore vp-code`,theme:`twoslash`},{popper:e(({})=>[...o[186]||=[a(`span`,{class:`twoslash-popup-container vp-copy-ignore`},[a(`code`,{class:`twoslash-popup-code`},[a(`span`,{style:{"--shiki-light":`#B07D48`,"--shiki-dark":`#BD976A`}},`ThemeFeatureOptions`),a(`span`,{style:{"--shiki-light":`#999999`,"--shiki-dark":`#666666`}},`.`),a(`span`,{style:{"--shiki-light":`#B07D48`,"--shiki-dark":`#BD976A`}},`configFile`),a(`span`,{style:{"--shiki-light":`#AB5959`,"--shiki-dark":`#CB7676`}},`?:`),a(`span`,{style:{"--shiki-light":`#B07D48`,"--shiki-dark":`#BD976A`}},` string`),a(`span`,{style:{"--shiki-light":`#AB5959`,"--shiki-dark":`#CB7676`}},` |`),a(`span`,{style:{"--shiki-light":`#AB5959`,"--shiki-dark":`#CB7676`}},` undefined`)]),a(`div`,{class:`twoslash-popup-docs vp-doc`,"vp-content":``},[a(`p`,null,`Custom theme configuration file path
自定义主题配置文件路径`)])],-1)]]),default:e(()=>[o[187]||=a(`span`,null,`configFile`,-1)]),_:1})]),o[193]||=a(`span`,{style:{"--shiki-light":`#999999`,"--shiki-dark":`#666666`}},`: `,-1),o[194]||=a(`span`,{style:{"--shiki-light":`#B07D48`,"--shiki-dark":`#BD976A`}},`path`,-1),o[195]||=a(`span`,{style:{"--shiki-light":`#999999`,"--shiki-dark":`#666666`}},`.`,-1),a(`span`,Re,[n(Q,{class:`twoslash-hover`,"popper-class":`shiki twoslash-floating vp-copy-ignore vp-code`,theme:`twoslash`},{popper:e(({})=>[...o[188]||=[a(`span`,{class:`twoslash-popup-container vp-copy-ignore`},[a(`code`,{class:`twoslash-popup-code`},[a(`span`,{style:{"--shiki-light":`#AB5959`,"--shiki-dark":`#CB7676`}},`function`),a(`span`,{style:{"--shiki-light":`#59873A`,"--shiki-dark":`#80A665`}},` path`),a(`span`,{style:{"--shiki-light":`#393A34`,"--shiki-dark":`#DBD7CAEE`}},`.`),a(`span`,{style:{"--shiki-light":`#59873A`,"--shiki-dark":`#80A665`}},`join`),a(`span`,{style:{"--shiki-light":`#999999`,"--shiki-dark":`#666666`}},`(...`),a(`span`,{style:{"--shiki-light":`#B07D48`,"--shiki-dark":`#BD976A`}},`paths`),a(`span`,{style:{"--shiki-light":`#999999`,"--shiki-dark":`#666666`}},`: `),a(`span`,{style:{"--shiki-light":`#2E8F82`,"--shiki-dark":`#5DA994`}},`string`),a(`span`,{style:{"--shiki-light":`#999999`,"--shiki-dark":`#666666`}},`[]):`),a(`span`,{style:{"--shiki-light":`#2E8F82`,"--shiki-dark":`#5DA994`}},` string`)]),a(`div`,{class:`twoslash-popup-docs vp-doc`,"vp-content":``},[a(`p`,null,`Join all arguments together and normalize the resulting path.`)]),a(`div`,{class:`twoslash-popup-docs twoslash-popup-docs-tags vp-doc`,"vp-content":``},[a(`span`,{class:`twoslash-popup-docs-tag`},[a(`span`,{class:`twoslash-popup-docs-tag-name`},`@param`),a(`span`,{class:`twoslash-popup-docs-tag-value`},[a(`code`,null,`paths`),r(` paths to join.`)])]),a(`span`,{class:`twoslash-popup-docs-tag`},[a(`span`,{class:`twoslash-popup-docs-tag-name`},`@throws`),a(`span`,{class:`twoslash-popup-docs-tag-value`},`{TypeError} if any of the path segments is not a string.`)])])],-1)]]),default:e(()=>[o[189]||=a(`span`,null,`join`,-1)]),_:1})]),o[196]||=a(`span`,{style:{"--shiki-light":`#999999`,"--shiki-dark":`#666666`}},`(`,-1),a(`span`,ze,[n(Q,{class:`twoslash-hover`,"popper-class":`shiki twoslash-floating vp-copy-ignore vp-code`,theme:`twoslash`},{popper:e(({})=>[...o[190]||=[a(`span`,{class:`twoslash-popup-container vp-copy-ignore`},[a(`code`,{class:`twoslash-popup-code`},[a(`span`,{style:{"--shiki-light":`#AB5959`,"--shiki-dark":`#CB7676`}},`var `),a(`span`,{style:{"--shiki-light":`#B07D48`,"--shiki-dark":`#BD976A`}},`__dirname`),a(`span`,{style:{"--shiki-light":`#999999`,"--shiki-dark":`#666666`}},`: `),a(`span`,{style:{"--shiki-light":`#2E8F82`,"--shiki-dark":`#5DA994`}},`string`)]),a(`div`,{class:`twoslash-popup-docs vp-doc`,"vp-content":``},[a(`p`,null,[r(`The directory name of the current module. This is the same as the
`),a(`code`,null,`path.dirname()`),r(` of the `),a(`code`,null,`__filename`),r(`.`)])]),a(`div`,{class:`twoslash-popup-docs twoslash-popup-docs-tags vp-doc`,"vp-content":``},[a(`span`,{class:`twoslash-popup-docs-tag`},[a(`span`,{class:`twoslash-popup-docs-tag-name`},`@since`),a(`span`,{class:`twoslash-popup-docs-tag-value`},`v0.1.27`)])])],-1)]]),default:e(()=>[o[191]||=a(`span`,null,`__dirname`,-1)]),_:1})]),o[197]||=i(`<span style="--shiki-light:#999999;--shiki-dark:#666666;">, </span><span style="--shiki-light:#B5695977;--shiki-dark:#C98A7D77;">&#39;</span><span style="--shiki-light:#B56959;--shiki-dark:#C98A7D;">custom/config.ts</span><span style="--shiki-light:#B5695977;--shiki-dark:#C98A7D77;">&#39;</span><span style="--shiki-light:#999999;--shiki-dark:#666666;">), </span>`,5)]),o[207]||=r(`
`,-1),o[208]||=a(`span`,{class:`line`},[a(`span`,{style:{"--shiki-light":`#999999`,"--shiki-dark":`#666666`}},` }),`)],-1),o[209]||=r(`
`,-1),o[210]||=a(`span`,{class:`line`},[a(`span`,{style:{"--shiki-light":`#999999`,"--shiki-dark":`#666666`}},`})`)],-1)])])])]),o[223]||=a(`div`,{class:`hint-container warning`},[a(`p`,{class:`hint-container-title`},`新手不建议自定义路径,可能引发意外问题`)],-1),o[224]||=a(`h2`,{id:`页面配置`,tabindex:`-1`},[a(`a`,{class:`header-anchor`,href:`#页面配置`},[a(`span`,null,`页面配置`)])],-1),o[225]||=a(`p`,null,`通过页面顶部的 YAML Frontmatter可为每个页面单独配置主题`,-1),a(`div`,Be,[a(`div`,Ve,[a(`span`,He,[n(Z,{provider:`iconify`,name:`vscode-icons:file-type-markdown`}),o[211]||=r(`article.md`,-1)])]),o[212]||=i(`<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 highlighted"><span style="--shiki-light:#999999;--shiki-dark:#666666;">---</span></span>
<span class="line"><span style="--shiki-light:#998418;--shiki-dark:#B8A965;">title</span><span style="--shiki-light:#999999;--shiki-dark:#666666;">:</span><span style="--shiki-light:#B56959;--shiki-dark:#C98A7D;"> 文章标题</span></span>
<span class="line"><span style="--shiki-light:#998418;--shiki-dark:#B8A965;">createTime</span><span style="--shiki-light:#999999;--shiki-dark:#666666;">:</span><span style="--shiki-light:#B56959;--shiki-dark:#C98A7D;"> 2024/09/08 22:53:34</span></span>
<span class="line"><span style="--shiki-light:#998418;--shiki-dark:#B8A965;">permalink</span><span style="--shiki-light:#999999;--shiki-dark:#666666;">:</span><span style="--shiki-light:#B56959;--shiki-dark:#C98A7D;"> /article/xxx/</span></span>
<span class="line highlighted"><span style="--shiki-light:#999999;--shiki-dark:#666666;">---</span></span></code></pre></div>`,1)]),o[226]||=a(`p`,null,[r(`在 Markdown 文件顶部,使用 `),a(`code`,null,`---`),r(` 分隔符包裹的部分即为 Frontmatter采用 YAML 语法配置。`)],-1),a(`div`,Ue,[a(`p`,We,[o[214]||=r(`如需了解 YAML 基础语法,可参考`,-1),n(Ye,{href:`/article/ecxnxxd0/`},{default:e(()=>[...o[213]||=[r(`这篇博客`,-1)]]),_:1})])])])}var Ge=ne(re,[[`render`,X]]);export{o as _pageData,Ge as default};