vuepress-theme-plume/assets/llmstxt-nEBXbOYv.js

48 lines
25 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/guide/features/llmstxt/","title":"LLMs txt | Guide","lang":"en-US","frontmatter":{"title":"LLMs txt","icon":"ri:ai","createTime":"2025/12/01 10:46:46","permalink":"/en/guide/features/llmstxt/","description":"Overview Add llms.txt to your site to provide LLM-friendly content. Related Plugin: @vuepress/plugin-llms Why llms.txt? Large Language Models increasingly rely on website inform...","head":[["script",{"type":"application/ld+json"},"{\\"@context\\":\\"https://schema.org\\",\\"@type\\":\\"Article\\",\\"headline\\":\\"LLMs txt\\",\\"image\\":[\\"\\"],\\"dateModified\\":\\"2026-02-14T10:14:19.000Z\\",\\"author\\":[]}"],["meta",{"property":"og:url","content":"https://theme-plume.vuejs.press/en/guide/features/llmstxt/"}],["meta",{"property":"og:site_name","content":"Plume Theme"}],["meta",{"property":"og:title","content":"LLMs txt"}],["meta",{"property":"og:description","content":"Overview Add llms.txt to your site to provide LLM-friendly content. Related Plugin: @vuepress/plugin-llms Why llms.txt? Large Language Models increasingly rely on website inform..."}],["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-14T10:14:19.000Z"}],["meta",{"property":"article:modified_time","content":"2026-02-14T10:14:19.000Z"}],["link",{"rel":"alternate","hreflang":"zh-cn","href":"https://theme-plume.vuejs.press/guide/features/llmstxt/"}]]},"readingTime":{"minutes":2.43,"words":728},"git":{"createdTime":1763542309000,"updatedTime":1771064059000,"contributors":[{"name":"pengzhanbo","username":"pengzhanbo","email":"volodymyr@foxmail.com","commits":4,"avatar":"https://avatars.githubusercontent.com/pengzhanbo?v=4","url":"https://github.com/pengzhanbo"}],"changelog":[{"hash":"5930c6046224ee0b95a4f05fb60bf3e6e5b7957f","time":1771064059000,"email":"volodymyr@foxmail.com","author":"pengzhanbo","message":"docs: improve docs"},{"hash":"b1f996cb0ec9ebd9135adf855de4363696f0161e","time":1770911721000,"email":"volodymyr@foxmail.com","author":"pengzhanbo","message":"feat(plugin-md-power): add <code>::: encrypt</code> container, close #815 (#831)"},{"hash":"db8a46eb4cdc6c4bcb15f0e38a5aacfef565975a","time":1764559833000,"email":"volodymyr@foxmail.com","author":"pengzhanbo","message":"docs: optimize and completion docs (#766)"},{"hash":"20728f504d2ddba55e4bcca2f7a1b6793fa9ba04","time":1763542309000,"email":"volodymyr@foxmail.com","author":"pengzhanbo","message":"feat(theme): add <code>plugin-llms</code> and <code>&#x3C;PageContextMenu /></code> component (#753)"}]},"autoDesc":true,"filePathRelative":"en/guide/features/llmstxt.md","headers":[],"bulletin":false}`),u={name:`llmstxt.md`},d={class:`vp-file-tree`},f={class:`code-block-title`,"data-title":`.vuepress/config.ts`},p={class:`code-block-title-bar`},m={class:`title`},h={class:`code-block-title`,"data-title":`.vuepress/client.ts`},g={class:`code-block-title-bar`},_={class:`title`};function v(c,l,u,v,y,b){let x=t(`VPCopyButton`),S=t(`VPIcon`),C=t(`FileTreeNode`),w=t(`VPLink`);return n(),i(`div`,null,[l[9]||=o(`<h2 id="overview" tabindex="-1"><a class="header-anchor" href="#overview"><span>Overview</span></a></h2><p>Add <a href="https://llmstxt.org/" target="_blank" rel="noopener noreferrer">llms.txt</a> to your site to provide LLM-friendly content.</p><p><strong>Related Plugin</strong>: <a href="https://ecosystem.vuejs.press/plugins/ai/llms.html" target="_blank" rel="noopener noreferrer">@vuepress/plugin-llms</a></p><h2 id="why-llms-txt" tabindex="-1"><a class="header-anchor" href="#why-llms-txt"><span>Why llms.txt?</span></a></h2><p>Large Language Models increasingly rely on website information but face a key limitation: their context window is too small to fully process most websites. Converting complex HTML pages containing navigation, ads, and JavaScript into LLM-friendly plain text is both difficult and imprecise.</p><p>While websites serve both human readers and LLMs, the latter benefit from more concise, expert-level information collected in one accessible location. This is particularly important for use cases like development environments where LLMs need quick access to programming documentation and APIs.</p><p>Add a <code>/llms.txt</code> Markdown file to your website to provide LLM-friendly content. This file provides brief background information, guidelines, and links to detailed Markdown files.</p><h2 id="features" tabindex="-1"><a class="header-anchor" href="#features"><span>Features</span></a></h2><p>The plugin retrieves all Markdown files from your documentation source directory and converts them into LLM-friendly plain text files.</p>`,9),s(`div`,d,[r(x,{text:`eJzT43o0ZcqjKQ1ApKBXVppaUJRaXKyfkllcwqUABI+mzIFK5uTkFuuVVGAT1k0rzcnBIpebWJSdkl+ep5takZhbkJNarJdRkpsDVQSzFFNRbgoA7os/oQ==`,encode:``,"aria-label":`Copy`,"data-copied":`Copied`}),r(C,{expanded:``,type:`folder`,filename:`.vuepress/dist`,level:0},{icon:e(()=>[r(S,{provider:`iconify`,name:`vscode-icons:folder-type-dist`})]),default:e(()=>[r(C,{type:`file`,filename:`llms.txt`,level:1},{icon:e(()=>[r(S,{provider:`iconify`,name:`vscode-icons:file-type-text`})]),_:1}),r(C,{type:`file`,filename:`llms-full.txt`,level:1},{icon:e(()=>[r(S,{provider:`iconify`,name:`vscode-icons:file-type-text`})]),_:1}),r(C,{type:`file`,filename:`markdown-examples.html`,level:1},{icon:e(()=>[r(S,{provider:`iconify`,name:`vscode-icons:file-type-html`})]),_:1}),r(C,{type:`file`,filename:`markdown-examples.md`,level:1},{icon:e(()=>[r(S,{provider:`iconify`,name:`vscode-icons:file-type-markdown`})]),_:1}),r(C,{type:`file`,filename:``,level:1})]),_:1})]),l[10]||=s(`p`,null,`Click the links below to view the llms.txt files for this documentation site:`,-1),s(`ul`,null,[s(`li`,null,[r(w,{href:`/llms.txt`,class:`no-icon`},{default:e(()=>[...l[0]||=[a(`llms.txt`,-1)]]),_:1})]),s(`li`,null,[r(w,{href:`/llms-full.txt`,class:`no-icon`},{default:e(()=>[...l[1]||=[a(`llms-full.txt`,-1)]]),_:1})])]),l[11]||=o(`<div class="hint-container tip"><p class="hint-container-title">Tips</p><p>The plugin only generates <code>llms.txt</code> files and other LLM-friendly documentation files during production builds, i.e., when executing the <code>vuepress build</code> command, and outputs them to the <code>.vuepress/dist</code> directory.</p></div><p><a href="https://ecosystem.vuejs.press/plugins/ai/llms.html#%E6%8F%92%E4%BB%B6%E5%8A%9F%E8%83%BD" class="read-more" target="_blank" rel="noopener noreferrer">View the complete feature description in the <strong>Plugin Official Documentation</strong></a></p><h2 id="configuration" tabindex="-1"><a class="header-anchor" href="#configuration"><span>Configuration</span></a></h2><p>This feature is not enabled by default in the theme. You can enable it through the <code>llmstxt</code> configuration option:</p>`,4),s(`div`,f,[s(`div`,p,[s(`span`,m,[r(S,{provider:`iconify`,name:`vscode-icons:file-type-typescript`}),l[2]||=a(`.vuepress/config.ts`,-1)])]),l[3]||=o(`<div class="language-ts line-numbers-mode" 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 vp-code"><code class="language-ts"><span class="line"><span style="--shiki-light:#1E754F;--shiki-dark:#4D9375;">import</span><span style="--shiki-light:#999999;--shiki-dark:#666666;"> {</span><span style="--shiki-light:#B07D48;--shiki-dark:#BD976A;"> defineUserConfig</span><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></span>
<span class="line"><span style="--shiki-light:#1E754F;--shiki-dark:#4D9375;">import</span><span style="--shiki-light:#999999;--shiki-dark:#666666;"> {</span><span style="--shiki-light:#B07D48;--shiki-dark:#BD976A;"> plumeTheme</span><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></span>
<span class="line"></span>
<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"><span style="--shiki-light:#A0ADA0;--shiki-dark:#758575DD;"> // Use the theme&#39;s built-in default configuration</span></span>
<span class="line"><span style="--shiki-light:#A0ADA0;--shiki-dark:#758575DD;"> // llmstxt: true,</span></span>
<span class="line"></span>
<span class="line"><span style="--shiki-light:#A0ADA0;--shiki-dark:#758575DD;"> // Use custom configuration</span></span>
<span class="line"><span style="--shiki-light:#998418;--shiki-dark:#B8A965;"> llmstxt</span><span style="--shiki-light:#999999;--shiki-dark:#666666;">: {</span></span>
<span class="line"><span style="--shiki-light:#998418;--shiki-dark:#B8A965;"> locale</span><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;">/</span><span style="--shiki-light:#B5695977;--shiki-dark:#C98A7D77;">&#39;</span><span style="--shiki-light:#999999;--shiki-dark:#666666;">,</span></span>
<span class="line"><span style="--shiki-light:#A0ADA0;--shiki-dark:#758575DD;"> // ...other configurations</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:#A0ADA0;--shiki-dark:#758575DD;"> // Can also configure via \`plugins.llmstxt\`, but not recommended</span></span>
<span class="line"><span style="--shiki-light:#998418;--shiki-dark:#B8A965;"> plugins</span><span style="--shiki-light:#999999;--shiki-dark:#666666;">: {</span></span>
<span class="line"><span style="--shiki-light:#998418;--shiki-dark:#B8A965;"> llmstxt</span><span style="--shiki-light:#999999;--shiki-dark:#666666;">: </span><span style="--shiki-light:#1E754F;--shiki-dark:#4D9375;">true</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>
<span class="line"><span style="--shiki-light:#999999;--shiki-dark:#666666;">})</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 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>`,1)]),l[12]||=s(`p`,null,[s(`a`,{href:`https://ecosystem.vuejs.press/plugins/ai/llms.html#options`,class:`read-more`,target:`_blank`,rel:`noopener noreferrer`},[a(`View the complete configuration options in the `),s(`strong`,null,`Plugin Official Documentation`)])],-1),l[13]||=s(`h2`,{id:`components`,tabindex:`-1`},[s(`a`,{class:`header-anchor`,href:`#components`},[s(`span`,null,`Components`)])],-1),l[14]||=s(`p`,null,[a(`To further enhance interaction between your documentation site and LLMs, you can add the `),s(`code`,null,`<PageContextMenu />`),a(` component to your documentation site.`)],-1),s(`p`,null,[l[5]||=a(`This component is not built-in but is implemented as an additional feature of the theme. Therefore, you need to manually import it and place it in an appropriate location through `,-1),r(w,{href:`../../guide/custom/slots.md`},{default:e(()=>[...l[4]||=[a(`component slots`,-1)]]),_:1}),l[6]||=a(`:`,-1)]),s(`div`,h,[s(`div`,g,[s(`span`,_,[r(S,{provider:`iconify`,name:`vscode-icons:file-type-typescript`}),l[7]||=a(`.vuepress/client.ts`,-1)])]),l[8]||=o(`<div class="language-ts line-numbers-mode" 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;">import</span><span style="--shiki-light:#999999;--shiki-dark:#666666;"> {</span><span style="--shiki-light:#B07D48;--shiki-dark:#BD976A;"> defineAsyncComponent</span><span style="--shiki-light:#999999;--shiki-dark:#666666;">,</span><span style="--shiki-light:#B07D48;--shiki-dark:#BD976A;"> h</span><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;">vue</span><span style="--shiki-light:#B5695977;--shiki-dark:#C98A7D77;">&#39;</span></span>
<span class="line"><span style="--shiki-light:#1E754F;--shiki-dark:#4D9375;">import</span><span style="--shiki-light:#999999;--shiki-dark:#666666;"> {</span><span style="--shiki-light:#B07D48;--shiki-dark:#BD976A;"> Layout</span><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/client</span><span style="--shiki-light:#B5695977;--shiki-dark:#C98A7D77;">&#39;</span></span>
<span class="line diff add"><span style="--shiki-light:#1E754F;--shiki-dark:#4D9375;">import</span><span style="--shiki-light:#B07D48;--shiki-dark:#BD976A;"> PageContextMenu</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/features/PageContextMenu.vue</span><span style="--shiki-light:#B5695977;--shiki-dark:#C98A7D77;">&#39;</span></span>
<span class="line"><span style="--shiki-light:#1E754F;--shiki-dark:#4D9375;">import</span><span style="--shiki-light:#999999;--shiki-dark:#666666;"> {</span><span style="--shiki-light:#B07D48;--shiki-dark:#BD976A;"> defineClientConfig</span><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/client</span><span style="--shiki-light:#B5695977;--shiki-dark:#C98A7D77;">&#39;</span></span>
<span class="line"></span>
<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;"> defineClientConfig</span><span style="--shiki-light:#999999;--shiki-dark:#666666;">({</span></span>
<span class="line"><span style="--shiki-light:#998418;--shiki-dark:#B8A965;"> layouts</span><span style="--shiki-light:#999999;--shiki-dark:#666666;">: {</span></span>
<span class="line"><span style="--shiki-light:#998418;--shiki-dark:#B8A965;"> Layout</span><span style="--shiki-light:#999999;--shiki-dark:#666666;">: </span><span style="--shiki-light:#59873A;--shiki-dark:#80A665;">h</span><span style="--shiki-light:#999999;--shiki-dark:#666666;">(</span><span style="--shiki-light:#B07D48;--shiki-dark:#BD976A;">Layout</span><span style="--shiki-light:#999999;--shiki-dark:#666666;">, </span><span style="--shiki-light:#AB5959;--shiki-dark:#CB7676;">null</span><span style="--shiki-light:#999999;--shiki-dark:#666666;">, {</span></span>
<span class="line"><span style="--shiki-light:#A0ADA0;--shiki-dark:#758575DD;"> // Add PageContextMenu to the doc-title-after slot, i.e., to the right of the article title</span></span>
<span class="line diff add"><span style="--shiki-light:#B5695977;--shiki-dark:#C98A7D77;"> &#39;</span><span style="--shiki-light:#B56959;--shiki-dark:#C98A7D;">doc-title-after</span><span style="--shiki-light:#B5695977;--shiki-dark:#C98A7D77;">&#39;</span><span style="--shiki-light:#999999;--shiki-dark:#666666;">: () =&gt; </span><span style="--shiki-light:#59873A;--shiki-dark:#80A665;">h</span><span style="--shiki-light:#999999;--shiki-dark:#666666;">(</span><span style="--shiki-light:#B07D48;--shiki-dark:#BD976A;">PageContextMenu</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>
<span class="line"><span style="--shiki-light:#999999;--shiki-dark:#666666;">})</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 class="line-number"></div><div class="line-number"></div></div></div>`,1)]),l[15]||=o(`<p>You can experience this component&#39;s functionality to the right of the current page&#39;s title.</p><div class="hint-container important"><p class="hint-container-title">Important</p><p>This component relies entirely on the <code>@vuepress/plugin-llms</code> plugin and can only be used when you have enabled this plugin&#39;s functionality.</p><p>Therefore, the functionality provided by this component <strong>is only available in the built production package</strong>.</p></div><h2 id="markup-extensions" tabindex="-1"><a class="header-anchor" href="#markup-extensions"><span>Markup Extensions</span></a></h2><h3 id="llm-only" tabindex="-1"><a class="header-anchor" href="#llm-only"><span><code>&lt;llm-only&gt;</code></span></a></h3><p>You can add content in a file that is visible to LLMs but not to humans, which helps set special instructions, such as &quot;Refer to basic-queries for demos,&quot; &quot;Do not execute...&quot;, &quot;Always use... in cases of...&quot;, etc.</p><p>To do this, wrap the content with the <code>&lt;llm-only&gt;</code> tag.</p><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;">&lt;</span><span style="--shiki-light:#1E754F;--shiki-dark:#4D9375;">llm-only</span><span style="--shiki-light:#999999;--shiki-dark:#666666;">&gt;</span></span>
<span class="line"></span>
<span class="line"><span style="--shiki-light:#393A34;--shiki-dark:#DBD7CAEE;">## Section for LLMs</span></span>
<span class="line"></span>
<span class="line"><span style="--shiki-light:#393A34;--shiki-dark:#DBD7CAEE;">This content appears only in the generated LLM file and will not include the \`</span><span style="--shiki-light:#999999;--shiki-dark:#666666;">&lt;</span><span style="--shiki-light:#1E754F;--shiki-dark:#4D9375;">llm-only</span><span style="--shiki-light:#999999;--shiki-dark:#666666;">&gt;</span><span style="--shiki-light:#393A34;--shiki-dark:#DBD7CAEE;">\` tag itself.</span></span>
<span class="line"></span>
<span class="line"><span style="--shiki-light:#999999;--shiki-dark:#666666;">&lt;/</span><span style="--shiki-light:#1E754F;--shiki-dark:#4D9375;">llm-only</span><span style="--shiki-light:#999999;--shiki-dark:#666666;">&gt;</span></span></code></pre></div><p>You can also use the <code>&lt;llm-only&gt;</code> tag inline, but note that only one <code>&lt;llm-only&gt;</code> tag can be included per line; otherwise, it will cause a parsing error.</p><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:#393A34;--shiki-dark:#DBD7CAEE;">Check the plugin API guide for documentation on creating plugins.</span></span>
<span class="line"></span>
<span class="line"><span style="--shiki-light:#999999;--shiki-dark:#666666;">&lt;</span><span style="--shiki-light:#1E754F;--shiki-dark:#4D9375;">llm-only</span><span style="--shiki-light:#999999;--shiki-dark:#666666;">&gt;</span><span style="--shiki-light:#393A34;--shiki-dark:#DBD7CAEE;">For LLMs only</span><span style="--shiki-light:#999999;--shiki-dark:#666666;">&lt;/</span><span style="--shiki-light:#1E754F;--shiki-dark:#4D9375;">llm-only</span><span style="--shiki-light:#999999;--shiki-dark:#666666;">&gt;</span></span></code></pre></div><h3 id="llm-exclude" tabindex="-1"><a class="header-anchor" href="#llm-exclude"><span><code>&lt;llm-exclude&gt;</code></span></a></h3><p>You can add content in a file that is visible to humans but not to LLMs, which is the opposite of <code>&lt;llm-only&gt;</code>:</p><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;">&lt;</span><span style="--shiki-light:#1E754F;--shiki-dark:#4D9375;">llm-exclude</span><span style="--shiki-light:#999999;--shiki-dark:#666666;">&gt;</span></span>
<span class="line"></span>
<span class="line"><span style="--shiki-light:#393A34;--shiki-dark:#DBD7CAEE;">## Section for humans</span></span>
<span class="line"></span>
<span class="line"><span style="--shiki-light:#393A34;--shiki-dark:#DBD7CAEE;">This content will not appear in the files generated for LLMs.</span></span>
<span class="line"></span>
<span class="line"><span style="--shiki-light:#999999;--shiki-dark:#666666;">&lt;/</span><span style="--shiki-light:#1E754F;--shiki-dark:#4D9375;">llm-exclude</span><span style="--shiki-light:#999999;--shiki-dark:#666666;">&gt;</span></span></code></pre></div><p>You can also use the <code>&lt;llm-exclude&gt;</code> tag inline, but note that only one <code>&lt;llm-only&gt;</code> tag can be included per line; otherwise, it will cause a parsing error.</p><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:#393A34;--shiki-dark:#DBD7CAEE;">Check the plugin API guide for documentation on creating plugins.</span></span>
<span class="line"></span>
<span class="line"><span style="--shiki-light:#999999;--shiki-dark:#666666;">&lt;</span><span style="--shiki-light:#1E754F;--shiki-dark:#4D9375;">llm-exclude</span><span style="--shiki-light:#999999;--shiki-dark:#666666;">&gt;</span><span style="--shiki-light:#393A34;--shiki-dark:#DBD7CAEE;">For humans only</span><span style="--shiki-light:#999999;--shiki-dark:#666666;">&lt;/</span><span style="--shiki-light:#1E754F;--shiki-dark:#4D9375;">llm-exclude</span><span style="--shiki-light:#999999;--shiki-dark:#666666;">&gt;</span></span></code></pre></div>`,14)])}var y=c(u,[[`render`,v]]);export{l as _pageData,y as default};