[{"data":1,"prerenderedAt":1376},["ShallowReactive",2],{"\u002Fdocs\u002Fadvanced\u002Ferror-handling":3,"dl-navigation-docs":470,"shared":815,"surroundings-\u002Fdocs\u002Fadvanced\u002Ferror-handling":1371},{"id":4,"title":5,"_llmSection":6,"_local":6,"_schemaOrg":6,"_seo":6,"body":7,"description":461,"extension":462,"ignore":6,"meta":463,"navigation":464,"path":465,"seo":466,"sitemap":467,"stem":468,"__hash__":469},"docs\u002Fdocs\u002F09.advanced\u002F07.error-handling.md","Error Handling",null,{"type":8,"value":9,"toc":456},"minimark",[10,23,350],[11,12,13,14,18,19,22],"p",{},"DocLayer ",[15,16,17],"strong",{},"fails loudly while you write and build",", then ",[15,20,21],{},"stays quiet in production",". Authors see mistakes immediately, prerender refuses to ship broken content, and visitors are never blocked by a validation warning.",[24,25,27,31,35,38,41,48,55],"dl-section",{"id":26},"error-handling-overview",[28,29,30],"h2",{"id":26},"Error Handling Overview",[32,33,34],"dl-prompter",{},"how errors are handled in doclayer",[32,36,37],{},"error handling overview",[32,39,40],{},"error handling development vs production vs build",[11,42,43,44,47],{},"It's important to understand that ",[15,45,46],{},"each of these stages is mainly handled by different tools"," - Vue, Vite, Rollup, Nitro - each responsible for a specific part of the pipeline. While this might seem like a drawback, it can be treated as a strength because it allows for very granular control over the entire process. At the same time, it's important to ensure the approach is as universal and consistent as possible, sharing the same logic across.",[11,49,50,51,54],{},"Below we present a detailed ",[15,52,53],{},"breakdown of how the errors are handled at each stage of the pipeline",", starting from authoring - the most common use case for DocLayer - through development, build, and production.",[56,57,58,96,225,262,309],"dl-stepper",{},[59,60,62,76],"template",{"v-slot:step-1|Authoring":61},"",[11,63,64,65,68,69,75],{},"Every Markdown file you create in your editor is ",[15,66,67],{},"validated by the internal Markdownlint"," ruleset. Additionally, we have extended this with custom rules that check specifically for the usage and structure of DocLayer’s custom content components in your content. ",[70,71,74],"dl-renderer",{":data":72,"inline":73},"{\"link\":\"$docs-guidelines-internals\", \"about\": \"Markdownlint, its rules and setup\", \"hash\": \"markdownlint\"}","true","rref:inline-read-more-about",".",[11,77,78,79,86,87,92,93,75],{},"Markdown ",[15,80,81,82],{},"metadata is validated by ",[83,84,85],"dl-link",{},"$zod",", following ",[83,88,91],{"label":89,"path":90},"Nuxt Content conventions","docs\u002Fcollections\u002Fdefine","$nuxt-content",". This ensures that the frontmatter-oriented data is checked for correct format, and validation succeeds prior to document displaying. ",[70,94,74],{":data":95,"inline":73},"{\"link\":\"$docs-guidelines-writing-content\", \"about\": \"defining content metadata within collections\", \"hash\": \"collections\"}",[59,97,98,136,156,175,196],{"v-slot:step-2|Development":61},[11,99,100,101,105,106,105,110,114,115,120,121,130,131,135],{},"Our internal content components (like ",[83,102,104],{"label":103},"`DlCode`","$docs-components-code",", ",[83,107,109],{"label":108},"`DlCallout`","$docs-components-callout",[83,111,113],{"label":112},"`DlLink`","$docs-components-link",", etc.) and pages are guarded and validated using the ",[83,116,119],{"label":117,"hash":118},"`useContentGuard`","usecontentguard","$docs-utils-composables"," composable. It provides a ",[15,122,123,124,129],{},"universal and ",[125,126],"dl-tooltip",{"label":127,"lock-width":73,"tooltip":128},"polymorphic","The same utility resolves on the various environments and runtimes."," approach to error handling and its presentation"," (with custom ",[132,133,134],"code",{},"error.vue"," page). It's highly recommended to use it in your own components and pages to ensure the consistency and reliability of your content.",[11,137,138,139,142,143,145,146,151,152,155],{},"On the server the guard ",[15,140,141],{},"throws"," so SSR can render ",[132,144,134],{},"; on the client it calls ",[83,147,150],{"label":148,"path":149},"`showError()`","\u002Fapi\u002Futils\u002Fshow-error","$nuxt-docs"," ",[15,153,154],{},"after hydration",". Throwing during setup would abort navigation and cancel hydration.",[11,157,158,159,161,162,165,166,171,172,75],{},"As noted above, DocLayer automatically provides a custom ",[132,160,134],{}," page to display user-friendly error messages. This page is automatically added each time you run the ",[83,163,150],{"label":164},"`nuxt prepare`"," command. If you prefer to use your own error page, you can prevent this automation by setting the ",[83,167,170],{"label":168,"hash":169},"`rootPrep`","rootprep","$docs-getting-started-installation"," module option to ",[132,173,174],{},"false",[11,176,177,178,181,182,187,188,191,192,75],{},"During development, you may encounter various errors and warnings. To provide the best possible experience and maintain content reliability, ",[15,179,180],{},"DocLayer automatically mutes warnings and notifications that are known to be harmless or simply add unnecessary noise",". This is achieved through a custom and universal (client and server-side) plugin that sets up warn handlers using a predefined set of patterns and filters. You can extend or override these patterns to fit your needs by using the ",[83,183,186],{"label":184,"hash":185},"`utilWarnPatternCheck`","utilwarnpatterncheck","$docs-utils-utilities"," utility - of course with your own handler instead. This runtime filter is always on for the known patterns; it is ",[15,189,190],{},"not"," toggled by ",[83,193,170],{"label":194,"hash":195},"`debug`","debug",[11,197,198,199,204,205,151,208,211,212,215,216,219,220,224],{},"All logs - warnings, errors, etc. - are managed using the ",[83,200,203],{"label":201,"hash":202},"`utilLogger`","logger","$docs-advanced-globals"," utility. This ",[15,206,207],{},"utility is built on top of",[83,209,210],{},"$consola"," and ",[15,213,214],{},"delivers a consistent, universal logging strategy",". It is strongly recommended for use in your own components. Pairing ",[132,217,218],{},"utilLogger"," with ",[83,221,186],{"label":222,"hash":223},"`utilLogMessage`","utillogmessage"," further improves the formatting and clarity of your log messages, providing users with complete context about any issues that occur.",[59,226,227,246,256],{"v-slot:step-3|Building & Bundling":61},[11,228,229,232,233,211,236,240,241,245],{},[15,230,231],{},"It's important to distinguish the building and bundling stages from the final prerender."," Because DocLayer builds statically by default, these steps happen sequentially and are managed by different tools depending on the environment: ",[83,234,235],{},"$vite",[83,237,239],{"label":238},"Rollup","$rollup"," take care of bundling and building, while ",[83,242,244],{"label":243},"Nitro","$nitro"," is responsible for further server asset building and for prerendering.",[11,247,248,249,252,253,255],{},"For both Vite (which manages the initial startup and hands off to Rollup) and Rollup (handling the main build), ",[15,250,251],{},"we use custom plugins to manage warnings and errors",". These plugins suppress warnings considered minor or irrelevant to the build process. Each plugin has filters and patterns specific to its stage, and both use the ",[83,254,186],{"label":184,"hash":185}," utility to further fine-tune which warnings get filtered.",[11,257,258,259,261],{},"On this stage, enabling full logging also works with the ",[83,260,170],{"label":194,"hash":195}," module option - the same flag as everywhere else, not a separate switch per tool; more granular logging coming soon.",[59,263,264,289],{"v-slot:step-4|Prerender":61},[11,265,266,267,269,270,274,275,277,278,281,282,284,285,288],{},"Now, mentioned before - rendering, done by ",[83,268,244],{},". Our initial configuration sets the ",[83,271,244],{"label":272,"path":273},"`failOnError`","config#prerender"," option to ",[132,276,73],{},", which means Nitro will terminate the build if a prerendered route throws. ",[132,279,280],{},"console.warn"," alone does not fail the build. Since our content is already protected by the ",[83,283,119],{"label":117,"hash":118}," composable - which also plays a role at this stage - any error that slips through will cause the build to fail. This makes it crucial to use the guard utility correctly and consistently. Its ",[15,286,287],{},"foundation is designed to provide clear, detailed logging during development and to ensure that errors are caught and reported if they reach the build stage",", before accidentally deploying a broken application.",[11,290,291,292,294,295,299,300,302,303,306,307,75],{},"It's worth noting that some of this stage warnings were also filtered by the ",[83,293,186],{"label":184,"hash":185},". The Nitro ",[83,296,244],{"label":297,"path":298},"`errorHandler`","config#errorhandler"," is only a debug tap (",[132,301,195],{}," \u002F ",[132,304,305],{},"NITRO_EVENTS",") - it does not replace ",[132,308,134],{},[59,310,311,330],{"v-slot:step-5|Production":61},[11,312,313,314,317,318,322,323,151,326,329],{},"In production, ",[15,315,316],{},"logs are disabled by default"," because the ",[83,319,321],{"label":320},"security preset","$docs-advanced-security"," suppresses them. If you need to debug in production, you can ",[15,324,325],{},"enable logging with",[132,327,328],{},"DL_SECURITY_PROD_LOG=true",". Be mindful that exposing internal logs may lead to security vulnerabilities and reveal application issues.",[11,331,332,333,335,336,339,340,342,343,346,347,75],{},"Lastly, the ",[83,334,119],{"label":117,"hash":118}," composable can also play an important role at this stage: it ",[15,337,338],{},"logs and does not throw",", so a bad content block will not replace the whole page with ",[132,341,134],{},". If any content block fails to render, you can use a simple flag (set by the ",[83,344,119],{"label":345,"hash":118},"dedicated fallback function",") in your component or page template to skip rendering the broken \"island\". ",[70,348,74],{":data":349,"inline":73},"{\"link\":\"$docs-utils-composables\", \"about\": \"this feature\", \"hash\": \"usecontentguard\"}",[24,351,353,356,359],{"id":352},"tooling-guideline",[28,354,355],{"id":352},"Tooling Guideline",[11,357,358],{},"Here's a simplified table of how the errors are handled within the lifecycle.",[360,361,362,375],"table",{},[363,364,365],"thead",{},[366,367,368,372],"tr",{},[369,370,371],"th",{},"Stage",[369,373,374],{},"Description",[376,377,378,398,415,427,444],"tbody",{},[366,379,380,392],{},[381,382,383],"td",{},[11,384,385,151,388,391],{},[15,386,387],{},"Authoring",[389,390],"br",{}," (writing content)",[381,393,394],{},[11,395,397],{"style":396},"min-width: 20rem;","Validate Markdown to detect errors in custom components, and collection frontmatter before the app boots.",[366,399,400,410],{},[381,401,402],{},[11,403,404,151,407,409],{},[15,405,406],{},"Development",[389,408],{}," (e.g. building components)",[381,411,412],{},[11,413,414],{},"Guard content, show fatal errors, mute known Vue noise, log with a shared format.",[366,416,417,422],{},[381,418,419],{},[15,420,421],{},"Building & Bundling",[381,423,424],{},[11,425,426],{},"Suppress known bundler warnings.",[366,428,429,439],{},[381,430,431],{},[11,432,433,151,436,438],{},[15,434,435],{},"Prerender",[389,437],{}," (generating static routes)",[381,440,441],{},[11,442,443],{},"Thrown route errors fail the deploy. The Nitro handler is a debug tap only.",[366,445,446,451],{},[381,447,448],{},[15,449,450],{},"Production",[381,452,453],{},[11,454,455],{},"Logs off by default; any guard does not throw. Broken blocks can be hidden additionally.",{"title":61,"searchDepth":457,"depth":457,"links":458},2,[459,460],{"id":26,"depth":457,"text":30},{"id":352,"depth":457,"text":355},"How DocLayer validates and reports errors in authoring, build, and production","md",{},true,"\u002Fdocs\u002Fadvanced\u002Ferror-handling",{"title":5,"description":461},{"loc":465},"docs\u002F09.advanced\u002F07.error-handling","MTysjeIO_SEZj5dG7HlsjaQgKy5EgUAl3gcpA4yCf2g",[471],{"title":472,"path":473,"stem":474,"children":475,"page":526},"Docs","\u002Fdocs","docs",[476,495,527,638,667,698,721,736,774,795],{"title":477,"path":478,"stem":479,"children":480,"description":6,"icon":494},"Getting Started","\u002Fdocs\u002Fgetting-started","docs\u002F01.getting-started\u002F01.index",[481,484,489],{"title":482,"path":478,"stem":479,"description":483},"Introduction","What DocLayer is, who it’s for, and how it can help",{"title":485,"path":486,"stem":487,"description":488},"Installation","\u002Fdocs\u002Fgetting-started\u002Finstallation","docs\u002F01.getting-started\u002F02.installation","How to install and run DocLayer",{"title":490,"path":491,"stem":492,"description":493},"FAQ","\u002Fdocs\u002Fgetting-started\u002Ffaq","docs\u002F01.getting-started\u002F03.faq","Frequently asked questions about DocLayer","rocket",{"title":496,"description":6,"icon":497,"path":498,"stem":499,"children":500,"page":526},"Guidelines","file-pen-line","\u002Fdocs\u002Fguidelines","docs\u002F02.guidelines",[501,506,511,516,521],{"title":502,"path":503,"stem":504,"description":505},"Internals","\u002Fdocs\u002Fguidelines\u002Finternals","docs\u002F02.guidelines\u002F02.internals","How DocLayer's structure, its architecture and internals fit together",{"title":507,"path":508,"stem":509,"description":510},"Configuration","\u002Fdocs\u002Fguidelines\u002Fconfiguration","docs\u002F02.guidelines\u002F03.configuration","Customize DocLayer via `app.config.ts` and its configuration",{"title":512,"path":513,"stem":514,"description":515},"Writing Content","\u002Fdocs\u002Fguidelines\u002Fwriting-content","docs\u002F02.guidelines\u002F04.writing-content","Write Markdown with Nuxt Content, DocLayer and prebuilt utilities",{"title":517,"path":518,"stem":519,"description":520},"Defining Metadata","\u002Fdocs\u002Fguidelines\u002Fdefining-metadata","docs\u002F02.guidelines\u002F05.defining-metadata","Set global and per-page SEO metadata for your DocLayer app",{"title":522,"path":523,"stem":524,"description":525},"Theming","\u002Fdocs\u002Fguidelines\u002Ftheming","docs\u002F02.guidelines\u002F06.theming","Customize DocLayer’s look with CSS variables and utility classes",false,{"title":528,"path":529,"stem":530,"children":531,"description":6,"label":482,"icon":637},"Components","\u002Fdocs\u002Fcomponents","docs\u002F03.components\u002F01.index",[532,535,541,546,551,556,561,566,571,576,581,586,591,596,602,607,612,617,622,627,632],{"title":533,"path":529,"stem":530,"description":534,"label":482},"Components Introduction","Overview of DocLayer’s built-in Markdown content components",{"title":536,"path":537,"stem":538,"description":539,"label":540},"Components Building & Styling","\u002Fdocs\u002Fcomponents\u002Fbuilding","docs\u002F03.components\u002F02.building","Create custom content components with DlWrapper","DlWrapper",{"title":542,"path":543,"stem":544,"description":545},"DlRenderer","\u002Fdocs\u002Fcomponents\u002Frenderer","docs\u002F03.components\u002F03.renderer","Render reusable, shareable Markdown fragments anywhere in your content",{"title":547,"path":548,"stem":549,"description":550},"DlLink","\u002Fdocs\u002Fcomponents\u002Flink","docs\u002F03.components\u002F04.link","Create internal links resolved from the global path registry",{"title":552,"path":553,"stem":554,"description":555},"DlCode","\u002Fdocs\u002Fcomponents\u002Fcode","docs\u002F03.components\u002F05.code","Display your code snippets with syntax highlighting, copy, tabs, transformations and more",{"title":557,"path":558,"stem":559,"description":560},"DlCodeInline","\u002Fdocs\u002Fcomponents\u002Finline-code","docs\u002F03.components\u002F05.inline-code","Display inline code that stays on one line",{"title":562,"path":563,"stem":564,"description":565},"DlCallout","\u002Fdocs\u002Fcomponents\u002Fcallout","docs\u002F03.components\u002F06.callout","Display notes, warnings, and alerts as type-based callout blocks",{"title":557,"path":567,"stem":568,"description":560,"badge":569},"\u002Fdocs\u002Fcomponents\u002Fcode-inline","docs\u002F03.components\u002F06.code-inline",{"label":570,"glow":464},"new",{"title":572,"path":573,"stem":574,"description":575},"DlBadge","\u002Fdocs\u002Fcomponents\u002Fbadge","docs\u002F03.components\u002F07.badge","Show compact type-based status labels",{"title":577,"path":578,"stem":579,"description":580},"DlImage","\u002Fdocs\u002Fcomponents\u002Fimage","docs\u002F03.components\u002F08.image","Present optimized, responsive images with optional caption and inline styling",{"title":582,"path":583,"stem":584,"description":585},"DlStepper","\u002Fdocs\u002Fcomponents\u002Fstepper","docs\u002F03.components\u002F09.stepper","List vertical step sequences using named slots",{"title":587,"path":588,"stem":589,"description":590},"DlTooltip","\u002Fdocs\u002Fcomponents\u002Ftooltip","docs\u002F03.components\u002F10.tooltip","Annotate with contextual configurable tooltips",{"title":592,"path":593,"stem":594,"description":595},"DlPrompter","\u002Fdocs\u002Fcomponents\u002Fprompter","docs\u002F03.components\u002F11.prompter","Prompt the search index and AI Assistant with hidden, removable content inserts",{"title":597,"path":598,"stem":599,"description":600,"badge":601},"DlFormat","\u002Fdocs\u002Fcomponents\u002Fformat","docs\u002F03.components\u002F12.format","Format Markdown content into a structured HTML output",{"label":570,"glow":464},{"title":603,"path":604,"stem":605,"description":606},"DlSection","\u002Fdocs\u002Fcomponents\u002Fsection","docs\u002F03.components\u002F13.section","Wrap and demarcate content sections",{"title":608,"path":609,"stem":610,"description":611},"DlGrid","\u002Fdocs\u002Fcomponents\u002Fgrid","docs\u002F03.components\u002F14.grid","Lay out named content items in a responsive grid",{"title":613,"path":614,"stem":615,"description":616},"DlHero","\u002Fdocs\u002Fcomponents\u002Fhero","docs\u002F03.components\u002F20.hero","Present a prominent page hero with title, lead and CTA",{"title":618,"path":619,"stem":620,"description":621},"DlHeading","\u002Fdocs\u002Fcomponents\u002Fheading","docs\u002F03.components\u002F21.heading","Divide content with section headings",{"title":623,"path":624,"stem":625,"description":626},"DlFeaturesGrid","\u002Fdocs\u002Fcomponents\u002Ffeatures-grid","docs\u002F03.components\u002F22.features-grid","Render a responsive features grid with animated and formatted tiles",{"title":628,"path":629,"stem":630,"description":631},"DlNewsletter","\u002Fdocs\u002Fcomponents\u002Fnewsletter","docs\u002F03.components\u002F23.newsletter","Collect newsletter subscriptions with a styled form",{"title":633,"path":634,"stem":635,"description":636},"DlTypeman","\u002Fdocs\u002Fcomponents\u002Ftypeman","docs\u002F03.components\u002F24.typeman","Animate rotating words with a blinking cursor effect","brick-wall",{"title":639,"path":640,"stem":641,"children":642,"description":6,"label":482,"icon":666},"Utilities","\u002Fdocs\u002Futils","docs\u002F04.utils\u002F01.index",[643,646,650,655,660],{"title":644,"path":640,"stem":641,"description":645,"label":482},"Utilities Introduction","Helpers, composables, macros, and types for extending DocLayer beyond Markdown",{"title":639,"path":647,"stem":648,"description":649},"\u002Fdocs\u002Futils\u002Futilities","docs\u002F04.utils\u002F02.utilities","Auto-imported helper functions for common tasks across DocLayer",{"title":651,"path":652,"stem":653,"description":654},"Composables","\u002Fdocs\u002Futils\u002Fcomposables","docs\u002F04.utils\u002F03.composables","Vue composables for collections, UI resolution, navigation, and content",{"title":656,"path":657,"stem":658,"description":659},"Macros","\u002Fdocs\u002Futils\u002Fmacros","docs\u002F04.utils\u002F04.macros","Compile-time macros for typed app config, adapters, and component UI",{"title":661,"path":662,"stem":663,"description":664,"label":665},"Utility Types","\u002Fdocs\u002Futils\u002Ftypes","docs\u002F04.utils\u002F05.types","TypeScript utilities for safer DocLayer development","Types","tool-case",{"title":668,"path":669,"stem":670,"children":671,"description":6,"label":675,"icon":697},"Adapters","\u002Fdocs\u002Fadapters","docs\u002F05.adapters\u002F01.index",[672,676,681,687,692],{"title":673,"path":669,"stem":670,"description":674,"label":675},"Building Adapters","Build type-safe adapters to plug external services into DocLayer","Building",{"title":677,"path":678,"stem":679,"description":680},"Google","\u002Fdocs\u002Fadapters\u002Fgoogle","docs\u002F05.adapters\u002F10.google","Connect DocLayer to Google products through built-in adapters",{"title":682,"path":683,"stem":684,"description":685,"label":682,"badge":686},"PostHog","\u002Fdocs\u002Fadapters\u002Fposthog","docs\u002F05.adapters\u002F11.posthog","Record product analytics with the PostHog analytics adapter",{"label":570,"glow":464},{"title":688,"path":689,"stem":690,"description":691},"Resend","\u002Fdocs\u002Fadapters\u002Fresend","docs\u002F05.adapters\u002F20.resend","Send newsletter emails with the Resend newsletter adapter",{"title":693,"path":694,"stem":695,"description":696},"Substack","\u002Fdocs\u002Fadapters\u002Fsubstack","docs\u002F05.adapters\u002F21.substack","Subscribe users to Substack via DocLayer’s adapter","circle-fading-plus",{"title":699,"path":700,"stem":701,"children":702,"description":6,"label":482,"icon":720},"Search ✨","\u002Fdocs\u002Fsearch","docs\u002F06.search\u002F01.index",[703,706,711,715],{"title":704,"path":700,"stem":701,"description":705,"label":482},"Search Module Introduction","Brief intro into built-in DocLayer’s Search Module",{"title":707,"path":708,"stem":709,"description":710},"Installation & Usage","\u002Fdocs\u002Fsearch\u002Fusage","docs\u002F06.search\u002F02.usage","Wire DocLayer’s Search Module into your app",{"title":507,"path":712,"stem":713,"description":714},"\u002Fdocs\u002Fsearch\u002Fconfiguration","docs\u002F06.search\u002F03.configuration","Configure static search, indexing, and the AI assistant in DocLayer's Search Module",{"title":716,"path":717,"stem":718,"description":719},"API Reference","\u002Fdocs\u002Fsearch\u002Freference","docs\u002F06.search\u002F04.reference","API reference for DocLayer’s Search Module","scan-search",{"title":722,"path":723,"stem":724,"children":725,"description":6,"icon":735},"Deployment","\u002Fdocs\u002Fdeployment","docs\u002F07.deployment\u002F01.index",[726,729],{"title":727,"path":723,"stem":724,"description":728},"Building & Preparations","Build a static DocLayer app and prepare it for hosting",{"title":730,"path":731,"stem":732,"description":733,"label":734},"Vercel Deployment","\u002Fdocs\u002Fdeployment\u002Fvercel","docs\u002F07.deployment\u002F02.vercel","Deploy DocLayer to Vercel via UI, CLI, or CI","Vercel","server-crash",{"title":737,"description":6,"icon":738,"path":739,"stem":740,"children":741,"page":526},"Advanced","file-terminal","\u002Fdocs\u002Fadvanced","docs\u002F09.advanced",[742,748,753,758,763,768,769],{"title":743,"path":744,"stem":745,"description":746,"label":747},"DocLayer Monorepo","\u002Fdocs\u002Fadvanced\u002Fmonorepo","docs\u002F09.advanced\u002F02.monorepo","pnpm workspaces, Turborepo, and workflows for the DocLayer monorepo","Monorepo",{"title":749,"path":750,"stem":751,"description":752},"Globals","\u002Fdocs\u002Fadvanced\u002Fglobals","docs\u002F09.advanced\u002F03.globals","DocLayer’s global instances for easy and quick access",{"title":754,"path":755,"stem":756,"description":757},"CLI","\u002Fdocs\u002Fadvanced\u002Fcli","docs\u002F09.advanced\u002F04.cli","Use Command Line Interface to extensively menage your DocLayer project",{"title":759,"path":760,"stem":761,"description":762},"Security","\u002Fdocs\u002Fadvanced\u002Fsecurity","docs\u002F09.advanced\u002F05.security","Security defaults DocLayer ships with Nuxt Security",{"title":764,"path":765,"stem":766,"description":767},"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":5,"path":465,"stem":468,"description":461},{"title":770,"path":771,"stem":772,"description":773},"Troubleshooting","\u002Fdocs\u002Fadvanced\u002Ftroubleshooting","docs\u002F09.advanced\u002F08.troubleshooting","Known DocLayer issues and quick fixes",{"title":775,"description":6,"icon":776,"path":777,"stem":778,"children":779,"page":526},"Project","shield-ellipsis","\u002Fdocs\u002Fproject","docs\u002F10.project",[780,785,790],{"title":781,"path":782,"stem":783,"description":784},"Contribution","\u002Fdocs\u002Fproject\u002Fcontribution","docs\u002F10.project\u002F01.contribution","How to report issues and when contributions are welcome",{"title":786,"path":787,"stem":788,"description":789},"Principles","\u002Fdocs\u002Fproject\u002Fethos","docs\u002F10.project\u002F02.ethos","Who we are, what we care about, and how we treat each other",{"title":791,"path":792,"stem":793,"description":794},"Support","\u002Fdocs\u002Fproject\u002Fsupport","docs\u002F10.project\u002F03.support","Join the Early Supporter Program and help fund DocLayer’s development",{"title":716,"description":6,"icon":796,"path":797,"stem":798,"children":799,"page":526},"file-type","\u002Fdocs\u002Freference","docs\u002F99.reference",[800,805,810],{"title":801,"path":802,"stem":803,"description":804},"App Config","\u002Fdocs\u002Freference\u002Fapp-config","docs\u002F99.reference\u002F01.app-config","API Reference for DocLayer’s AppConfig",{"title":806,"path":807,"stem":808,"description":809},"Module Options","\u002Fdocs\u002Freference\u002Fmodule-options","docs\u002F99.reference\u002F01.module-options","API Reference for DocLayer’s ModuleOptions",{"title":811,"path":812,"stem":813,"description":814},"Content Schema","\u002Fdocs\u002Freference\u002Fcontent-schema","docs\u002F99.reference\u002F02.content-schema","API Reference for DocLayer’s Content Schema",[816,842,863,884,913,929,948,975,998,1047,1068,1080,1097,1114,1126,1187,1205,1231,1256,1287,1331,1358],{"id":817,"data":6,"extension":462,"meta":818,"stem":840,"__hash__":841},"shared\u002Fcode-type-header-logo-path.md",{"body":819},{"type":8,"value":820,"toc":838},[821],[822,823,824,833],"dl-code",{},[825,826,831],"pre",{"className":827,"code":829,"language":830,"meta":61},[828],"language-ts","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","ts",[132,832,829],{"__ignoreMap":61},[59,834,835],{"v-slot:ui":61},[11,836,837],{},"{\"actions\": \"hidden\", \"base\": \"mt-0!\"}",{"title":61,"searchDepth":457,"depth":457,"links":839},[],"code-type-header-logo-path","551Sg_POiUffLU346shstXNFdKuMuK4ToyOLqIJp1Ws",{"id":843,"data":6,"extension":462,"meta":844,"stem":861,"__hash__":862},"shared\u002Fcode-type-module-options-root-prep.md",{"body":845},{"type":8,"value":846,"toc":859},[847],[822,848,849,855],{},[825,850,853],{"className":851,"code":852,"language":830,"meta":61},[828],"type ModuleOptions = {\n  rootPrep:\n    | {\n        components: boolean;\n        configs: boolean;\n        public: boolean;\n      }\n    | boolean;\n};\n\"cref:bqm9nh\"\n",[132,854,852],{"__ignoreMap":61},[59,856,857],{"v-slot:ui":61},[11,858,837],{},{"title":61,"searchDepth":457,"depth":457,"links":860},[],"code-type-module-options-root-prep","CDd6YiejS7_3Pl2ETS054y-cran1P92f4jEUZTnpnOI",{"id":864,"data":6,"extension":462,"meta":865,"stem":882,"__hash__":883},"shared\u002Fcode-type-search-debug-options.md",{"body":866},{"type":8,"value":867,"toc":880},[868],[822,869,870,876],{},[825,871,874],{"className":872,"code":873,"language":830,"meta":61},[828],"type DebugOptions =\n  | {\n      mint: boolean;\n      parser: boolean;\n      assistant: boolean;\n      compression: boolean;\n    }\n  | boolean;\n\"cref:4kwyr2\"\n",[132,875,873],{"__ignoreMap":61},[59,877,878],{"v-slot:ui":61},[11,879,837],{},{"title":61,"searchDepth":457,"depth":457,"links":881},[],"code-type-search-debug-options","9sgMqYFmn561p6df7FEuf-1-dyKAqrO_HYGdARynLlA",{"id":885,"data":6,"extension":462,"meta":886,"stem":911,"__hash__":912},"shared\u002Finline-read-more-about.md",{"body":887},{"type":8,"value":888,"toc":909},[889],[11,890,893,894,105,898],{"className":891},[892],"mt-0!","More about ",[895,896],"dl-format",{":content":897},"about",[83,899,901,905,906],{"label":900},"you can read here",[902,903],"binding",{"value":904},"$doc.link","|",[902,907],{"value":908},"$doc.hash",{"title":61,"searchDepth":457,"depth":457,"links":910},[],"inline-read-more-about","O5VeK2Uv84witk_mAupYbHJxwXAmNoSKDgtmvyvLQwU",{"id":914,"data":6,"extension":462,"meta":915,"stem":927,"__hash__":928},"shared\u002Fsection-exported-types.md",{"body":916},{"type":8,"value":917,"toc":925},[918],[11,919,920,921,924],{},"You can refer to the exported types, which are available for use throughout your application. All of them can be accessed from the ",[132,922,923],{},"@vuehouse\u002Fdl\u002Ftypes"," entrypoint.",{"title":61,"searchDepth":457,"depth":457,"links":926},[],"section-exported-types","SyCNSGhT7VGICRHuO3fNO2QfyQUf7s10wVMGQyTfBFk",{"id":930,"data":6,"extension":462,"meta":931,"stem":946,"__hash__":947},"shared\u002Fsection-highlighter-marker-disclaimer.md",{"body":932},{"type":8,"value":933,"toc":944},[934],[935,936,937],"blockquote",{},[11,938,939,940,943],{},"The ",[132,941,942],{},"!"," character has been escaped manually to demonstrate the code usage, remove the backslash when using it.",{"title":61,"searchDepth":457,"depth":457,"links":945},[],"section-highlighter-marker-disclaimer","DvlAILaQ9PE_c-B8f_1AYbrRaXRnOq9Ldr_Uc8qwkqE",{"id":949,"data":6,"extension":462,"meta":950,"stem":973,"__hash__":974},"shared\u002Fsection-newly-added.md",{"body":951},{"type":8,"value":952,"toc":971},[953],[954,955,956],"dl-callout",{"title":174},[11,957,958,962,963,970],{},[959,960,570],"dl-badge",{":iui":961,"glow":73,"size":462},"{ \"base\": \"mr-1 align-text-top\" }"," Available from the ",[132,964,967],{"className":965},[966],"whitespace-nowrap",[902,968],{"value":969},"$doc.version"," release.",{"title":61,"searchDepth":457,"depth":457,"links":972},[],"section-newly-added","ALhVdWjkGXgjt6I9nIikz7fUkwkGy62V3bicM903qW8",{"id":976,"data":6,"extension":462,"meta":977,"stem":996,"__hash__":997},"shared\u002Fsection-optional-tool.md",{"body":978},{"type":8,"value":979,"toc":994},[980],[954,981,983],{"title":174,"type":982},"note",[11,984,985,986,989,990,75],{},"This tool is not a part of the DocLayer module. Its usage is opinionated and ",[15,987,988],{},"optionally included"," in the ",[83,991,993],{"label":992},"Boilerplate application","$dl-boilerplate",{"title":61,"searchDepth":457,"depth":457,"links":995},[],"section-optional-tool","OWRAq0rKvbIllQHS-mJRS8L2qkNiiQ8RMiFBIBiZmnY",{"id":999,"data":6,"extension":462,"meta":1000,"stem":1045,"__hash__":1046},"shared\u002Fsection-props-extending.md",{"body":1001},{"type":8,"value":1002,"toc":1043},[1003],[954,1004,1006,1018],{"title":1005,"type":982},"Why to use built-in property extending?",[11,1007,1008,1009,1017],{},"You might ask ",[15,1010,1011,1012],{},"why this approach is better than simply ",[83,1013,1016],{"hash":1014,"label":1015},"defining-dynamic-properties","passing regular dynamic properties","$docs-guidelines-writing-content"," to your content components?",[1019,1020,1021,1030,1037,1040],"ul",{},[1022,1023,1024,1025,75],"li",{},"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 ",[83,1026,1029],{"hash":1027,"label":1028},"dlindocdata","`dl.inDocData` object","$docs-guidelines-configuration",[1022,1031,1032,1033,1036],{},"Second, dynamic property binding with the ",[132,1034,1035],{},"$doc"," handler isn’t possible when using regular dynamic props, since those values are resolved as static data, which can make data binding inconsistent.",[1022,1038,1039],{},"Third, you can mix static and dynamic content for the same property.",[1022,1041,1042],{},"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":61,"searchDepth":457,"depth":457,"links":1044},[],"section-props-extending","_KvOHw4F9cNT3FPfJPu3rKhnly5pt4adBb6EQXsJM8s",{"id":1048,"data":6,"extension":462,"meta":1049,"stem":1066,"__hash__":1067},"shared\u002Fsection-props-intro.md",{"body":1050},{"type":8,"value":1051,"toc":1064},[1052],[11,1053,1054,1055,1060,1061,75],{},"Here are the properties you can use with the ",[132,1056,1057],{},[902,1058],{"value":1059},"$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 ",[83,1062,1016],{"hash":1063,"label":900},"defining-properties",{"title":61,"searchDepth":457,"depth":457,"links":1065},[],"section-props-intro","SKoDIW1kVb4amM1MgbWMvvgRr9IWPabKr58_xl1Q-GM",{"id":1069,"data":6,"extension":462,"meta":1070,"stem":1078,"__hash__":1079},"shared\u002Fsection-props-iui-description.md",{"body":1071},{"type":8,"value":1072,"toc":1076},[1073],[11,1074,1075],{},"Special property dedicated to inline components, can be used to add TW classes for certain component markup elements.",{"title":61,"searchDepth":457,"depth":457,"links":1077},[],"section-props-iui-description","Se96jxhroK3WLRE4HXYqDeoYv1lpUd8qv4vZ8us54sI",{"id":1081,"data":6,"extension":462,"meta":1082,"stem":1095,"__hash__":1096},"shared\u002Fsection-props-ui-default.md",{"body":1083},{"type":8,"value":1084,"toc":1093},[1085],[11,1086,1088],{"style":1087},"white-space: nowrap;",[1089,1090,1092],"a",{"href":1091},"#styling","see below",{"title":61,"searchDepth":457,"depth":457,"links":1094},[],"section-props-ui-default","5mkrOeoYp1BToIddCkwyzzTWeOQvj1gDVRYHJJl7kow",{"id":1098,"data":6,"extension":462,"meta":1099,"stem":1112,"__hash__":1113},"shared\u002Fsection-props-ui-description.md",{"body":1100},{"type":8,"value":1101,"toc":1110},[1102],[11,1103,1105,1106,1109],{"style":1104},"min-width: 16rem;","The component ",[132,1107,1108],{},"ui"," object. Defines the Tailwind classes for the component's HTML markup elements.",{"title":61,"searchDepth":457,"depth":457,"links":1111},[],"section-props-ui-description","xXl6RjZ54x2VpJv6H1mJ7OSCTSOfMTtRD1_VyiC0tjI",{"id":1115,"data":6,"extension":462,"meta":1116,"stem":1124,"__hash__":1125},"shared\u002Fsection-props-ui-type.md",{"body":1117},{"type":8,"value":1118,"toc":1122},[1119],[132,1120,1121],{"style":1087},"() => UI",{"title":61,"searchDepth":457,"depth":457,"links":1123},[],"section-props-ui-type","AuxEvFbnpnbFrEjJrYiNJVZsYmI8RkEnH9RjkkuoaSQ",{"id":1127,"data":6,"extension":462,"meta":1128,"stem":1185,"__hash__":1186},"shared\u002Fsection-remote-model-callout.md",{"body":1129},{"type":8,"value":1130,"toc":1183},[1131],[954,1132,1134,1140,1150,1153,1162,1172],{"title":1133},"DocLayer's Remote Model",[11,1135,1136,1139],{},[15,1137,1138],{},"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,1141,1142,75],{},[15,1143,1144,1145,1149],{},"Our carefully fine-tuned model is available through the ",[83,1146,1148],{"label":1147},"🫠 Early Supporter Program","$docs-project-support"," - help us to build the best product possible securing the most advanced features for the best price",[11,1151,1152],{},"Here’s how you can configure it:",[822,1154,1156],{"tabs":1155},"nuxt.config.ts",[825,1157,1160],{"className":1158,"code":1159,"language":830,"meta":61},[828],"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",[132,1161,1159],{"__ignoreMap":61},[11,1163,1164,1165,1168,1169,75],{},"To try our API please ",[83,1166,1167],{},"$mailto-vue-house",". ",[15,1170,1171],{},"It's free",[11,1173,1174,1175,151,1178,75],{},"Remote ",[15,1176,1177],{},"API operates with a dedicated",[83,1179,1182],{"label":1180,"hash":1181},"DocLayer AI Kit","ai-kit","$docs-search-usage",{"title":61,"searchDepth":457,"depth":457,"links":1184},[],"section-remote-model-callout","C3AapTL9Uu5tqauRWl5GqZc8aOld3-yEvscN9Dwfp2M",{"id":1188,"data":6,"extension":462,"meta":1189,"stem":1203,"__hash__":1204},"shared\u002Fsection-slots-ui-description.md",{"body":1190},{"type":8,"value":1191,"toc":1201},[1192],[11,1193,1194,1195,1197,1198,75],{},"Dedicated slot for defining the component’s ",[132,1196,1108],{}," object. More about styling MDC components ",[83,1199,1200],{"label":900},"$docs-components-building",{"title":61,"searchDepth":457,"depth":457,"links":1202},[],"section-slots-ui-description","HFR6PT0KFzSBW9WnqIk5KdPqHjGTTl3za3mklYIIYUY",{"id":1206,"data":6,"extension":462,"meta":1207,"stem":1229,"__hash__":1230},"shared\u002Fsection-styling-css-classes-intro.md",{"body":1208},{"type":8,"value":1209,"toc":1227},[1210],[11,1211,1212,1213,1217,1218,1222,1223,1226],{},"Below are the CSS utility classes used by the ",[132,1214,1215],{},[902,1216],{"value":1059}," component. They make use of the ",[1089,1219,1221],{"href":1220},"#css-variables","CSS variables"," described above and ",[1089,1224,1225],{"href":1091},"define the default styling"," for the component's markup elements.",{"title":61,"searchDepth":457,"depth":457,"links":1228},[],"section-styling-css-classes-intro","VRtlxQ59m9iNVrWHp9r1OAy2lkklqQPtKbRIkwVCY6A",{"id":1232,"data":6,"extension":462,"meta":1233,"stem":1254,"__hash__":1255},"shared\u002Fsection-styling-css-variables-intro.md",{"body":1234},{"type":8,"value":1235,"toc":1252},[1236],[11,1237,1238,1239,1242,1243,1247,1248,75],{},"Here is a set of CSS variables you can ",[15,1240,1241],{},"use to customize the appearance"," of the ",[132,1244,1245],{},[902,1246],{"value":1059}," component globally. More about theming and styling with CSS variables, ",[83,1249,1251],{"hash":1250,"label":900},"css-variables","$docs-guidelines-theming",{"title":61,"searchDepth":457,"depth":457,"links":1253},[],"section-styling-css-variables-intro","Vk6yVXoMwLNtqisCZhk9m2F3-wHKjiujWtBBZbTJcD4",{"id":1257,"data":6,"extension":462,"meta":1258,"stem":1285,"__hash__":1286},"shared\u002Fsection-styling-intro.md",{"body":1259},{"type":8,"value":1260,"toc":1283},[1261,1274],[954,1262,1264],{"title":1263,"type":982},"Styling from Markdown",[11,1265,1266,1267,1270,1271,75],{},"Every DocLayer component ",[15,1268,1269],{},"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 ",[83,1272,1200],{"hash":1273,"label":900},"styling-inside-the-markdown-files",[11,1275,1276,1277],{},"Below you'll find the default set of Tailwind classes for the component's dedicated markup elements. ",[895,1278,1279],{},[902,1280],{"defaultValue":1281,"value":1282},"undefined","$doc.extend",{"title":61,"searchDepth":457,"depth":457,"links":1284},[],"section-styling-intro","8V_zEj7QXax6dzKp918ZNy97d9u4qk6TaE40wI5JWEs",{"id":1288,"data":6,"extension":462,"meta":1289,"stem":1329,"__hash__":1330},"shared\u002Fsection-utility-exports-disclaimer.md",{"body":1290},{"type":8,"value":1291,"toc":1327},[1292],[954,1293,1294,1301,1320],{"title":174,"type":982},[11,1295,1296,1297,1300],{},"This utility is ",[15,1298,1299],{},"exported from the module"," package.",[822,1302,1305,1311],{"dynamic":1303,"tabs":1304},"utilityName","file.ts",[825,1306,1309],{"className":1307,"code":1308,"language":830,"meta":61},[828],"import { :dl-dynamic: } from '@vuehouse\u002Fdl\u002Fexports';\n\"cref:zseli7\"\n",[132,1310,1308],{"__ignoreMap":61},[59,1312,1313],{"v-slot:props":61},[11,1314,1315,1316,1319],{},"{\"dynamic\": \"",[902,1317],{"value":1318},"$doc.utilityName","\" }",[11,1321,1322,1323,1326],{},"You can use it this way ",[15,1324,1325],{},"when the global context is not available"," and utility can't be loaded automatically by Nuxt.",{"title":61,"searchDepth":457,"depth":457,"links":1328},[],"section-utility-exports-disclaimer","FXCXHiiD49oOkbSwsKFpp4m0gsXkZdnUwCwWnVjwucI",{"id":1332,"data":6,"extension":462,"meta":1333,"stem":1356,"__hash__":1357},"shared\u002Ftooltip-app-config-path.md",{"body":1334},{"type":8,"value":1335,"toc":1354},[1336],[125,1337,1340],{"label":1338,"tooltip":1339},"`app.config.ts`","In-app file path: app\u002Fapp.config.ts",[59,1341,1342],{"v-slot:props":61},[11,1343,1344,1345,1349,1350,1353],{},"{\"tooltip\": \"In-app file path: ",[902,1346],{"defaultValue":1347,"value":1348},"app\u002Fapp.config.ts","$doc.tooltip","\", \"label\": \"",[902,1351],{"defaultValue":1338,"value":1352},"$doc.label","\"}",{"title":61,"searchDepth":457,"depth":457,"links":1355},[],"tooltip-app-config-path","WVDQKyALt7paYD6Tr7K10fmQ27d2XjzO_oxDKHCgSdc",{"id":1359,"data":6,"extension":462,"meta":1360,"stem":1369,"__hash__":1370},"shared\u002Ftooltip-rag.md",{"body":1361},{"type":8,"value":1362,"toc":1367},[1363],[125,1364],{"label":1365,"lock-width":73,"tooltip":1366},"**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":61,"searchDepth":457,"depth":457,"links":1368},[],"tooltip-rag","fDKuZzfT8d6JNox0uI1P0_ktG8kYWiz7WGsWWo7gTGs",[1372,1373,1374,1375],{"title":759,"path":760,"stem":761,"description":762,"children":-1},{"title":764,"path":765,"stem":766,"description":767,"children":-1},{"title":770,"path":771,"stem":772,"description":773,"children":-1},{"title":781,"path":782,"stem":783,"description":784,"children":-1},1795796072858]