[{"data":1,"prerenderedAt":2157},["ShallowReactive",2],{"\u002Fdocs\u002Fcomponents\u002Fcode":3,"dl-navigation-docs":1268,"shared":1613,"surroundings-\u002Fdocs\u002Fcomponents\u002Fcode":2152},{"id":4,"title":5,"_llmSection":6,"_local":6,"_schemaOrg":6,"_seo":6,"body":7,"description":1259,"extension":1260,"ignore":6,"meta":1261,"navigation":1262,"path":1263,"seo":1264,"sitemap":1265,"stem":1266,"__hash__":1267},"docs\u002Fdocs\u002F03.components\u002F05.code.md","DlCode",null,{"type":8,"value":9,"toc":1231},"minimark",[10,35,102,135,167,262,402,461,536,565,669,795,837,878,999,1044,1067,1087,1104,1120,1211],[11,12,13,14,17,18,22,23,26,27,30,31,34],"p",{},"The ",[15,16,5],"code",{}," ",[19,20,21],"strong",{},"block component"," displays code snippets in a visually appealing and readable format. Among others it ",[19,24,25],{},"supports syntax highlighting",", ",[19,28,29],{},"copy-to-clipboard"," functionality, ",[19,32,33],{},"easily integrates into your content"," pages of any kind. Use this component whenever you want to showcase code examples or command-line instructions to your users.",[36,37,39,43,47],"dl-section",{"id":38},"features",[40,41,42],"h2",{"id":38},"Features",[44,45,46],"dl-prompter",{},"dl-code component features",[48,49,50,60,68,71,74,77,80,83,86,89,96,99],"ul",{},[51,52,53,54],"li",{},"🖍️ multiple-language syntax highlighting with ",[19,55,56],{},[57,58,59],"dl-link",{},"$shiki",[51,61,62,63],{},"🎨 ",[64,65,67],"a",{"href":66},"#highlighter","configurable highlighter",[51,69,70],{},"🖌️ built-in visual transformations: highlighting, focusing, diffing",[51,72,73],{},"🧑‍💻 custom and pre-built code transformations",[51,75,76],{},"🪄 dynamic fragments resolving",[51,78,79],{},"📋 one-click copy to clipboard",[51,81,82],{},"🗂️ automatic code blocks tabbing",[51,84,85],{},"🗂️ automatic tabs overlapping",[51,87,88],{},"📏 collapsible long code blocks",[51,90,91,92,95],{},"🔗 internal reference links with JSDoc ",[15,93,94],{},"@link"," tag",[51,97,98],{},"🧩 theme-friendly visual adjustments",[51,100,101],{},"⚠️ extensive error reporter",[36,103,105,108,111,122],{"id":104},"usage",[40,106,107],{"id":104},"Usage",[44,109,110],{},"who to use dl-code component",[11,112,113,114,117,118,121],{},"Use the ",[15,115,116],{},"::dl-code"," as a block component with your Markdown code block provided in the ",[15,119,120],{},"default"," slot.",[123,124,125],"dl-code",{},[126,127,133],"pre",{"className":128,"code":130,"language":131,"meta":132},[129],"language-markdown","::dl-code\n\n```ts\nconst text: string = 'text';\n```\n\n::\n\"cref:j88d6g\"\n","markdown","",[15,134,130],{"__ignoreMap":132},[36,136,138,142,145,158],{"id":137},"with-a-tab",[139,140,141],"h3",{"id":137},"With a tab",[44,143,144],{},"dl-code component with a tab",[11,146,147,148,151,152,157],{},"Notice that in the previous example, no tabs are displayed above the code block. To show tabs (the filename with its extension), you need to set the ",[15,149,150],{},"tabs"," prop, aligned with ",[19,153,154],{},[57,155,156],{},"$mdc"," formatting.",[123,159,161],{"tabs":160},"tab.md",[126,162,165],{"className":163,"code":164,"language":131,"meta":132},[129],"::dl-code{tabs=\"tab.md\"}\n\n```ts\nconst text: string = 'text';\n```\n\n::\n\"cref:m6hc49\"\n",[15,166,164],{"__ignoreMap":132},[36,168,170,173,176,185,201,207,255],{"id":169},"with-multiple-tabs",[139,171,172],{"id":169},"With multiple tabs",[44,174,175],{},"dl-code component with multiple tabs",[11,177,178,179,184],{},"To display multiple tabs with different code blocks, separate the tab names with commas. Remember that the number of code blocks must be the same as the number of defined tabs. Hence, different setup will print the ",[57,180,183],{"label":181,"path":182},"Nuxt Error","\u002Fapi\u002Fcomposables\u002Fuse-error","$nuxt-docs",".",[123,186,188,195],{"tabs":187},"first-tab.md, second-tab.md",[126,189,193],{"className":190,"code":191,"filename":192,"language":131,"meta":132},[129],"::dl-code{tabs=\"first-tab.md, second-tab.md\"}\n\n```ts\nconst first: string = 'first';\n```\n\n```ts\nconst second: string = 'second';\n```\n\n::\n","[esc]",[15,194,191],{"__ignoreMap":132},[126,196,199],{"className":197,"code":198,"filename":192,"language":131,"meta":132},[129],"::dl-code{tabs=\"first-tab.md, second-tab.md\"}\n\n```ts\nconst second: string = 'second';\n```\n\n```ts\nconst first: string = 'first';\n```\n\n::\n",[15,200,198],{"__ignoreMap":132},[202,203,204],"blockquote",{},[11,205,206],{},"The difference between the tab contents is simply to demonstrate how switching between tabs works - the code will execute the same result.",[208,209,212,219],"dl-callout",{"title":210,"type":211},"Tabs overlapping","note",[11,213,214,215,218],{},"If you define multiple tab code components, the ",[19,216,217],{},"total width of the tab list will be calculated",". If the tabs would overlap the block container, they will be grouped into a special context menu accessible from the right side of the component. Here is the simple example.",[123,220,223,231,237,243,249],{"tabs":221,"lazy":222},"first-tab.md, second-tab.md, third-tab.md, forth-tab.md, fifth-tab.md","true",[126,224,229],{"className":225,"code":227,"filename":192,"language":228,"meta":132},[226],"language-ts","const first: string = 'first';\n","ts",[15,230,227],{"__ignoreMap":132},[126,232,235],{"className":233,"code":234,"filename":192,"language":228,"meta":132},[226],"const second: string = 'second';\n",[15,236,234],{"__ignoreMap":132},[126,238,241],{"className":239,"code":240,"filename":192,"language":228,"meta":132},[226],"const third: string = 'third';\n",[15,242,240],{"__ignoreMap":132},[126,244,247],{"className":245,"code":246,"filename":192,"language":228,"meta":132},[226],"const fourth: string = 'fourth';\n",[15,248,246],{"__ignoreMap":132},[126,250,253],{"className":251,"code":252,"filename":192,"language":228,"meta":132},[226],"const fifth: string = 'fifth';\n",[15,254,252],{"__ignoreMap":132},[11,256,257,258,261],{},"Be aware that this ",[19,259,260],{},"calculation must be performed only client-side",". As a result, for the first visible block, you may see a loading indicator that will eventually be replaced by the component's content.",[36,263,265,268,287,290,293,311,314,317,322,325,340,342,346,348,352,355,369,371,373,375,379,382,396,398,400],{"id":264},"with-visual-transforms-highlighting-diffing-focusing",[139,266,267],{"id":264},"With visual transforms (highlighting, diffing, focusing)",[11,269,13,270,272,273,276,277,280,281,184],{},[15,271,5],{}," component ",[19,274,275],{},"implements couple of Shiki's visual transformers"," that you can use to highlight specific parts of your code. These transforms are ",[19,278,279],{},"applied by adding special markers"," inside your code blocks. You can ",[64,282,286],{"href":283,"rel":284},"https:\u002F\u002Fshiki.style\u002Fpackages\u002Ftransformers#transformers",[285],"nofollow","use the same syntax as their original configuration presents",[11,288,289],{},"[[esc]]",[11,291,292],{},"Implemented transforms are:",[48,294,295,301,306],{},[51,296,297,300],{},[15,298,299],{},"transformerNotationHighlight",",",[51,302,303,300],{},[15,304,305],{},"transformerNotationDiff",[51,307,308,300],{},[15,309,310],{},"transformerNotationFocus",[11,312,313],{},"and this is how you can use them.",[11,315,316],{},"[[\u002Fesc]]",[318,319,321],"h4",{"id":320},"highlighting-specific-lines","Highlighting specific lines",[44,323,324],{},"dl-code component highlight highlighting specific lines",[123,326,328,334],{"tabs":327},"content.md, result.ts",[126,329,332],{"className":330,"code":331,"language":131,"meta":132},[129],"::dl-code\n\n```ts\nconst greet = (name: string) => {\n  \u002F\u002F use [\\!\\code highlight] or [\\!\\code highlight:2] to cover multiple lines\n  return `Hi, ${name}!`;\n};\n```\n\n::\n\"cref:d9xzak\"\n",[15,333,331],{"__ignoreMap":132},[126,335,338],{"className":336,"code":337,"language":228,"meta":132},[226],"const greet = (name: string) => {\n  \u002F\u002F [!code highlight]\n  return `Hi, ${name}!`;\n};\n",[15,339,337],{"__ignoreMap":132},[11,341,289],{},[343,344,345],"dl-renderer",{},"rref:section-highlighter-marker-disclaimer",[11,347,316],{},[318,349,351],{"id":350},"diffing-the-code-blocks","Diffing the code blocks",[44,353,354],{},"dl-code component diff diffing code blocks",[123,356,357,363],{"tabs":327},[126,358,361],{"className":359,"code":360,"language":131,"meta":132},[129],"::dl-code\n\n```ts\nconst greet = (name: string) => {\n  \u002F\u002F use [\\!\\code ++] or [\\!\\code ++:3] to cover multiple lines *\u002F\n  \u002F\u002F return `Hi, ${name}!`;\n};\n```\n\n::\n\"cref:a8ejco\"\n",[15,362,360],{"__ignoreMap":132},[126,364,367],{"className":365,"code":366,"language":228,"meta":132},[226],"const greet = (name: string) => {\n  \u002F\u002F [!code --]\n  return `Hi, ${name}!`;\n  \u002F\u002F [!code ++]\n  return `Hello, ${name}!`;\n};\n",[15,368,366],{"__ignoreMap":132},[11,370,289],{},[343,372,345],{},[11,374,316],{},[318,376,378],{"id":377},"focusing-unbluring-specific-lines-of-code","Focusing (unbluring) specific lines of code",[44,380,381],{},"dl-code component focus focusing specific lines",[123,383,384,390],{"tabs":327},[126,385,388],{"className":386,"code":387,"language":131,"meta":132},[129],"::dl-code\n\n```ts\nconst greet = (name: string) => {\n  \u002F\u002F use [\\!\\code focus] or [\\!\\code focus:2] to cover multiple lines\n  return `Hi, ${name}!`;\n};\n```\n\n::\n\"cref:3dahmt\"\n",[15,389,387],{"__ignoreMap":132},[126,391,394],{"className":392,"code":393,"language":228,"meta":132},[226],"const greet = (name: string) => {\n  \u002F\u002F [!code focus]\n  return `Hi, ${name}!`;\n};\n",[15,395,393],{"__ignoreMap":132},[11,397,289],{},[343,399,345],{},[11,401,316],{},[36,403,405,408,411,431,440],{"id":404},"with-dynamic-string-replacement",[139,406,407],{"id":404},"With dynamic string replacement",[44,409,410],{},"dl-code component with dynamic string replacement",[11,412,13,413,272,415,418,419,422,423,426,427,430],{},[15,414,5],{},[19,416,417],{},"supports dynamic string replacement"," within code blocks. This might be particularly very useful when you want to showcase code snippets that include ",[19,420,421],{},"variables or placeholders that should be replaced with actual values at runtime",". To enable this feature, use the ",[15,424,425],{},"dynamic"," prop to provide the string that should be injected. Within your code block add ",[15,428,429],{},":dl-dynamic:"," wherever you want the replacement to occur. This is how you can do it:",[123,432,434],{"tabs":433},"content.md",[126,435,438],{"className":436,"code":437,"language":131,"meta":132},[129],"::dl-code{dynamic=\"value\"}\n\n```ts\nconst item = :\u002Fdl-dynamic\u002F:;\n\u002F\u002F results in (when rendered): const item = value;\n```\n\n::\n\"cref:8tb8jv\"\n",[15,439,437],{"__ignoreMap":132},[11,441,13,442,444,445,447,448,455,456,184],{},[15,443,429],{}," placeholder will be replaced with the value provided by the ",[15,446,425],{}," prop when the code block is rendered. For example, ",[19,449,450,451],{},"we use this feature on the ",[57,452,454],{"label":453},"utilities page","$docs-utils-utilities"," to provide a dynamic imports description for certain utilities. So this solution might be a great way to handle dynamic values within your ",[57,457,460],{"label":458,"hash":459},"shareable components","with-dynamic-data","$docs-components-renderer",[36,462,464,467,470,502,511,518],{"id":463},"with-reference-link",[139,465,466],{"id":463},"With reference link",[44,468,469],{},"dl-code component with reference link",[11,471,13,472,272,474,477,478,483,484,487,488,491,492,495,496,501],{},[15,473,5],{},[19,475,476],{},"can display reference links inside code blocks",", using the ",[57,479,482],{"label":480,"path":481},"JSDoc `@link`","tags-inline-link","$jsdoc"," tag syntax. While documenting your code with JSDoc, you can point to other references within your application - either to ",[19,485,486],{},"local anchors"," (on the same page) or to ",[19,489,490],{},"global locations"," (on different pages); you can also use ",[19,493,494],{},"external websites as the link reference",". Even more conveniently, you can use ",[57,497,500],{"label":498,"hash":499},"`dl.pathMap`","dlpathmap","$docs-guidelines-configuration"," markers to define internal reference links. Here’s how you can do it:",[123,503,505],{"tabs":433,"max-height":504},"1000rem",[126,506,509],{"className":507,"code":508,"language":131,"meta":132},[129],"::dl-code\n\n```ts\n\u002F**\n * Define link to a local reference.\n * @see {@link highlighter}\n *\n * Define link to a global reference, as a path:\n * path definition: \u002Fdocs\u002Fgetting-started, it will be transformed to a friendly link.\n * @see {@link \u002Fdocs\u002Fgetting-started}\n * path definition: \u002Fdocs\u002Fgetting-started#features\n * @see {@link \u002Fdocs\u002Fgetting-started#features}\n *\n * Define link to a global reference, as a path marker:\n * path marker definition: $docs-getting-started\n * @see {@link $docs-getting-started}\n * path marker definition: $docs-getting-started#features\n * @see {@link $docs-getting-started#features}\n *\n * Define link to external reference:\n * @see {@link https:\u002F\u002Fyour.site.com}\n *\u002F\n```\n\n::\n\"cref:s5vbpj\"\n",[15,510,508],{"__ignoreMap":132},[11,512,513,514,517],{},"This way, ",[19,515,516],{},"the code block will render with clickable reference links inside it",". These links are automatically resolved and displayed in a user-friendly format, making it easy for users to navigate related documentation.",[11,519,520,521,527,528,531,532,535],{},"Please note that ",[19,522,523,524],{},"this feature only works with the ",[57,525,482],{"label":526,"path":481},"JSDoc `@link` notation",", and with limited support for ",[15,529,530],{},"Shiki"," themes. Also, if you use external links, only secure links (those beginning with ",[15,533,534],{},"https:\u002F\u002F",") will be handled.",[36,537,539,542,545],{"id":538},"global-configuration",[40,540,541],{"id":538},"Global Configuration",[44,543,544],{},"dl-code component configuration",[11,546,547,548,552,553,555,556,559,560,564],{},"While basic, component-based configuration is managed through the ",[64,549,551],{"href":550},"#props","props",", the ",[15,554,5],{}," component also supports several global options. These options are set in the ",[343,557,558],{"inline":222},"rref:tooltip-app-config-path"," file under the ",[57,561,500],{"label":562,"hash":563},"`dl.components.DlCode`","dlcomponents"," key. Below you'll find a list of all available options and details on how to configure them.",[36,566,568,573,576,615,650,653,663],{"id":567},"extensionicons",[139,569,570],{"id":567},[15,571,572],{},"extensionIcons",[11,574,575],{},"An object mapping file extensions to icon names, used in the component tabs.",[208,577,579,609],{"title":578,"type":211},"Extension to Icon mapping",[11,580,581,582,589,590,597,598,600,601,604,605,608],{},"Under the hood, DocLayer uses the ",[19,583,584],{},[64,585,588],{"href":586,"rel":587},"https:\u002F\u002Fnuxt.com\u002Fmodules\u002Ficon",[285],"Nuxt Icon Module"," (with the ",[19,591,592],{},[64,593,596],{"href":594,"rel":595},"https:\u002F\u002Ficones.js.org\u002Fcollection\u002Fvscode-icons",[285],"vscode"," set) to provide icons for the ",[15,599,5],{}," component tab list. When defining a tab name as a file, its extension must correspond to a specific icon name (e.g., ",[15,602,603],{},".sh"," ➡️ ",[15,606,607],{},"shell","). Sometimes these icons have different names and don’t follow extension definitions. This mapping helps avoid icon display issues.",[11,610,611,184],{},[343,612,614],{":data":613,"inline":222},"{\"link\": \"$docs-guidelines-internals\", \"about\": \"module configuration\", \"hash\": \"nuxticon\"}","rref:inline-read-more-about",[616,617,618,633],"table",{},[619,620,621],"thead",{},[622,623,624,628,630],"tr",{},[625,626,627],"th",{},"type",[625,629,120],{},[625,631,632],{},"required",[634,635,636],"tbody",{},[622,637,638,644,647],{},[639,640,641],"td",{},[15,642,643],{},"Record\u003Cstring, string>",[639,645,646],{},"see below",[639,648,649],{},"no",[11,651,652],{},"Below are the settings provided by default.",[123,654,657],{"tabs":655,"max-height":656},"app.config.ts","20rem",[126,658,661],{"className":659,"code":660,"language":228,"meta":132},[226],"export default defineDoclayerAppConfig({\n  dl: {\n    \u002F\u002F the rest of the config\n    components: {\n      DlCode: {\n        extensionIcons: {\n          default: 'shell', \u002F\u002F required\n          example: 'dotenv', \u002F\u002F for .env.example file\n          mjs: 'js-official',\n          cjs: 'js-official',\n          ts: 'typescript-official',\n          sh: 'shell',\n          terminal: 'shell',\n          md: 'markdown',\n          yaml: 'light-yaml',\n          yml: 'light-yaml',\n          env: 'dotenv',\n        },\n      },\n    },\n  },\n});\n\"cref:gatxll\"\n",[15,662,660],{"__ignoreMap":132},[11,664,665,666,668],{},"To extend the list of icons, simply define the same object inside your ",[343,667,558],{"inline":222}," file and add new extension-to-icon mappings.",[36,670,672,676,684,710,736,738,746,756,770,774],{"id":671},"highlighter",[139,673,674],{"id":671},[15,675,671],{},[11,677,678,679,683],{},"This object configures the custom implementation of the ",[19,680,681],{},[57,682,59],{}," code highlighter.",[208,685,687,703],{"title":686,"type":211},"Custom Highlighter",[11,688,689,690,693,694,696,697,700,701,184],{},"Although ",[57,691,692],{},"$nuxt-content"," provides a built-in ",[57,695,59],{}," highlighter that automatically generates code blocks, we've decided to build our own custom ",[15,698,699],{},"DlCodeHighlighter"," component with a custom implementation of ",[57,702,59],{},[11,704,705,706,709],{},"This gives us greater ",[19,707,708],{},"control over how code snippets are rendered",", flexibility for custom configuration, and - most importantly - the ability to perform post-rendering code transformations, such as escaping specific code sections, which you can control as well.",[616,711,712,722],{},[619,713,714],{},[622,715,716,718,720],{},[625,717,627],{},[625,719,120],{},[625,721,632],{},[634,723,724],{},[622,725,726,732,734],{},[639,727,728],{},[57,729,731],{"label":730,"hash":671},"`Highlighter`","$docs-reference-app-config",[639,733,646],{},[639,735,649],{},[11,737,652],{},[123,739,740],{"tabs":655,"max-height":656},[126,741,744],{"className":742,"code":743,"language":228,"meta":132},[226],"import type { BundledLanguage } from 'shiki\u002Fbundle\u002Fweb';\n\nexport default defineDoclayerAppConfig({\n  dl: {\n    \u002F\u002F the rest of the config\n    components: {\n      DlCode: {\n        highlighter: {\n          langs: [\n            'sh',\n            'bash',\n            'html',\n            `xml`,\n            'md',\n            'mdc',\n            'markdown',\n            'vue',\n            'yml',\n            'ts',\n            'typescript',\n            'js',\n            'json',\n            'css',\n            'scss',\n            'php',\n          ] satisfies BundledLanguage[],\n          themes: { dark: 'github-dark-default', light: 'github-light-default' },\n        },\n      },\n    },\n  },\n});\n\"cref:9qjzc7\"\n",[15,745,743],{"__ignoreMap":132},[11,747,748,749,751,752,755],{},"To add more languages for the highlighter, simply provide your own list in the configuration object inside the ",[343,750,558],{"inline":222}," file, they will be merged. If you want to specify a new themes, be aware that they will replace the default ",[15,753,754],{},"github"," themes.",[208,757,759],{"title":758,"type":211},"Single Shiki instance",[11,760,761,762,764,765,769],{},"Please note that the highlighter uses a single, globally defined instance of the ",[57,763,59],{},". If you want to use different highlighter instances for specific code blocks, you can achieve this by using the ",[57,766,454],{"label":767,"hash":768},"`utilShikiHighlighter`","utilshikihighlighter"," composable.",[318,771,773],{"id":772},"code-transformer","Code transformer",[11,775,776,777,17,779,782,783,785,786,790,791,184],{},"Note that the ",[15,778,671],{},[19,780,781],{},"uses a specialized code transformer",". This transformer processes the contents of code blocks inside the ",[15,784,5],{}," component and is currently used to ",[64,787,789],{"href":788},"#escaping-code-from-being-parsed","escape selected chunks of code",". The transformer is configured globally via ",[57,792,500],{"label":793,"hash":794},"`dl.transformers.code`","dltransformers",[36,796,798,803,809],{"id":797},"maxheight",[139,799,800],{"id":797},[15,801,802],{},"maxHeight",[11,804,805,806,808],{},"Value that lets you set the maximum height of the code block. If the content exceeds this height, an expand button will appear. To always show the full block, set a large value (e.g., ",[15,807,504],{},").",[616,810,811,821],{},[619,812,813],{},[622,814,815,817,819],{},[625,816,627],{},[625,818,120],{},[625,820,632],{},[634,822,823],{},[622,824,825,830,835],{},[639,826,827],{},[15,828,829],{},"'${string}rem'",[639,831,832],{},[15,833,834],{},"50rem",[639,836,649],{},[36,838,840,844,850],{"id":839},"lazy",[139,841,842],{"id":839},[15,843,839],{},[11,845,846,847,849],{},"Determines whether the ",[15,848,5],{}," component should be lazy loaded.",[616,851,852,862],{},[619,853,854],{},[622,855,856,858,860],{},[625,857,627],{},[625,859,120],{},[625,861,632],{},[634,863,864],{},[622,865,866,871,876],{},[639,867,868],{},[15,869,870],{},"boolean",[639,872,873],{},[15,874,875],{},"false",[639,877,649],{},[36,879,880,883,886,889,893],{"id":551},[40,881,882],{"id":551},"Props",[44,884,885],{},"dl-code component props properties",[44,887,888],{},"properties to use in with dl-code component",[343,890,892],{":data":891},"{\"componentName\": \"DlCode\"}","rref:section-props-intro",[616,894,895,909],{},[619,896,897],{},[622,898,899,902,904,906],{},[625,900,901],{},"name",[625,903,627],{},[625,905,120],{},[625,907,908],{},"description",[634,910,911,932,954,973],{},[622,912,913,917,921,926],{},[639,914,915],{},[15,916,839],{},[639,918,919],{},[15,920,870],{},[639,922,923],{},[15,924,925],{},"undefined",[639,927,928],{},[11,929,931],{"style":930},"min-width: 16rem;","Whether to lazy load the component.",[622,933,934,938,943,949],{},[639,935,936],{},[15,937,150],{},[639,939,940],{},[15,941,942],{},"string",[639,944,945],{},[11,946,948],{"style":947},"white-space: nowrap;","empty string",[639,950,951],{},[11,952,953],{},"Comma-separated list of tab names (file names) for code blocks.",[622,955,956,960,964,968],{},[639,957,958],{},[15,959,802],{},[639,961,962],{},[15,963,942],{},[639,965,966],{},[15,967,834],{},[639,969,970],{},[11,971,972],{},"Maximum height of the code block.",[622,974,975,979,983,987],{},[639,976,977],{},[15,978,425],{},[639,980,981],{},[15,982,942],{},[639,984,985],{},[15,986,925],{},[639,988,989],{},[11,990,991,992,994,995,184],{},"Handles dynamic string to be replaced within the code with ",[15,993,429],{}," placeholder. ",[64,996,998],{"href":997},"#with-dynamic-string-replacement","Read more here",[36,1000,1002,1005,1008],{"id":1001},"slots",[40,1003,1004],{"id":1001},"Slots",[44,1006,1007],{},"dl-code component slots",[616,1009,1010,1018],{},[619,1011,1012],{},[622,1013,1014,1016],{},[625,1015,901],{},[625,1017,908],{},[634,1019,1020,1032],{},[622,1021,1022,1026],{},[639,1023,1024],{},[15,1025,120],{},[639,1027,1028],{},[11,1029,1031],{"style":1030},"min-width: 30rem;","Default slot for the code content.",[622,1033,1034,1039],{},[639,1035,1036],{},[15,1037,1038],{},"ui",[639,1040,1041],{},[343,1042,1043],{},"rref:section-slots-ui-description",[36,1045,1047,1050,1053,1056],{"id":1046},"styling",[40,1048,1049],{"id":1046},"Styling",[44,1051,1052],{},"dl-code component styling",[343,1054,1055],{},"rref:section-styling-intro",[123,1057,1059],{"tabs":1058,"max-height":656},"DlCode.vue",[126,1060,1065],{"className":1061,"code":1063,"language":1064,"meta":132},[1062],"language-vue","\u003Cscript lang=\"ts\">\nconst ui = defineDoclayerComponentUi({\n  base: [\n    'uc-code-block-border',\n    'uc-code-block-bg',\n    'u-space-mt',\n    'u-border-radius',\n    'border',\n    'pb-0',\n    'max-h-[50rem]',\n    'min-w-[20rem]',\n    'relative',\n    'overflow-hidden',\n    'z-1',\n  ],\n  tab: [\n    'u-text-color',\n    'u-space-p\u002F2',\n    'pr-0',\n    'max-w-fit',\n    'items-center',\n    'relative',\n    'opacity-50',\n    'cursor-pointer',\n    'transition-all',\n  ],\n  tabInsert: [\n    'invisible',\n    'pl-2',\n    'h-10',\n    'flex',\n    'items-center',\n    'justify-self-start',\n    'rounded-sm',\n    'text-sm',\n    'whitespace-nowrap',\n  ],\n  tabs: [\n    'uc-code-block-tabs-bg',\n    'uc-code-block-border',\n    'flex',\n    'flex-row',\n    'border-b',\n    'rounded-t-lg',\n    'pr-14',\n    'overflow-hidden',\n  ],\n  overlappedTab: ['visible!'],\n  overlappedTabsDropdown: [],\n  tabsSkeleton: ['absolute', 'top-[1.2rem]', 'left-4', 'h-6', 'w-[90%]', 'bg-gray-300', 'dark:bg-gray-700'],\n  code: ['uc-code-block-pre-bg', 'u-space-px', 'py-4', 'rounded-b-lg', 'text-left'],\n  actions: ['flex', 'items-end', 'justify-end', 'space-x-2', 'absolute', 'top-[0.9rem]', 'right-[0.9rem]', 'max-w-fit'],\n  actionButton: ['u-border-radius', 'flex', 'items-center', 'justify-center', 'w-8', 'h-8', 'transition-all'],\n  heightAdjustmentButton: ['absolute', 'bottom-[0.8rem]', 'right-[0.8rem]', 'z-5'],\n});\n\u003C\u002Fscript>\n\"cref:ewtjji\"\n","vue",[15,1066,1063],{"__ignoreMap":132},[36,1068,1070,1073,1076],{"id":1069},"css-variables",[139,1071,1072],{"id":1069},"CSS Variables",[343,1074,1075],{":data":891},"rref:section-styling-css-variables-intro",[123,1077,1079],{"tabs":1078,"max-height":656},"styles.css",[126,1080,1085],{"className":1081,"code":1083,"language":1084,"meta":132},[1082],"language-scss","@theme {\n  --app-code-block-bg: var(--app-block-bg);\n  --app-code-block-highlight-bg: light-dark(var(--color-gray-100), var(--color-gray-900));\n  --app-code-block-text-size: var(--app-code-text-size);\n  --app-code-block-text-line-height: var(--app-code-text-line-height);\n  --app-code-block-diff-add-bg: color-mix(\n    in srgb,\n    light-dark(var(--color-green-300), var(--color-green-800)) 20%,\n    transparent\n  );\n  --app-code-block-diff-add-text-color: var(--color-green-600);\n  --app-code-block-diff-remove-bg: color-mix(\n    in srgb,\n    light-dark(var(--color-amber-200), var(--color-amber-800)) 20%,\n    transparent\n  );\n  --app-code-block-diff-remove-text-color: var(--color-amber-500);\n  --app-code-block-blur-factor: 2px;\n  --app-code-block-border: var(--app-border-color);\n  --app-code-block-tabs-bg:\n    to bottom right, light-dark(var(--color-gray-100), var(--app-bg-dark)),\n    light-dark(var(--app-bg-light), var(--color-gray-950));\n  --app-code-block-pre-bg: light-dark(var(--color-white), #050505);\n  --app-code-block-bottom-shade-bg: to bottom, transparent, var(--app-code-block-pre-bg);\n  --app-code-block-bottom-shade-height: 3rem;\n}\n\"cref:ju5aiu\"\n","scss",[15,1086,1083],{"__ignoreMap":132},[36,1088,1090,1093,1096],{"id":1089},"css-utilities",[139,1091,1092],{"id":1089},"CSS Utilities",[343,1094,1095],{":data":891},"rref:section-styling-css-classes-intro",[123,1097,1098],{"tabs":1078,"max-height":656},[126,1099,1102],{"className":1100,"code":1101,"language":1084,"meta":132},[1082],"@utility uc-code-block-bg {\n  @apply bg-(--app-code-block-bg);\n}\n@utility uc-code-block-border {\n  @apply border-(--app-code-block-border);\n}\n@utility uc-code-block-pre-bg {\n  @apply bg-(--app-code-block-pre-bg);\n}\n@utility uc-code-block-tabs-bg {\n  @apply bg-linear-(--app-code-block-tabs-bg);\n}\n\"cref:g2g7ka\"\n",[15,1103,1101],{"__ignoreMap":132},[36,1105,1107,1110],{"id":1106},"recipes",[40,1108,1109],{"id":1106},"Recipes",[11,1111,1112,1113,1115,1116,184],{},"Below you'll find a few solutions to common issues you may encounter while writing content inside the ",[15,1114,5],{}," component. If you find something worth reporting, please ",[57,1117,1119],{"label":1118},"open an issue in the DocLayer repository","$dl-repo-issues",[36,1121,1123,1126,1143,1154,1167,1176,1181,1187,1194],{"id":1122},"escaping-code-from-being-parsed",[139,1124,1125],{"id":1122},"Escaping code from being parsed",[11,1127,1128,1129,17,1132,17,1134,1137,1138,1142],{},"Sometimes, ",[19,1130,1131],{},"code placed inside the",[15,1133,5],{},[19,1135,1136],{},"component may cause parsing issues",", especially when it contains a mix of characters like quotes, colons, or other special symbols. This is particularly relevant for the ",[57,1139,1141],{"label":1140},"`dl-search` Module","$docs-search"," parsing process - module will log code blocks with potential issues.",[11,1144,1145,1146,1149,1150,1153],{},"For example, ",[19,1147,1148],{},"JSON data is typically formatted with double quotes",", which is the correct and standard way. However, if your code block also uses double quotes (such as in Vue props), the ",[19,1151,1152],{},"parser might have trouble interpreting it correctly",", potentially causing formatting issues. To avoid this, it's better to use single quotes in your regular code definitions.",[11,1155,1156,1157,1160,1161,1166],{},"However, if you need to ",[19,1158,1159],{},"prevent code from being parsed"," (for example, if it causes formatting issues or is being unintentionally processed), wrap that code with ",[1162,1163],"dl-tooltip",{"label":1164,"tooltip":1165},"`[[ esc ]]...[[ \u002Fesc ]]`","Spaces in tags added only to prevent escaping"," tags. Any content inside these tags will be resolved, removed, or rendered as plain text, ensuring it is properly preserved.",[11,1168,1169,1172,1173,184],{},[19,1170,1171],{},"You can also escape regular content"," - learn ",[57,1174,500],{"label":1175,"hash":794},"more about this here",[1177,1178],"dl-image",{"alt":1179,"caption":433,"src":1180},"Using escaping tags inside the DlCode component","\u002Fimages\u002Fss-004.png",[11,1182,1183,1184,1186],{},"Because using these tags inside the ",[15,1185,5],{}," component will escape (remove) them, you can see the example in the image above.",[11,1188,1189,1190,1193],{},"If you encounter any issues with formatting Markdown and MDC component definitions you can use this notation: ",[15,1191,1192],{},"&[[esc]]",". It will divide the code properly and apply escaping.",[208,1195,1198],{"title":1196,"type":1197},"Caution when using code `transformer`","warning",[11,1199,1200,1201,1203,1204,17,1206,1210],{},"Escaped code will be automatically processed and potentially removed in the output generated by the ",[57,1202,1141],{"label":1140},". However, the visual presentation (within the content) of these escape tags is managed by a ",[57,1205,500],{"label":793,"hash":794},[64,1207,1209],{"href":1208},"#code-transformer","global property",". If you modify this functionality, the way how code is processed inside your components may\u002Fwill change.",[36,1212,1214,1217,1223],{"id":1213},"hiding-action-buttons-from-being-displayed",[139,1215,1216],{"id":1213},"Hiding action buttons from being displayed",[11,1218,1219,1220,1222],{},"Sometimes, when presenting code, you may not need tabs or action buttons. To hide these, simply use the ",[15,1221,1038],{}," slot and hide the relevant section with the appropriate Tailwind class. You can do it like this:",[123,1224,1225],{"tabs":433},[126,1226,1229],{"className":1227,"code":1228,"language":131,"meta":132},[129],"::dl-code\n\n```ts\nsome code here\n```\n\n#ui\n{ \"actions\": \"hidden\" }\n\n::\n\"cref:vt37eo\"\n",[15,1230,1228],{"__ignoreMap":132},{"title":132,"searchDepth":1232,"depth":1232,"links":1233},2,[1234,1235,1243,1249,1250,1251,1255],{"id":38,"depth":1232,"text":42},{"id":104,"depth":1232,"text":107,"children":1236},[1237,1239,1240,1241,1242],{"id":137,"depth":1238,"text":141},3,{"id":169,"depth":1238,"text":172},{"id":264,"depth":1238,"text":267},{"id":404,"depth":1238,"text":407},{"id":463,"depth":1238,"text":466},{"id":538,"depth":1232,"text":541,"children":1244},[1245,1246,1247,1248],{"id":567,"depth":1238,"text":572},{"id":671,"depth":1238,"text":671},{"id":797,"depth":1238,"text":802},{"id":839,"depth":1238,"text":839},{"id":551,"depth":1232,"text":882},{"id":1001,"depth":1232,"text":1004},{"id":1046,"depth":1232,"text":1049,"children":1252},[1253,1254],{"id":1069,"depth":1238,"text":1072},{"id":1089,"depth":1238,"text":1092},{"id":1106,"depth":1232,"text":1109,"children":1256},[1257,1258],{"id":1122,"depth":1238,"text":1125},{"id":1213,"depth":1238,"text":1216},"Display your code snippets with syntax highlighting, copy, tabs, transformations and more","md",{},true,"\u002Fdocs\u002Fcomponents\u002Fcode",{"title":5,"description":1259},{"loc":1263},"docs\u002F03.components\u002F05.code","Nr6TFsLYZiu7q0qyyIHDJgZLLnQlvszzkm47UqSbMQc",[1269],{"title":1270,"path":1271,"stem":1272,"children":1273,"page":1324},"Docs","\u002Fdocs","docs",[1274,1293,1325,1432,1461,1492,1515,1530,1572,1593],{"title":1275,"path":1276,"stem":1277,"children":1278,"description":6,"icon":1292},"Getting Started","\u002Fdocs\u002Fgetting-started","docs\u002F01.getting-started\u002F01.index",[1279,1282,1287],{"title":1280,"path":1276,"stem":1277,"description":1281},"Introduction","What DocLayer is, who it’s for, and how it can help",{"title":1283,"path":1284,"stem":1285,"description":1286},"Installation","\u002Fdocs\u002Fgetting-started\u002Finstallation","docs\u002F01.getting-started\u002F02.installation","How to install and run DocLayer",{"title":1288,"path":1289,"stem":1290,"description":1291},"FAQ","\u002Fdocs\u002Fgetting-started\u002Ffaq","docs\u002F01.getting-started\u002F03.faq","Frequently asked questions about DocLayer","rocket",{"title":1294,"description":6,"icon":1295,"path":1296,"stem":1297,"children":1298,"page":1324},"Guidelines","file-pen-line","\u002Fdocs\u002Fguidelines","docs\u002F02.guidelines",[1299,1304,1309,1314,1319],{"title":1300,"path":1301,"stem":1302,"description":1303},"Internals","\u002Fdocs\u002Fguidelines\u002Finternals","docs\u002F02.guidelines\u002F02.internals","How DocLayer's structure, its architecture and internals fit together",{"title":1305,"path":1306,"stem":1307,"description":1308},"Configuration","\u002Fdocs\u002Fguidelines\u002Fconfiguration","docs\u002F02.guidelines\u002F03.configuration","Customize DocLayer via `app.config.ts` and its configuration",{"title":1310,"path":1311,"stem":1312,"description":1313},"Writing Content","\u002Fdocs\u002Fguidelines\u002Fwriting-content","docs\u002F02.guidelines\u002F04.writing-content","Write Markdown with Nuxt Content, DocLayer and prebuilt utilities",{"title":1315,"path":1316,"stem":1317,"description":1318},"Defining Metadata","\u002Fdocs\u002Fguidelines\u002Fdefining-metadata","docs\u002F02.guidelines\u002F05.defining-metadata","Set global and per-page SEO metadata for your DocLayer app",{"title":1320,"path":1321,"stem":1322,"description":1323},"Theming","\u002Fdocs\u002Fguidelines\u002Ftheming","docs\u002F02.guidelines\u002F06.theming","Customize DocLayer’s look with CSS variables and utility classes",false,{"title":1326,"path":1327,"stem":1328,"children":1329,"description":6,"label":1280,"icon":1431},"Components","\u002Fdocs\u002Fcomponents","docs\u002F03.components\u002F01.index",[1330,1333,1339,1344,1349,1350,1355,1360,1365,1370,1375,1380,1385,1390,1396,1401,1406,1411,1416,1421,1426],{"title":1331,"path":1327,"stem":1328,"description":1332,"label":1280},"Components Introduction","Overview of DocLayer’s built-in Markdown content components",{"title":1334,"path":1335,"stem":1336,"description":1337,"label":1338},"Components Building & Styling","\u002Fdocs\u002Fcomponents\u002Fbuilding","docs\u002F03.components\u002F02.building","Create custom content components with DlWrapper","DlWrapper",{"title":1340,"path":1341,"stem":1342,"description":1343},"DlRenderer","\u002Fdocs\u002Fcomponents\u002Frenderer","docs\u002F03.components\u002F03.renderer","Render reusable, shareable Markdown fragments anywhere in your content",{"title":1345,"path":1346,"stem":1347,"description":1348},"DlLink","\u002Fdocs\u002Fcomponents\u002Flink","docs\u002F03.components\u002F04.link","Create internal links resolved from the global path registry",{"title":5,"path":1263,"stem":1266,"description":1259},{"title":1351,"path":1352,"stem":1353,"description":1354},"DlCodeInline","\u002Fdocs\u002Fcomponents\u002Finline-code","docs\u002F03.components\u002F05.inline-code","Display inline code that stays on one line",{"title":1356,"path":1357,"stem":1358,"description":1359},"DlCallout","\u002Fdocs\u002Fcomponents\u002Fcallout","docs\u002F03.components\u002F06.callout","Display notes, warnings, and alerts as type-based callout blocks",{"title":1351,"path":1361,"stem":1362,"description":1354,"badge":1363},"\u002Fdocs\u002Fcomponents\u002Fcode-inline","docs\u002F03.components\u002F06.code-inline",{"label":1364,"glow":1262},"new",{"title":1366,"path":1367,"stem":1368,"description":1369},"DlBadge","\u002Fdocs\u002Fcomponents\u002Fbadge","docs\u002F03.components\u002F07.badge","Show compact type-based status labels",{"title":1371,"path":1372,"stem":1373,"description":1374},"DlImage","\u002Fdocs\u002Fcomponents\u002Fimage","docs\u002F03.components\u002F08.image","Present optimized, responsive images with optional caption and inline styling",{"title":1376,"path":1377,"stem":1378,"description":1379},"DlStepper","\u002Fdocs\u002Fcomponents\u002Fstepper","docs\u002F03.components\u002F09.stepper","List vertical step sequences using named slots",{"title":1381,"path":1382,"stem":1383,"description":1384},"DlTooltip","\u002Fdocs\u002Fcomponents\u002Ftooltip","docs\u002F03.components\u002F10.tooltip","Annotate with contextual configurable tooltips",{"title":1386,"path":1387,"stem":1388,"description":1389},"DlPrompter","\u002Fdocs\u002Fcomponents\u002Fprompter","docs\u002F03.components\u002F11.prompter","Prompt the search index and AI Assistant with hidden, removable content inserts",{"title":1391,"path":1392,"stem":1393,"description":1394,"badge":1395},"DlFormat","\u002Fdocs\u002Fcomponents\u002Fformat","docs\u002F03.components\u002F12.format","Format Markdown content into a structured HTML output",{"label":1364,"glow":1262},{"title":1397,"path":1398,"stem":1399,"description":1400},"DlSection","\u002Fdocs\u002Fcomponents\u002Fsection","docs\u002F03.components\u002F13.section","Wrap and demarcate content sections",{"title":1402,"path":1403,"stem":1404,"description":1405},"DlGrid","\u002Fdocs\u002Fcomponents\u002Fgrid","docs\u002F03.components\u002F14.grid","Lay out named content items in a responsive grid",{"title":1407,"path":1408,"stem":1409,"description":1410},"DlHero","\u002Fdocs\u002Fcomponents\u002Fhero","docs\u002F03.components\u002F20.hero","Present a prominent page hero with title, lead and CTA",{"title":1412,"path":1413,"stem":1414,"description":1415},"DlHeading","\u002Fdocs\u002Fcomponents\u002Fheading","docs\u002F03.components\u002F21.heading","Divide content with section headings",{"title":1417,"path":1418,"stem":1419,"description":1420},"DlFeaturesGrid","\u002Fdocs\u002Fcomponents\u002Ffeatures-grid","docs\u002F03.components\u002F22.features-grid","Render a responsive features grid with animated and formatted tiles",{"title":1422,"path":1423,"stem":1424,"description":1425},"DlNewsletter","\u002Fdocs\u002Fcomponents\u002Fnewsletter","docs\u002F03.components\u002F23.newsletter","Collect newsletter subscriptions with a styled form",{"title":1427,"path":1428,"stem":1429,"description":1430},"DlTypeman","\u002Fdocs\u002Fcomponents\u002Ftypeman","docs\u002F03.components\u002F24.typeman","Animate rotating words with a blinking cursor effect","brick-wall",{"title":1433,"path":1434,"stem":1435,"children":1436,"description":6,"label":1280,"icon":1460},"Utilities","\u002Fdocs\u002Futils","docs\u002F04.utils\u002F01.index",[1437,1440,1444,1449,1454],{"title":1438,"path":1434,"stem":1435,"description":1439,"label":1280},"Utilities Introduction","Helpers, composables, macros, and types for extending DocLayer beyond Markdown",{"title":1433,"path":1441,"stem":1442,"description":1443},"\u002Fdocs\u002Futils\u002Futilities","docs\u002F04.utils\u002F02.utilities","Auto-imported helper functions for common tasks across DocLayer",{"title":1445,"path":1446,"stem":1447,"description":1448},"Composables","\u002Fdocs\u002Futils\u002Fcomposables","docs\u002F04.utils\u002F03.composables","Vue composables for collections, UI resolution, navigation, and content",{"title":1450,"path":1451,"stem":1452,"description":1453},"Macros","\u002Fdocs\u002Futils\u002Fmacros","docs\u002F04.utils\u002F04.macros","Compile-time macros for typed app config, adapters, and component UI",{"title":1455,"path":1456,"stem":1457,"description":1458,"label":1459},"Utility Types","\u002Fdocs\u002Futils\u002Ftypes","docs\u002F04.utils\u002F05.types","TypeScript utilities for safer DocLayer development","Types","tool-case",{"title":1462,"path":1463,"stem":1464,"children":1465,"description":6,"label":1469,"icon":1491},"Adapters","\u002Fdocs\u002Fadapters","docs\u002F05.adapters\u002F01.index",[1466,1470,1475,1481,1486],{"title":1467,"path":1463,"stem":1464,"description":1468,"label":1469},"Building Adapters","Build type-safe adapters to plug external services into DocLayer","Building",{"title":1471,"path":1472,"stem":1473,"description":1474},"Google","\u002Fdocs\u002Fadapters\u002Fgoogle","docs\u002F05.adapters\u002F10.google","Connect DocLayer to Google products through built-in adapters",{"title":1476,"path":1477,"stem":1478,"description":1479,"label":1476,"badge":1480},"PostHog","\u002Fdocs\u002Fadapters\u002Fposthog","docs\u002F05.adapters\u002F11.posthog","Record product analytics with the PostHog analytics adapter",{"label":1364,"glow":1262},{"title":1482,"path":1483,"stem":1484,"description":1485},"Resend","\u002Fdocs\u002Fadapters\u002Fresend","docs\u002F05.adapters\u002F20.resend","Send newsletter emails with the Resend newsletter adapter",{"title":1487,"path":1488,"stem":1489,"description":1490},"Substack","\u002Fdocs\u002Fadapters\u002Fsubstack","docs\u002F05.adapters\u002F21.substack","Subscribe users to Substack via DocLayer’s adapter","circle-fading-plus",{"title":1493,"path":1494,"stem":1495,"children":1496,"description":6,"label":1280,"icon":1514},"Search ✨","\u002Fdocs\u002Fsearch","docs\u002F06.search\u002F01.index",[1497,1500,1505,1509],{"title":1498,"path":1494,"stem":1495,"description":1499,"label":1280},"Search Module Introduction","Brief intro into built-in DocLayer’s Search Module",{"title":1501,"path":1502,"stem":1503,"description":1504},"Installation & Usage","\u002Fdocs\u002Fsearch\u002Fusage","docs\u002F06.search\u002F02.usage","Wire DocLayer’s Search Module into your app",{"title":1305,"path":1506,"stem":1507,"description":1508},"\u002Fdocs\u002Fsearch\u002Fconfiguration","docs\u002F06.search\u002F03.configuration","Configure static search, indexing, and the AI assistant in DocLayer's Search Module",{"title":1510,"path":1511,"stem":1512,"description":1513},"API Reference","\u002Fdocs\u002Fsearch\u002Freference","docs\u002F06.search\u002F04.reference","API reference for DocLayer’s Search Module","scan-search",{"title":1516,"path":1517,"stem":1518,"children":1519,"description":6,"icon":1529},"Deployment","\u002Fdocs\u002Fdeployment","docs\u002F07.deployment\u002F01.index",[1520,1523],{"title":1521,"path":1517,"stem":1518,"description":1522},"Building & Preparations","Build a static DocLayer app and prepare it for hosting",{"title":1524,"path":1525,"stem":1526,"description":1527,"label":1528},"Vercel Deployment","\u002Fdocs\u002Fdeployment\u002Fvercel","docs\u002F07.deployment\u002F02.vercel","Deploy DocLayer to Vercel via UI, CLI, or CI","Vercel","server-crash",{"title":1531,"description":6,"icon":1532,"path":1533,"stem":1534,"children":1535,"page":1324},"Advanced","file-terminal","\u002Fdocs\u002Fadvanced","docs\u002F09.advanced",[1536,1542,1547,1552,1557,1562,1567],{"title":1537,"path":1538,"stem":1539,"description":1540,"label":1541},"DocLayer Monorepo","\u002Fdocs\u002Fadvanced\u002Fmonorepo","docs\u002F09.advanced\u002F02.monorepo","pnpm workspaces, Turborepo, and workflows for the DocLayer monorepo","Monorepo",{"title":1543,"path":1544,"stem":1545,"description":1546},"Globals","\u002Fdocs\u002Fadvanced\u002Fglobals","docs\u002F09.advanced\u002F03.globals","DocLayer’s global instances for easy and quick access",{"title":1548,"path":1549,"stem":1550,"description":1551},"CLI","\u002Fdocs\u002Fadvanced\u002Fcli","docs\u002F09.advanced\u002F04.cli","Use Command Line Interface to extensively menage your DocLayer project",{"title":1553,"path":1554,"stem":1555,"description":1556},"Security","\u002Fdocs\u002Fadvanced\u002Fsecurity","docs\u002F09.advanced\u002F05.security","Security defaults DocLayer ships with Nuxt Security",{"title":1558,"path":1559,"stem":1560,"description":1561},"AI Tuning","\u002Fdocs\u002Fadvanced\u002Fai-tuning","docs\u002F09.advanced\u002F06.ai-tuning","Templates and rules for AGENTS.md, coding agents, and content-author AI",{"title":1563,"path":1564,"stem":1565,"description":1566},"Error Handling","\u002Fdocs\u002Fadvanced\u002Ferror-handling","docs\u002F09.advanced\u002F07.error-handling","How DocLayer validates and reports errors in authoring, build, and production",{"title":1568,"path":1569,"stem":1570,"description":1571},"Troubleshooting","\u002Fdocs\u002Fadvanced\u002Ftroubleshooting","docs\u002F09.advanced\u002F08.troubleshooting","Known DocLayer issues and quick fixes",{"title":1573,"description":6,"icon":1574,"path":1575,"stem":1576,"children":1577,"page":1324},"Project","shield-ellipsis","\u002Fdocs\u002Fproject","docs\u002F10.project",[1578,1583,1588],{"title":1579,"path":1580,"stem":1581,"description":1582},"Contribution","\u002Fdocs\u002Fproject\u002Fcontribution","docs\u002F10.project\u002F01.contribution","How to report issues and when contributions are welcome",{"title":1584,"path":1585,"stem":1586,"description":1587},"Principles","\u002Fdocs\u002Fproject\u002Fethos","docs\u002F10.project\u002F02.ethos","Who we are, what we care about, and how we treat each other",{"title":1589,"path":1590,"stem":1591,"description":1592},"Support","\u002Fdocs\u002Fproject\u002Fsupport","docs\u002F10.project\u002F03.support","Join the Early Supporter Program and help fund DocLayer’s development",{"title":1510,"description":6,"icon":1594,"path":1595,"stem":1596,"children":1597,"page":1324},"file-type","\u002Fdocs\u002Freference","docs\u002F99.reference",[1598,1603,1608],{"title":1599,"path":1600,"stem":1601,"description":1602},"App Config","\u002Fdocs\u002Freference\u002Fapp-config","docs\u002F99.reference\u002F01.app-config","API Reference for DocLayer’s AppConfig",{"title":1604,"path":1605,"stem":1606,"description":1607},"Module Options","\u002Fdocs\u002Freference\u002Fmodule-options","docs\u002F99.reference\u002F01.module-options","API Reference for DocLayer’s ModuleOptions",{"title":1609,"path":1610,"stem":1611,"description":1612},"Content Schema","\u002Fdocs\u002Freference\u002Fcontent-schema","docs\u002F99.reference\u002F02.content-schema","API Reference for DocLayer’s Content Schema",[1614,1637,1658,1679,1708,1724,1741,1767,1789,1835,1856,1868,1882,1897,1909,1970,1988,2014,2038,2068,2112,2139],{"id":1615,"data":6,"extension":1260,"meta":1616,"stem":1635,"__hash__":1636},"shared\u002Fcode-type-header-logo-path.md",{"body":1617},{"type":8,"value":1618,"toc":1633},[1619],[123,1620,1621,1627],{},[126,1622,1625],{"className":1623,"code":1624,"language":228,"meta":132},[226],"type DocLayerConfig = {\n  \u002F\u002F rest of the AppConfig interface\n  headerLogoPath:\n    | string\n    | {\n        light: string;\n        dark: string;\n        fallback?: string;\n      };\n};\n\"cref:k9e5ul\"\n",[15,1626,1624],{"__ignoreMap":132},[1628,1629,1630],"template",{"v-slot:ui":132},[11,1631,1632],{},"{\"actions\": \"hidden\", \"base\": \"mt-0!\"}",{"title":132,"searchDepth":1232,"depth":1232,"links":1634},[],"code-type-header-logo-path","551Sg_POiUffLU346shstXNFdKuMuK4ToyOLqIJp1Ws",{"id":1638,"data":6,"extension":1260,"meta":1639,"stem":1656,"__hash__":1657},"shared\u002Fcode-type-module-options-root-prep.md",{"body":1640},{"type":8,"value":1641,"toc":1654},[1642],[123,1643,1644,1650],{},[126,1645,1648],{"className":1646,"code":1647,"language":228,"meta":132},[226],"type ModuleOptions = {\n  rootPrep:\n    | {\n        components: boolean;\n        configs: boolean;\n        public: boolean;\n      }\n    | boolean;\n};\n\"cref:bqm9nh\"\n",[15,1649,1647],{"__ignoreMap":132},[1628,1651,1652],{"v-slot:ui":132},[11,1653,1632],{},{"title":132,"searchDepth":1232,"depth":1232,"links":1655},[],"code-type-module-options-root-prep","CDd6YiejS7_3Pl2ETS054y-cran1P92f4jEUZTnpnOI",{"id":1659,"data":6,"extension":1260,"meta":1660,"stem":1677,"__hash__":1678},"shared\u002Fcode-type-search-debug-options.md",{"body":1661},{"type":8,"value":1662,"toc":1675},[1663],[123,1664,1665,1671],{},[126,1666,1669],{"className":1667,"code":1668,"language":228,"meta":132},[226],"type DebugOptions =\n  | {\n      mint: boolean;\n      parser: boolean;\n      assistant: boolean;\n      compression: boolean;\n    }\n  | boolean;\n\"cref:4kwyr2\"\n",[15,1670,1668],{"__ignoreMap":132},[1628,1672,1673],{"v-slot:ui":132},[11,1674,1632],{},{"title":132,"searchDepth":1232,"depth":1232,"links":1676},[],"code-type-search-debug-options","9sgMqYFmn561p6df7FEuf-1-dyKAqrO_HYGdARynLlA",{"id":1680,"data":6,"extension":1260,"meta":1681,"stem":1706,"__hash__":1707},"shared\u002Finline-read-more-about.md",{"body":1682},{"type":8,"value":1683,"toc":1704},[1684],[11,1685,1688,1689,26,1693],{"className":1686},[1687],"mt-0!","More about ",[1690,1691],"dl-format",{":content":1692},"about",[57,1694,1696,1700,1701],{"label":1695},"you can read here",[1697,1698],"binding",{"value":1699},"$doc.link","|",[1697,1702],{"value":1703},"$doc.hash",{"title":132,"searchDepth":1232,"depth":1232,"links":1705},[],"inline-read-more-about","O5VeK2Uv84witk_mAupYbHJxwXAmNoSKDgtmvyvLQwU",{"id":1709,"data":6,"extension":1260,"meta":1710,"stem":1722,"__hash__":1723},"shared\u002Fsection-exported-types.md",{"body":1711},{"type":8,"value":1712,"toc":1720},[1713],[11,1714,1715,1716,1719],{},"You can refer to the exported types, which are available for use throughout your application. All of them can be accessed from the ",[15,1717,1718],{},"@vuehouse\u002Fdl\u002Ftypes"," entrypoint.",{"title":132,"searchDepth":1232,"depth":1232,"links":1721},[],"section-exported-types","SyCNSGhT7VGICRHuO3fNO2QfyQUf7s10wVMGQyTfBFk",{"id":1725,"data":6,"extension":1260,"meta":1726,"stem":1739,"__hash__":1740},"shared\u002Fsection-highlighter-marker-disclaimer.md",{"body":1727},{"type":8,"value":1728,"toc":1737},[1729],[202,1730,1731],{},[11,1732,13,1733,1736],{},[15,1734,1735],{},"!"," character has been escaped manually to demonstrate the code usage, remove the backslash when using it.",{"title":132,"searchDepth":1232,"depth":1232,"links":1738},[],"section-highlighter-marker-disclaimer","DvlAILaQ9PE_c-B8f_1AYbrRaXRnOq9Ldr_Uc8qwkqE",{"id":1742,"data":6,"extension":1260,"meta":1743,"stem":1765,"__hash__":1766},"shared\u002Fsection-newly-added.md",{"body":1744},{"type":8,"value":1745,"toc":1763},[1746],[208,1747,1748],{"title":875},[11,1749,1750,1754,1755,1762],{},[1751,1752,1364],"dl-badge",{":iui":1753,"glow":222,"size":1260},"{ \"base\": \"mr-1 align-text-top\" }"," Available from the ",[15,1756,1759],{"className":1757},[1758],"whitespace-nowrap",[1697,1760],{"value":1761},"$doc.version"," release.",{"title":132,"searchDepth":1232,"depth":1232,"links":1764},[],"section-newly-added","ALhVdWjkGXgjt6I9nIikz7fUkwkGy62V3bicM903qW8",{"id":1768,"data":6,"extension":1260,"meta":1769,"stem":1787,"__hash__":1788},"shared\u002Fsection-optional-tool.md",{"body":1770},{"type":8,"value":1771,"toc":1785},[1772],[208,1773,1774],{"title":875,"type":211},[11,1775,1776,1777,1780,1781,184],{},"This tool is not a part of the DocLayer module. Its usage is opinionated and ",[19,1778,1779],{},"optionally included"," in the ",[57,1782,1784],{"label":1783},"Boilerplate application","$dl-boilerplate",{"title":132,"searchDepth":1232,"depth":1232,"links":1786},[],"section-optional-tool","OWRAq0rKvbIllQHS-mJRS8L2qkNiiQ8RMiFBIBiZmnY",{"id":1790,"data":6,"extension":1260,"meta":1791,"stem":1833,"__hash__":1834},"shared\u002Fsection-props-extending.md",{"body":1792},{"type":8,"value":1793,"toc":1831},[1794],[208,1795,1797,1809],{"title":1796,"type":211},"Why to use built-in property extending?",[11,1798,1799,1800,1808],{},"You might ask ",[19,1801,1802,1803],{},"why this approach is better than simply ",[57,1804,1807],{"hash":1805,"label":1806},"defining-dynamic-properties","passing regular dynamic properties","$docs-guidelines-writing-content"," to your content components?",[48,1810,1811,1818,1825,1828],{},[51,1812,1813,1814,184],{},"First, it’s not limited to local data - you can provide data from parent components as well as from the global registry, managed by the ",[57,1815,500],{"hash":1816,"label":1817},"dlindocdata","`dl.inDocData` object",[51,1819,1820,1821,1824],{},"Second, dynamic property binding with the ",[15,1822,1823],{},"$doc"," handler isn’t possible when using regular dynamic props, since those values are resolved as static data, which can make data binding inconsistent.",[51,1826,1827],{},"Third, you can mix static and dynamic content for the same property.",[51,1829,1830],{},"Finally, with this approach, data binding happens at the component level, is cached, and reused for future renders, rather than being resolved each time during Markdown parsing.",{"title":132,"searchDepth":1232,"depth":1232,"links":1832},[],"section-props-extending","_KvOHw4F9cNT3FPfJPu3rKhnly5pt4adBb6EQXsJM8s",{"id":1836,"data":6,"extension":1260,"meta":1837,"stem":1854,"__hash__":1855},"shared\u002Fsection-props-intro.md",{"body":1838},{"type":8,"value":1839,"toc":1852},[1840],[11,1841,1842,1843,1848,1849,184],{},"Here are the properties you can use with the ",[15,1844,1845],{},[1697,1846],{"value":1847},"$doc.componentName"," component. Each property should be set on an individual component instance; they do not affect the global configuration. More about defining properties in MDC components ",[57,1850,1807],{"hash":1851,"label":1695},"defining-properties",{"title":132,"searchDepth":1232,"depth":1232,"links":1853},[],"section-props-intro","SKoDIW1kVb4amM1MgbWMvvgRr9IWPabKr58_xl1Q-GM",{"id":1857,"data":6,"extension":1260,"meta":1858,"stem":1866,"__hash__":1867},"shared\u002Fsection-props-iui-description.md",{"body":1859},{"type":8,"value":1860,"toc":1864},[1861],[11,1862,1863],{},"Special property dedicated to inline components, can be used to add TW classes for certain component markup elements.",{"title":132,"searchDepth":1232,"depth":1232,"links":1865},[],"section-props-iui-description","Se96jxhroK3WLRE4HXYqDeoYv1lpUd8qv4vZ8us54sI",{"id":1869,"data":6,"extension":1260,"meta":1870,"stem":1880,"__hash__":1881},"shared\u002Fsection-props-ui-default.md",{"body":1871},{"type":8,"value":1872,"toc":1878},[1873],[11,1874,1875],{"style":947},[64,1876,646],{"href":1877},"#styling",{"title":132,"searchDepth":1232,"depth":1232,"links":1879},[],"section-props-ui-default","5mkrOeoYp1BToIddCkwyzzTWeOQvj1gDVRYHJJl7kow",{"id":1883,"data":6,"extension":1260,"meta":1884,"stem":1895,"__hash__":1896},"shared\u002Fsection-props-ui-description.md",{"body":1885},{"type":8,"value":1886,"toc":1893},[1887],[11,1888,1889,1890,1892],{"style":930},"The component ",[15,1891,1038],{}," object. Defines the Tailwind classes for the component's HTML markup elements.",{"title":132,"searchDepth":1232,"depth":1232,"links":1894},[],"section-props-ui-description","xXl6RjZ54x2VpJv6H1mJ7OSCTSOfMTtRD1_VyiC0tjI",{"id":1898,"data":6,"extension":1260,"meta":1899,"stem":1907,"__hash__":1908},"shared\u002Fsection-props-ui-type.md",{"body":1900},{"type":8,"value":1901,"toc":1905},[1902],[15,1903,1904],{"style":947},"() => UI",{"title":132,"searchDepth":1232,"depth":1232,"links":1906},[],"section-props-ui-type","AuxEvFbnpnbFrEjJrYiNJVZsYmI8RkEnH9RjkkuoaSQ",{"id":1910,"data":6,"extension":1260,"meta":1911,"stem":1968,"__hash__":1969},"shared\u002Fsection-remote-model-callout.md",{"body":1912},{"type":8,"value":1913,"toc":1966},[1914],[208,1915,1917,1923,1933,1936,1945,1955],{"title":1916},"DocLayer's Remote Model",[11,1918,1919,1922],{},[19,1920,1921],{},"DocLayer offers a prebuilt remote API for the AI Assistant",", providing advanced features like context focusing, deterministic intelligent caching, and optimized code extraction to deliver precise, high-quality answers (almost) every time.",[11,1924,1925,184],{},[19,1926,1927,1928,1932],{},"Our carefully fine-tuned model is available through the ",[57,1929,1931],{"label":1930},"🫠 Early Supporter Program","$docs-project-support"," - help us to build the best product possible securing the most advanced features for the best price",[11,1934,1935],{},"Here’s how you can configure it:",[123,1937,1939],{"tabs":1938},"nuxt.config.ts",[126,1940,1943],{"className":1941,"code":1942,"language":228,"meta":132},[226],"export default defineNuxtConfig({\n  \u002F\u002F the rest of the nuxt.config.ts\n  modules: ['@vuehouse\u002Fdl-search'],\n  dlSearch: {\n    assistant: {\n      model: {\n        type: 'dl',\n        config: {\n          endpoint: 'https:\u002F\u002Fvue.house\u002Fapi',\n          token: process.env.DL_API_TOKEN,\n        },\n      },\n    },\n  },\n});\n\"cref:96cag8\"\n",[15,1944,1942],{"__ignoreMap":132},[11,1946,1947,1948,1951,1952,184],{},"To try our API please ",[57,1949,1950],{},"$mailto-vue-house",". ",[19,1953,1954],{},"It's free",[11,1956,1957,1958,17,1961,184],{},"Remote ",[19,1959,1960],{},"API operates with a dedicated",[57,1962,1965],{"label":1963,"hash":1964},"DocLayer AI Kit","ai-kit","$docs-search-usage",{"title":132,"searchDepth":1232,"depth":1232,"links":1967},[],"section-remote-model-callout","C3AapTL9Uu5tqauRWl5GqZc8aOld3-yEvscN9Dwfp2M",{"id":1971,"data":6,"extension":1260,"meta":1972,"stem":1986,"__hash__":1987},"shared\u002Fsection-slots-ui-description.md",{"body":1973},{"type":8,"value":1974,"toc":1984},[1975],[11,1976,1977,1978,1980,1981,184],{},"Dedicated slot for defining the component’s ",[15,1979,1038],{}," object. More about styling MDC components ",[57,1982,1983],{"label":1695},"$docs-components-building",{"title":132,"searchDepth":1232,"depth":1232,"links":1985},[],"section-slots-ui-description","HFR6PT0KFzSBW9WnqIk5KdPqHjGTTl3za3mklYIIYUY",{"id":1989,"data":6,"extension":1260,"meta":1990,"stem":2012,"__hash__":2013},"shared\u002Fsection-styling-css-classes-intro.md",{"body":1991},{"type":8,"value":1992,"toc":2010},[1993],[11,1994,1995,1996,2000,2001,2005,2006,2009],{},"Below are the CSS utility classes used by the ",[15,1997,1998],{},[1697,1999],{"value":1847}," component. They make use of the ",[64,2002,2004],{"href":2003},"#css-variables","CSS variables"," described above and ",[64,2007,2008],{"href":1877},"define the default styling"," for the component's markup elements.",{"title":132,"searchDepth":1232,"depth":1232,"links":2011},[],"section-styling-css-classes-intro","VRtlxQ59m9iNVrWHp9r1OAy2lkklqQPtKbRIkwVCY6A",{"id":2015,"data":6,"extension":1260,"meta":2016,"stem":2036,"__hash__":2037},"shared\u002Fsection-styling-css-variables-intro.md",{"body":2017},{"type":8,"value":2018,"toc":2034},[2019],[11,2020,2021,2022,2025,2026,2030,2031,184],{},"Here is a set of CSS variables you can ",[19,2023,2024],{},"use to customize the appearance"," of the ",[15,2027,2028],{},[1697,2029],{"value":1847}," component globally. More about theming and styling with CSS variables, ",[57,2032,2033],{"hash":1069,"label":1695},"$docs-guidelines-theming",{"title":132,"searchDepth":1232,"depth":1232,"links":2035},[],"section-styling-css-variables-intro","Vk6yVXoMwLNtqisCZhk9m2F3-wHKjiujWtBBZbTJcD4",{"id":2039,"data":6,"extension":1260,"meta":2040,"stem":2066,"__hash__":2067},"shared\u002Fsection-styling-intro.md",{"body":2041},{"type":8,"value":2042,"toc":2064},[2043,2056],[208,2044,2046],{"title":2045,"type":211},"Styling from Markdown",[11,2047,2048,2049,2052,2053,184],{},"Every DocLayer component ",[19,2050,2051],{},"can be styled directly within your Markdown file"," using dedicated slot\u002Fproperty configuration. This allows you to customize the appearance of the component's markup elements without modifying global styles. More about components styling ",[57,2054,1983],{"hash":2055,"label":1695},"styling-inside-the-markdown-files",[11,2057,2058,2059],{},"Below you'll find the default set of Tailwind classes for the component's dedicated markup elements. ",[1690,2060,2061],{},[1697,2062],{"defaultValue":925,"value":2063},"$doc.extend",{"title":132,"searchDepth":1232,"depth":1232,"links":2065},[],"section-styling-intro","8V_zEj7QXax6dzKp918ZNy97d9u4qk6TaE40wI5JWEs",{"id":2069,"data":6,"extension":1260,"meta":2070,"stem":2110,"__hash__":2111},"shared\u002Fsection-utility-exports-disclaimer.md",{"body":2071},{"type":8,"value":2072,"toc":2108},[2073],[208,2074,2075,2082,2101],{"title":875,"type":211},[11,2076,2077,2078,2081],{},"This utility is ",[19,2079,2080],{},"exported from the module"," package.",[123,2083,2086,2092],{"dynamic":2084,"tabs":2085},"utilityName","file.ts",[126,2087,2090],{"className":2088,"code":2089,"language":228,"meta":132},[226],"import { :dl-dynamic: } from '@vuehouse\u002Fdl\u002Fexports';\n\"cref:zseli7\"\n",[15,2091,2089],{"__ignoreMap":132},[1628,2093,2094],{"v-slot:props":132},[11,2095,2096,2097,2100],{},"{\"dynamic\": \"",[1697,2098],{"value":2099},"$doc.utilityName","\" }",[11,2102,2103,2104,2107],{},"You can use it this way ",[19,2105,2106],{},"when the global context is not available"," and utility can't be loaded automatically by Nuxt.",{"title":132,"searchDepth":1232,"depth":1232,"links":2109},[],"section-utility-exports-disclaimer","FXCXHiiD49oOkbSwsKFpp4m0gsXkZdnUwCwWnVjwucI",{"id":2113,"data":6,"extension":1260,"meta":2114,"stem":2137,"__hash__":2138},"shared\u002Ftooltip-app-config-path.md",{"body":2115},{"type":8,"value":2116,"toc":2135},[2117],[1162,2118,2121],{"label":2119,"tooltip":2120},"`app.config.ts`","In-app file path: app\u002Fapp.config.ts",[1628,2122,2123],{"v-slot:props":132},[11,2124,2125,2126,2130,2131,2134],{},"{\"tooltip\": \"In-app file path: ",[1697,2127],{"defaultValue":2128,"value":2129},"app\u002Fapp.config.ts","$doc.tooltip","\", \"label\": \"",[1697,2132],{"defaultValue":2119,"value":2133},"$doc.label","\"}",{"title":132,"searchDepth":1232,"depth":1232,"links":2136},[],"tooltip-app-config-path","WVDQKyALt7paYD6Tr7K10fmQ27d2XjzO_oxDKHCgSdc",{"id":2140,"data":6,"extension":1260,"meta":2141,"stem":2150,"__hash__":2151},"shared\u002Ftooltip-rag.md",{"body":2142},{"type":8,"value":2143,"toc":2148},[2144],[1162,2145],{"label":2146,"lock-width":222,"tooltip":2147},"**RAG**","RAG stands for Retrieval-Augmented Generation. It is an AI solution that enhances the accuracy and reliability of Large Language Models by allowing them to reference data outside their original training set when generating answers. In most cases, this data is provided locally.",{"title":132,"searchDepth":1232,"depth":1232,"links":2149},[],"tooltip-rag","fDKuZzfT8d6JNox0uI1P0_ktG8kYWiz7WGsWWo7gTGs",[2153,2154,2155,2156],{"title":1340,"path":1341,"stem":1342,"description":1343,"children":-1},{"title":1345,"path":1346,"stem":1347,"description":1348,"children":-1},{"title":1351,"path":1352,"stem":1353,"description":1354,"children":-1},{"title":1356,"path":1357,"stem":1358,"description":1359,"children":-1},1795796063798]