[{"data":1,"prerenderedAt":1793},["ShallowReactive",2],{"\u002Fdocs\u002Futils\u002Fcomposables":3,"dl-navigation-docs":1443,"surroundings-\u002Fdocs\u002Futils\u002Fcomposables":1788},{"id":4,"title":5,"_llmSection":6,"_local":7,"_schemaOrg":6,"_seo":6,"body":10,"description":1434,"extension":1435,"ignore":6,"meta":1436,"navigation":1437,"path":1438,"seo":1439,"sitemap":1440,"stem":1441,"__hash__":1442},"docs\u002Fdocs\u002F04.utils\u002F03.composables.md","Composables",null,{"url":8},{"nuxt_runtime_config":9},"https:\u002F\u002Fnuxt.com\u002Fdocs\u002F4.x\u002Fapi\u002Fnuxt-config#runtimeconfig-1",{"type":11,"value":12,"toc":1418},"minimark",[13,28,53,60,63,134,225,559,627,728,785,836,1121,1186,1261,1299,1363],[14,15,16,17,22,23,27],"p",{},"In addition to the collection of ",[18,19,21],"dl-link",{"label":20},"utilities","$docs-utils-utilities",", ",[24,25,26],"strong",{},"DocLayer offers a set of composables"," that encapsulate reusable logic and state management across the application. These composables provide type-safe, reactive interfaces for common operations such as data fetching, UI resolution, navigation handling, and content manipulation.",[29,30,33],"dl-callout",{"title":31,"type":32},"Global Context","note",[14,34,35,36,39,40,43,44,48,49,52],{},"All of these ",[24,37,38],{},"composables are auto-imported, globally accessible"," and can be used with application-based or content-related components without needing to import them. Remember, ",[24,41,42],{},"outside of the components context"," (",[45,46,47],"code",{},"setup"," function), ",[24,50,51],{},"composables can't be used",", as they may contains Vue\u002FNuxt-specific APIs.",[14,54,55,56,59],{},"Bellow you'll find a ",[24,57,58],{},"comprehensive list of these utilities"," with a brief descriptions of their functionality. Where applicable, with examples that illustrate on how to use each effectively.",[61,62],"hr",{},[64,65,67,73,76,82,105,124,132],"dl-section",{"id":66},"useadapterdata",[68,69,70],"h2",{"id":66},[45,71,72],{},"useAdapterData",[14,74,75],{},"Collects and provides global configuration for all registered adapters.",[14,77,78,81],{},[24,79,80],{},"Example",":",[83,84,86,96],"dl-code",{"tabs":85},"Component.vue, signature.d.ts",[87,88,94],"pre",{"className":89,"code":91,"language":92,"meta":93},[90],"language-vue","\u003Cscript setup lang=\"ts\">\n\u002F\u002F Retrieve Newsletter adapter data\nconst { newsletter } = useAdapterData();\n\u002F\u002F Retrieve Newsletter adapter data within the server context\nconst { newsletter } = useAdapterData(event);\n\u002F\u002F ... or assign\u002Foverwrite Newsletter adapter data\nuseAdapterData({\n  newsletter: { key: 'value' },\n});\n\u003C\u002Fscript>\n\"cref:iaq8b0\"\n","vue","",[45,95,91],{"__ignoreMap":93},[87,97,103],{"className":98,"code":100,"filename":101,"language":102,"meta":93},[99],"language-ts","import type { GlobalInstance, Prettify } from '@vuehouse\u002Fdl\u002Ftypes';\nimport type { H3Event } from 'h3';\n\ntype AdapterData = Prettify\u003CGlobalInstance['__DL__']['adapterData']>;\n\ndeclare function setData(instance: GlobalInstance, data: AdapterData): () => void;\n\ndeclare function useAdapterData(): AdapterData;\ndeclare function useAdapterData(data: AdapterData): ReturnType\u003Ctypeof setData>;\ndeclare function useAdapterData(event: H3Event): AdapterData;\ndeclare function useAdapterData(adapterData?: AdapterData): AdapterData | ReturnType\u003Ctypeof setData>;\n","[esc]","ts",[45,104,100],{"__ignoreMap":93},[14,106,107,108,111,112,115,116,119,120,123],{},"When ",[24,109,110],{},"creating custom adapters",", you can define global configurations for them, such as public API keys or external API endpoints. This configuration ",[24,113,114],{},"is useful when invoking an adapter within components or creating dedicated server handlers",". With this composable, you can easily access these configuration values as ",[24,117,118],{},"they are shared between the client and server",". However, in some isolated contexts (such as serverless functions), ",[24,121,122],{},"you may need to pass the event object"," to the composable because the global instance might not be available or shared in that environment.",[14,125,126,127,131],{},"On how to build custom adapters and use its data ",[18,128,130],{"label":129},"you can read more here","$docs-adapters",".",[61,133],{},[64,135,137,142,145,149,170,173,201,223],{"id":136},"usecomponentui",[68,138,139],{"id":136},[45,140,141],{},"useComponentUi",[14,143,144],{},"Resolves component UI variants for custom styling configurations.",[14,146,147,81],{},[24,148,80],{},[83,150,152,158,164],{"tabs":151},"Component.vue, Component.vue, signature.d.ts",[87,153,156],{"className":154,"code":155,"language":92,"meta":93},[90],"\u003Cscript setup lang=\"ts\">\nconst { resolveUi } = useComponentUi();\n\u002F\u002F Resolve custom UI with defaults\nconst finalUi = await resolveUi(customUi, defaultUi);\n\u003C\u002Fscript>\n\"cref:0e0p55\"\n",[45,157,155],{"__ignoreMap":93},[87,159,162],{"className":160,"code":161,"language":92,"meta":93},[90],"\u003Cscript setup lang=\"ts\">\nconst { resolvePropsUi } = useComponentUi();\n\u003C\u002Fscript>\n\n\u003Ctemplate>\n  \u003CDlWrapper :ui=\"resolvePropsUi(props)\">\n    \u003C!-- component body -->\n  \u003C\u002FDlWrapper>\n\u003C\u002Ftemplate>\n\"cref:he6d19\"\n",[45,163,161],{"__ignoreMap":93},[87,165,168],{"className":166,"code":167,"filename":101,"language":102,"meta":93},[99],"type UiCallback = (classes?: string) => string;\ntype UiRecord\u003CKey extends string, Variant> = { [key in Key]-?: Variant };\ntype UiResolvedRecord\u003CVariant extends UiRecord\u003Cstring, string>> = {\n  [key in keyof Variant]: key extends 'base' ? Variant[key] : { base: Variant[key] };\n};\n\ndeclare function useComponentUi(): {\n  resolveUi: \u003CUI extends UiRecord\u003Cstring, string>, Defaults extends UiRecord\u003Cstring, string> = UI>(\n    ui: UI,\n    defaults: Defaults,\n  ) => Promise\u003CUiResolvedRecord\u003Ctypeof defaults>>;\n  resolvePropsUi: \u003CProps extends UiProps\u003Cany>>(props: Props) => ReturnType\u003CProps['ui']>;\n};\n",[45,169,167],{"__ignoreMap":93},[14,171,172],{},"Composable provides two key functions:",[174,175,176,187],"ul",{},[177,178,179,182,183,186],"li",{},[45,180,181],{},"resolveUi"," - Merges custom UI classes (Markdown-added) with component's default ones. It's used by the ",[45,184,185],{},"UiWrapper"," component to apply consistent theming and UI resolving.",[177,188,189,192,193,196,197,200],{},[45,190,191],{},"resolvePropsUi"," - Merges UI props: inline UI (",[45,194,195],{},"iui",") with default block UI (",[45,198,199],{},"ui","), enabling flexible components theming.",[29,202,204],{"title":203,"type":32},"false",[14,205,206,207,211,212,215,216,219,220,131],{},"If you're using ",[18,208,210],{"label":209},"`DlWrapper`","$docs-components-building"," for your components, ",[24,213,214],{},"UI resolving is integrated by default",", so you may not need to add it manually. To learn more about managing UI with ",[18,217,218],{},"$tailwind"," classes inside components, ",[18,221,210],{"label":222},"see the component building guide",[61,224],{},[64,226,228,233,237,240,243,246,249,255,259,273,284,297,302,404,431,460,465,474,479,485,493,503,511,518,530,557],{"id":227},"usecontentguard",[68,229,230],{"id":227},[45,231,232],{},"useContentGuard",[234,235,236],"dl-prompter",{},"universal and polymorphic error handling utility",[234,238,239],{},"utility handles content based validation errors",[234,241,242],{},"utility to handle errors across the application",[234,244,245],{},"how to handle errors in doclayer",[234,247,248],{},"how to display show errors in doclayer",[14,250,251,252,131],{},"Guards ",[24,253,254],{},"content-driven components and pages",[14,256,257,81],{},[24,258,80],{},[83,260,261,267],{"tabs":85},[87,262,265],{"className":263,"code":264,"language":92,"meta":93},[90],"\u003Cscript setup lang=\"ts\">\nconst props = defineProps\u003C{ type: string }>();\n\nuseContentGuard(!['info', 'note', 'warning'].includes(props.type), {\n  source: 'DlCallout',\n  message: 'Invalid callout type. Accepted values are: info, note, warning.',\n});\n\u003C\u002Fscript>\n\"cref:3s2y96\"\n",[45,266,264],{"__ignoreMap":93},[87,268,271],{"className":269,"code":270,"filename":101,"language":102,"meta":93},[99],"import type { Function } from '@vuehouse\u002Fdl\u002Ftypes';\n\ntype Config = {\n  source: string;\n  message: string;\n  statusCode?: number;\n  context?: 'client' | 'server';\n  severity?: 'error' | 'warn' | 'info' | 'debug';\n  fallbackOnCondition?: boolean;\n};\ntype FallbackCondition\u003CT> = T extends Function\u003Cinfer U> ? U : T;\n\ndeclare function useContentGuard\u003CFallbackReturn extends unknown = undefined>(\n  condition: boolean,\n  config: Config,\n  fallback?: Function\u003CFallbackReturn>,\n): typeof fallback extends undefined\n  ? typeof condition extends boolean\n    ? void\n    : boolean\n  : FallbackCondition\u003CFallbackReturn>;\n",[45,272,270],{"__ignoreMap":93},[14,274,275,276,279,280,283],{},"Utility can be very helpful when ",[24,277,278],{},"components or pages logic fails custom validation",". It replaces ad-hoc ",[45,281,282],{},"showError()"," calls with environment-aware behavior so authors catch mistakes early, builds fail before deploy, and production visitors are not exposed to validation noise. It can be also a great way to handle errors across the DocLayer-based application, when extending.",[14,285,286,293,294,296],{},[24,287,288,289,292],{},"Pass ",[45,290,291],{},"true"," as the condition when validation fails"," (invalid props, missing required data, etc.). When the condition is ",[45,295,203],{},", the guard will proceed and call the optional fallback function instead.",[14,298,299,81],{},[24,300,301],{},"Behavior by environment",[303,304,305,318],"table",{},[306,307,308],"thead",{},[309,310,311,315],"tr",{},[312,313,314],"th",{},"Environment",[312,316,317],{},"Respectively",[319,320,321,341,364],"tbody",{},[309,322,323,329],{},[324,325,326],"td",{},[24,327,328],{},"Development",[324,330,331],{},[14,332,334,335,340],{"style":333},"min-width: 25rem;","Throws via ",[18,336,339],{"label":337,"path":338},"`showError`","api\u002Futils\u002Fshow-error","$nuxt-docs"," - loud feedback for content authors.",[309,342,343,348],{},[324,344,345],{},[24,346,347],{},"Build \u002F Prerender",[324,349,350],{},[14,351,334,353,357,358,363],{"style":352},"word-break: break-word;",[18,354,339],{"label":355,"path":356},"`createError`","api\u002Futils\u002Fcreate-error"," - fails the deploy (",[18,359,362],{"label":360,"path":361},"`failOnError`","config#prerender","$nitro"," is enabled in DocLayer).",[309,365,366,371],{},[324,367,368],{},[24,369,370],{},"Production runtime",[324,372,373],{},[14,374,375,376,380,381,384,385,388,389,392,393,395,396,392,400,403],{},"Logs using ",[18,377,21],{"label":378,"hash":379},"`utilLogger`","utillogger"," (default severity: ",[45,382,383],{},"warn",") and ",[24,386,387],{},"does not throw"," - code continues to run. We recommend to use template guards (placeholders) to hide broken content. ",[390,391],"br",{}," ",[390,394],{}," Note: DocLayer's ",[18,397,399],{"label":398},"security setup","$docs-advanced-security",[24,401,402],{},"disables logs in production"," by default.",[14,405,406,407,410,411,414,415,418,419,422,423,426,427,430],{},"The default HTTP status code is ",[24,408,409],{},"422"," (Unprocessable Entity). Override it with ",[45,412,413],{},"statusCode"," when needed. To ",[24,416,417],{},"limit logging to the selected context"," (client or server) set ",[45,420,421],{},"context"," to ",[45,424,425],{},"client"," or ",[45,428,429],{},"server"," within the configuration object; leave it undefined to log in both contexts.",[29,432,434,446,453],{"title":433,"type":32},"Intended usage",[14,435,436,437,442,443,445],{},"Use ",[24,438,439,441],{},[45,440,232],{}," in components and pages"," that render Markdown content. Prefer it over raw ",[45,444,282],{}," for author-facing validation.",[14,447,448,449,452],{},"Utility was ",[24,450,451],{},"designed to catch content-related errors early during the writing stage"," and prevent them from reaching the production runtime. Using it close to the content minimizes unintended side effects.",[14,454,455,456,459],{},"Avoid using it inside low-level utilities or composables unless the failure is truly content-scoped. For fatal route-level failures (missing collection, auth), use page or middleware-level ",[45,457,458],{},"createError()"," instead.",[14,461,462,81],{},[24,463,464],{},"Example with custom status code and log severity",[83,466,468],{"tabs":467},"Component.vue",[87,469,472],{"className":470,"code":471,"language":102,"meta":93},[99],"useContentGuard(true, {\n  source: 'MyPage',\n  message: 'Something went wrong',\n  statusCode: 404,\n  severity: 'error',\n});\n\"cref:lbdzs2\"\n",[45,473,471],{"__ignoreMap":93},[14,475,476,81],{},[24,477,478],{},"Example with fallback function",[14,480,481,482,484],{},"By default fallback function runs when the condition resolves to ",[45,483,203],{}," (e.g. when internal component-based validation passed).",[83,486,487],{"tabs":467},[87,488,491],{"className":489,"code":490,"language":102,"meta":93},[99],"useContentGuard(\n  false,\n  {\n    source: 'MyComponent',\n    message: 'Something went wrong',\n  },\n  () => console.log('Run function if everything is fine'),\n);\n\"cref:f9xt0d\"\n",[45,492,490],{"__ignoreMap":93},[14,494,495,496,498,499,502],{},"You can also run the fallback function as a consequence of the condition and showing\u002Flogging error (e.g. when the condition resolves to ",[45,497,291],{},", but you want to run something before the error is thrown). To do so, pass ",[45,500,501],{},"fallbackOnCondition"," within the configuration object.",[83,504,505],{"tabs":467},[87,506,509],{"className":507,"code":508,"language":102,"meta":93},[99],"useContentGuard(\n  true,\n  {\n    source: 'MyComponent',\n    message: 'Something went wrong',\n    fallbackOnCondition: true,\n  },\n  () => console.log('Run function before something went wrong'),\n);\n\"cref:4u809x\"\n",[45,510,508],{"__ignoreMap":93},[14,512,513,514,517],{},"Additionally, as the utility on production runs in silent mode, ",[24,515,516],{},"this approach can be very useful for hiding broken content blocks",", preventing errors from appearing and avoiding potential application crashes. To achieve this, simply update a custom UI flag defined within the component.",[14,519,520,521,525,526,529],{},"Messages are formatted through ",[18,522,21],{"label":523,"hash":524},"`utilLogMessage`","utillogmessage"," with the ",[45,527,528],{},"doclayer"," tag, so logs stay consistent with the rest of the application.",[29,531,534],{"title":532,"type":533},"Build pipeline","warning",[14,535,536,537,540,541,544,545,548,549,552,553,556],{},"Invalid content on any ",[24,538,539],{},"prerendered route"," causes the build to fail. Ensure ",[45,542,543],{},"nuxt build"," is not wrapped with ",[45,546,547],{},"|| true"," (which's added to prevent Nitro from failing the build on hang) in CI if you rely on this gate. ",[45,550,551],{},"console.warn"," alone does ",[24,554,555],{},"not"," fail the build - only a thrown error during prerender does.",[61,558],{},[64,560,562,567,570,573,577,592,605,625],{"id":561},"usecontenttransformer",[68,563,564],{"id":561},[45,565,566],{},"useContentTransformer",[234,568,569],{},"utility to transform content while creating new pages, not globally",[14,571,572],{},"Transforms content using configured content transformer.",[14,574,575,81],{},[24,576,80],{},[83,578,580,586],{"tabs":579},"example.ts, signature.d.ts",[87,581,584],{"className":582,"code":583,"language":102,"meta":93},[99],"\u002F\u002F with simple object\nconst transformedContent = useContentTransformer(pageData.value);\n\u002F\u002F or with a custom transformer\nconst transformedContent = useContentTransformer(pageData.value, (code) => `\u002F* transformed *\u002F\\n${code}`);\n\"cref:wwu95d\"\n",[45,585,583],{"__ignoreMap":93},[87,587,590],{"className":588,"code":589,"filename":101,"language":102,"meta":93},[99],"import type { PageCollectionItemBase } from '@nuxt\u002Fcontent';\nimport type { DeepNonNullable, InitialAppConfig } from '@vuehouse\u002Fdl\u002Ftypes';\n\ntype Code = string | PageCollectionItemBase;\n\ndeclare function useContentTransformer\u003CT extends Code>(\n  code: T,\n  transformer?: InitialAppConfig['dl']['transformers']['code'],\n): T;\n",[45,591,589],{"__ignoreMap":93},[14,593,594,595,598,599,604],{},"Composable is used to ",[24,596,597],{},"transform the content data of dynamic pages before rendering",", starting from an AST string. It uses the ",[18,600,603],{"label":601,"hash":602},"`dl.transformers.content.post`","dltransformers","$docs-guidelines-configuration"," transformer. You can pass either a string or an object; objects are first stringified, transformed, and then parsed back into JSON if possible. If you provide a custom transformer, it will take priority over the built-in transformer.",[29,606,607],{"title":203,"type":32},[14,608,609,612,613,616,617,620,621,624],{},[24,610,611],{},"If you want to transform content globally",", use the ",[45,614,615],{},"dl.transformers.content"," within the ",[18,618,603],{"label":619,"hash":602},"`dl.transformers`"," object in your ",[45,622,623],{},"app.config.ts"," file.",[61,626],{},[64,628,630,635,638,642,656,681,726],{"id":629},"usecurrentinstance",[68,631,632],{"id":629},[45,633,634],{},"useCurrentInstance",[14,636,637],{},"Returns a safe Vue Component Instance for the current context.",[14,639,640,81],{},[24,641,80],{},[83,643,644,650],{"tabs":579},[87,645,648],{"className":646,"code":647,"language":102,"meta":93},[99],"const { $instance, utility: $useAppConfig } = useCurrentInstance(useAppConfig);\n\"cref:wttbxo\"\n",[45,649,647],{"__ignoreMap":93},[87,651,654],{"className":652,"code":653,"filename":101,"language":102,"meta":93},[99],"import type { Nullable, Prettify } from '@vuehouse\u002Fdl\u002Ftypes';\nimport type { ComponentInternalInstance } from 'vue';\n\ntype StrippedInstance = Prettify\u003CPick\u003CComponentInternalInstance, 'type' | 'slots' | 'props'>>;\n\ndeclare function useCurrentInstance\u003CUtility extends Function>(\n  utility?: Utility,\n): {\n  $instance: Nullable\u003C\n    StrippedInstance & {\n      parent: Nullable\u003CStrippedInstance>;\n    }\n  >;\n  utility?: Utility | null;\n};\n",[45,655,653],{"__ignoreMap":93},[14,657,658,659,662,663,666,667,670,671,426,674,677,678,680],{},"Composable helps you ",[24,660,661],{},"safely determine if the current component's instance"," is available in the current context - it will return a safe shape of it, or ",[45,664,665],{},"undefined"," if called outside of a component. It's also useful for ",[24,668,669],{},"securely accessing specific utilities"," (from ",[18,672,673],{},"$vue",[18,675,676],{},"$nuxt",") inside a ",[45,679,47],{}," function, or in situations where the application context might be uncertain, such as when using them within external utilities.",[29,682,684,702],{"title":683,"type":533},"Caveat",[14,685,686,687,690,691,694,695,698,699,131],{},"Composable relies on Vue's ",[45,688,689],{},"getCurrentInstance"," method. While ",[24,692,693],{},"this method is primarily meant for internal APIs and may expose private data",", it is still accessible in Vue. To ensure sensitive information is not leaked, ",[24,696,697],{},"DocLayer implementation returns a cleaned and parsed version of the instance",", exposing only the safe, component-related APIs, removing any private details. ",[24,700,701],{},"Instance is never exposed globally",[14,703,704,707,708,22,711,22,714,22,717,22,720,22,723,131],{},[24,705,706],{},"Composable will expose only the following properties"," from the Vue Component Instance: ",[45,709,710],{},"type",[45,712,713],{},"props",[45,715,716],{},"slots",[45,718,719],{},"parent.type",[45,721,722],{},"parent.props",[45,724,725],{},"parent.slots",[61,727],{},[64,729,731,736,739,743,758,772,783],{"id":730},"usedynamichead",[68,732,733],{"id":730},[45,734,735],{},"useDynamicHead",[14,737,738],{},"Generates dynamic head data.",[14,740,741,81],{},[24,742,80],{},[83,744,746,752],{"tabs":745},"ExamplePage.vue, signature.d.ts",[87,747,750],{"className":748,"code":749,"language":92,"meta":93},[90],"\u003Cscript setup lang=\"ts\">\nuseDynamicHead({\n  title: 'Getting Started', \u002F\u002F or dynamic: `${pageData.value.title}`\n  description: 'Learn how to get started with DocLayer',\n  seo: {\n    keywords: 'documentation, guide, getting started',\n    robots: 'index, follow',\n    \u002F\u002F or dynamic: ...pageData.value._seo\n  },\n});\n\u003C\u002Fscript>\n\"cref:oje5kl\"\n",[45,751,749],{"__ignoreMap":93},[87,753,756],{"className":754,"code":755,"filename":101,"language":102,"meta":93},[99],"import type { PageCollectionItemBase } from '@nuxt\u002Fcontent';\nimport type { MetaKeys } from '@vuehouse\u002Fdl\u002Ftypes';\n\ntype MetaExtend = Pick\u003CPageCollectionItemBase, 'title' | 'description'> & {\n  seo?: Record\u003CMetaKeys, string>;\n  schemaOrg?: ReturnType\u003Ctypeof defineWebPage>;\n};\n\ndeclare function useDynamicHead\u003CMeta extends MetaExtend>(pageMetadata: Meta): void;\n",[45,757,755],{"__ignoreMap":93},[14,759,760,761,22,764,767,768,771],{},"Composable automatically sets up ",[24,762,763],{},"SEO meta tags",[24,765,766],{},"Open Graph tags",", and ",[24,769,770],{},"Schema.org structured data"," for pages. It merges page-specific metadata with global app configuration, ensuring consistent SEO across all pages while allowing per-page customization.",[14,773,774,775,778,779,131],{},"Composable can be ",[24,776,777],{},"helpful when building custom pages or layouts"," that need dynamic head management. More about defining metadata for content pages, ",[18,780,782],{"label":781},"you can read here","$docs-guidelines-defining-metadata",[61,784],{},[64,786,788,793,796,800,814,834],{"id":787},"useindocdata",[68,789,790],{"id":787},[45,791,792],{},"useInDocData",[14,794,795],{},"Creates an injectable data object for content documents.",[14,797,798,81],{},[24,799,80],{},[83,801,802,808],{"tabs":85},[87,803,806],{"className":804,"code":805,"language":92,"meta":93},[90],"\u003Cscript setup lang=\"ts\">\n\u002F\u002F Use with global static data\nconst { data: inDocData } = useInDocData();\n\u002F\u002F ... or with additional local data\nconst { data: inDocData } = useInDocData({ customKey: 'customValue' });\n\u002F\u002F ... or with props data\nconst { data: inDocData } = useInDocData(props.data);\n\u003C\u002Fscript>\n\n\u003Ctemplate>\n  \u003CContentRenderer :data=\"inDocData\" \u002F>\n\u003C\u002Ftemplate>\n\"cref:bgjl8o\"\n",[45,807,805],{"__ignoreMap":93},[87,809,812],{"className":810,"code":811,"filename":101,"language":102,"meta":93},[99],"import type { AppConfig, Primitive } from '@vuehouse\u002Fdl\u002Ftypes';\nimport type { Ref } from 'vue';\n\ntype LocalData = Record\u003Cstring, Primitive | Record\u003Cstring, Primitive>>;\n\ndeclare function useInDocData(localData?: LocalData): {\n  data: Ref\u003CAppConfig['dl']['inDocData'] & AppConfig['dl']['_meta'] & LocalData>;\n};\n",[45,813,811],{"__ignoreMap":93},[14,815,816,817,820,821,824,825,828,829,833],{},"Composable is essential for ",[24,818,819],{},"passing reactive data into Markdown content files",". The data can be accessed within ",[45,822,823],{},".md"," files using the ",[45,826,827],{},"$doc['key']"," syntax, enabling dynamic content generation. By default, it provides any values defined in the ",[18,830,603],{"label":831,"hash":832},"`dl.inDocData`","dlindocdata"," global object. You can also provide local, component-specific data, which will be merged with the global one - if there are overlapping keys, the local data will take precedence.",[61,835],{},[64,837,839,844,852,881,891,899,903,917,937,942,1041,1046,1069,1078,1083,1119],{"id":838},"uselocaldb",[68,840,841],{"id":838},[45,842,843],{},"useLocalDB",[14,845,846,847,851],{},"Creates a typed local database instance backed by IndexedDB (",[18,848,850],{"label":849},"Dexie","$dexie",").",[29,853,855,862],{"title":854,"type":533},"Requires `dexie` to be installed",[14,856,857,858,861],{},"In most cases, this composable may not be needed. Because Dexie is a first-class dependency and it's loaded dynamically during the initialization process, it requires the ",[45,859,860],{},"dexie"," package to be installed. You can do it by running:",[83,863,865,873],{"tabs":864},"bash.sh, package.json",[87,866,871],{"className":867,"code":869,"language":870,"meta":93},[868],"language-bash","# add it to your project\npnpm add dexie\n\"cref:t0las3\"\n","bash",[45,872,869],{"__ignoreMap":93},[87,874,879],{"className":875,"code":877,"language":878,"meta":93},[876],"language-json","{\n  \u002F\u002F rest of the package.json file\n  \"dependencies\": {\n    \u002F\u002F[!code ++]\n    \"dexie\": \"latest\"\n  }\n}\n\"cref:n3l027\"\n","json",[45,880,877],{"__ignoreMap":93},[14,882,883,886,887,890],{},[24,884,885],{},"Dexie is a browser-only database"," and must be initialized only on the client side, outside of the server context. Otherwise, it will throw an error if loaded server-side. To ensure proper setup, you can use Nuxt's ",[45,888,889],{},"ssrContext"," to detect client-side execution:",[83,892,893],{"tabs":467},[87,894,897],{"className":895,"code":896,"language":92,"meta":93},[90],"\u003Cscript setup lang=\"ts\">\nimport { useNuxtApp, useLocalDB } from '#imports';\n\nimport type { DatabaseInitialSchema } from '@vuehouse\u002Fdl\u002Ftypes';\n\ntype User = { name: string; email: string };\ntype LocalDBSchema = {\n  \u002F** Users entity. *\u002F\n  users: DatabaseInitialSchema\u003CUser>;\n};\n\nlet localDB: Awaited\u003CReturnType\u003Ctypeof useLocalDB\u003CLocalDBSchema>>> | undefined;\nif (!useNuxtApp().ssrContext) {\n  localDB = await useLocalDB\u003C{ users: User }>('database-name', {\n    users: 'id, created_at, updated_at, name, email',\n  });\n}\n\u003C\u002Fscript>\n\"cref:zr17ey\"\n",[45,898,896],{"__ignoreMap":93},[14,900,901,81],{},[24,902,80],{},[83,904,905,911],{"tabs":85},[87,906,909],{"className":907,"code":908,"language":92,"meta":93},[90],"\u003Cscript setup lang=\"ts\">\n\u002F\u002F Add \u002F Update \u002F Delete\nawait db.addEntity('users', { id: '1', name: 'John', email: 'john@example.com', created_at: new Date().toISOString() });\nawait db.updateEntity('users', '1', {\n  name: 'John Doe',\n  email: 'johndoe@example.com',\n});\nawait db.upsertEntity('users', '1', {\n  name: 'John Smith',\n  email: 'johnsmith@example.com',\n});\nawait db.deleteEntity('users', '1');\n\n\u002F\u002F Query\nconst user = await db.getEntity('users', '1');\n\u002F\u002F Sort by created_at in descending order\nconst users = await db.getEntities('users', { order: 'created_at', reverse: true });\n\u002F\u002F Sort by name in ascending order\nconst users = await db.getEntities('users', { sort: 'name' });\n\u002F\u002F Limit to 20 entities\nconst users = await db.getEntities('users', { limit: 20 });\n\u003C\u002Fscript>\n\"cref:24gc9g\"\n",[45,910,908],{"__ignoreMap":93},[87,912,915],{"className":913,"code":914,"filename":101,"language":102,"meta":93},[99],"import type { Primitive } from '@vuehouse\u002Fdl\u002Ftypes';\nimport type { EntityTable, IDType } from 'dexie';\n\ntype IsoDate = ReturnType\u003Ctypeof Date.prototype.toISOString>;\ntype SchemaExtension = { [key: string]: Record\u003Cstring, unknown>[] | Exclude\u003CPrimitive, symbol> };\ntype DatabaseInitialSchema\u003CT extends SchemaExtension = SchemaExtension> = {\n  id: string;\n  created_at: IsoDate;\n  updated_at?: IsoDate;\n} & T;\ntype InitialSchema = Record\u003Cstring, DatabaseInitialSchema>;\ntype GetEntitiesConfig = Partial\u003C{\n  sort: string;\n  limit: number;\n  order: 'created_at' | 'updated_at';\n  reverse: boolean;\n}>;\ntype UpdateEntityData\u003CSchema extends InitialSchema, TableId extends keyof Schema> = Omit\u003C\n  Schema[TableId],\n  'id' | 'created_at'\n> &\n  Partial\u003CPick\u003CDatabaseInitialSchema, 'updated_at'>>;\n\ndeclare async function useLocalDB\u003CSchema extends InitialSchema>(\n  name: string,\n  schema: Record\u003Cstring, `id, created_at, updated_at, ${string}`>,\n): Promise\u003C{\n  getDatabase: (tableId: keyof Schema) => Promise\u003CEntityTable\u003CSchema[keyof Schema], keyof Schema[keyof Schema]>>;\n  getEntity: (tableId: keyof Schema, entityId: IDType\u003CSchema[keyof Schema], any>) => Promise\u003CSchema[keyof Schema]>;\n  getEntities: (tableId: keyof Schema, config?: GetEntitiesConfig) => Promise\u003CArray\u003CSchema[keyof Schema]>>;\n  updateEntity: (tableId: keyof Schema, entityId: IDType\u003CSchema[keyof Schema], any>, data: UpdateEntityData\u003CSchema, typeof tableId>) => Promise\u003Cunknown>;\n  upsertEntity: (\n    tableId: keyof Schema,\n    entityId: IDType\u003CSchema[keyof Schema], any>,\n    data: UpdateEntityData\u003CSchema, typeof tableId>,\n  ) => Promise\u003Cunknown>;\n  addEntity: (tableId: keyof Schema, entity: Schema[keyof Schema]) => Promise\u003Cunknown>;\n  deleteEntity: (tableId: keyof Schema, entityId: IDType\u003CSchema[keyof Schema], any>) => Promise\u003Cunknown>;\n  rollVersion: (version?: number) => Promise\u003Cvoid>;\n}>;\n",[45,916,914],{"__ignoreMap":93},[14,918,919,920,923,924,392,927,22,930,767,933,936],{},"Composable initializes a Dexie database ",[24,921,922],{},"for storing application data locally",". Each table schema ",[24,925,926],{},"must include",[45,928,929],{},"id",[45,931,932],{},"created_at",[45,934,935],{},"updated_at"," - these fields are required by the CRUD and helper methods.",[14,938,939,81],{},[24,940,941],{},"CRUD methods",[303,943,944,954],{},[306,945,946],{},[309,947,948,951],{},[312,949,950],{},"method",[312,952,953],{},"description",[319,955,956,969,983,997,1011,1025],{},[309,957,958,963],{},[324,959,960],{},[45,961,962],{},"addEntity",[324,964,965],{},[14,966,968],{"style":967},"min-width: 28rem;","Creates a new entity in the table.",[309,970,971,976],{},[324,972,973],{},[45,974,975],{},"updateEntity",[324,977,978],{},[14,979,980,981,131],{},"Updates (puts) an entity by ",[45,982,929],{},[309,984,985,990],{},[324,986,987],{},[45,988,989],{},"upsertEntity",[324,991,992],{},[14,993,994,995,131],{},"Inserts or updates an entity by ",[45,996,929],{},[309,998,999,1004],{},[324,1000,1001],{},[45,1002,1003],{},"deleteEntity",[324,1005,1006],{},[14,1007,1008,1009,131],{},"Deletes an entity by ",[45,1010,929],{},[309,1012,1013,1018],{},[324,1014,1015],{},[45,1016,1017],{},"getEntity",[324,1019,1020],{},[14,1021,1022,1023,131],{},"Reads a single entity by ",[45,1024,929],{},[309,1026,1027,1032],{},[324,1028,1029],{},[45,1030,1031],{},"getEntities",[324,1033,1034],{},[14,1035,1036,1037,1040],{},"Reads up to ",[24,1038,1039],{},"10"," entities.",[14,1042,1043,81],{},[24,1044,1045],{},"Sorting & Ordering",[14,1047,1048,1049,1051,1052,1055,1056,1059,1060,426,1062,1064,1065,1068],{},"The ",[45,1050,1031],{}," method supports sorting and ordering of entities. The ",[45,1053,1054],{},"sort"," parameter is a string that represents the field to sort by. The ",[45,1057,1058],{},"order"," parameter is a string that represents the order to sort by; use ",[45,1061,932],{},[45,1063,935],{},". The ",[45,1066,1067],{},"reverse"," parameter is a boolean that represents the order to sort by.",[14,1070,1071,1072,1075,1076,131],{},"To limit the number of entities returned, you can use the ",[45,1073,1074],{},"limit"," parameter. It's a number that represents the number of entities to return; defaults to ",[24,1077,1039],{},[14,1079,1080,81],{},[24,1081,1082],{},"Helper methods",[303,1084,1085,1093],{},[306,1086,1087],{},[309,1088,1089,1091],{},[312,1090,950],{},[312,1092,953],{},[319,1094,1095,1107],{},[309,1096,1097,1102],{},[324,1098,1099],{},[45,1100,1101],{},"getDatabase",[324,1103,1104],{},[14,1105,1106],{"style":967},"Returns the Dexie database instance for the table.",[309,1108,1109,1114],{},[324,1110,1111],{},[45,1112,1113],{},"rollVersion",[324,1115,1116],{},[14,1117,1118],{},"Bumps the schema version.",[61,1120],{},[64,1122,1124,1129,1132,1136,1150,1165,1184],{"id":1123},"usenavigationdata",[68,1125,1126],{"id":1123},[45,1127,1128],{},"useNavigationData",[14,1130,1131],{},"Provides structured and flat content navigation data.",[14,1133,1134,81],{},[24,1135,80],{},[83,1137,1138,1144],{"tabs":85},[87,1139,1142],{"className":1140,"code":1141,"language":92,"meta":93},[90],"\u003Cscript setup lang=\"ts\">\nconst { getNavigationData, getFlatNavigationData } = useNavigationData('docs');\n\u002F\u002F Get tree structure\nconst { data: navigation } = await getNavigationData();\n\u002F\u002F Get flattened array\nconst { data: flatNavigation } = await getFlatNavigationData();\n\u003C\u002Fscript>\n\"cref:jsr9cp\"\n",[45,1143,1141],{"__ignoreMap":93},[87,1145,1148],{"className":1146,"code":1147,"filename":101,"language":102,"meta":93},[99],"import type { ContentNavigationItem } from '@nuxt\u002Fcontent';\nimport type { Nullable, CollectionName, QueryCollectionNavigation } from '@vuehouse\u002Fdl\u002Ftypes';\nimport type { Ref } from 'vue';\n\ntype NavigationBlockExtends = { icon?: string; title?: string };\ntype NavigationData = { data: Ref\u003CNullable\u003CNavigationBlock['pages']>> };\ninterface NavigationBlock extends AccordionItem {\n  id?: string;\n  pages: (ContentNavigationItem & NavigationBlockExtends)[];\n}\n\ndeclare function useNavigationData\u003CCollectionName extends keyof PageCollections>(\n  collection: CollectionName,\n): {\n  \u002F\u002F getNavigationData: typeof getNavigationData\n  getNavigationData: () => Promise\u003CAsyncData\u003CNavigationBlock['pages'], any>>;\n  \u002F\u002F getFlatNavigationData: typeof getFlatNavigationData\n  getFlatNavigationData: () => Promise\u003C{ data: Ref\u003CNavigationBlock['pages']> }>;\n};\n",[45,1149,1147],{"__ignoreMap":93},[14,1151,1152,1153,1156,1157,1160,1161,1164],{},"Composable handles ",[24,1154,1155],{},"content navigation hierarchies",". Use ",[45,1158,1159],{},"getNavigationData"," to retrieve the full tree structure, or ",[45,1162,1163],{},"getFlatNavigationData"," to get a flat array of all pages. The flattened version is useful for search functionality or simplified navigation UIs.",[29,1166,1168,1176],{"title":1167,"type":32},"Use with `utilCollectionName`",[14,1169,1170,1171,1175],{},"Consider using ",[18,1172,21],{"label":1173,"hash":1174},"`utilCollectionName`","utilcollectionname"," to determine the current collection context, allowing to fetch the appropriate navigation data based on the active route.",[83,1177,1178],{"tabs":467},[87,1179,1182],{"className":1180,"code":1181,"language":92,"meta":93},[90],"\u003Cscript setup lang=\"ts\">\nconst route = useRoute();\nconst collectionName = await utilCollectionName(route);\nconst { getNavigationData } = useNavigationData(collectionName);\n\u003C\u002Fscript>\n\"cref:dnuz7l\"\n",[45,1183,1181],{"__ignoreMap":93},[61,1185],{},[64,1187,1189,1194,1201,1205,1219,1231,1259],{"id":1188},"usepropsextender",[68,1190,1191],{"id":1188},[45,1192,1193],{},"usePropsExtender",[14,1195,1196,1197,1200],{},"Automatically extends component props with values provided via the ",[45,1198,1199],{},"#props"," slot in Markdown files.",[14,1202,1203,81],{},[24,1204,80],{},[83,1206,1207,1213],{"tabs":85},[87,1208,1211],{"className":1209,"code":1210,"language":92,"meta":93},[90],"\u003Cscript setup lang=\"ts\">\n\u002F\u002F Props are automatically extended with values from the #props slot\nusePropsExtender();\n\u003C\u002Fscript>\n\"cref:dfn3hw\"\n",[45,1212,1210],{"__ignoreMap":93},[87,1214,1217],{"className":1215,"code":1216,"filename":101,"language":102,"meta":93},[99],"declare function usePropsExtender(): Record\u003Cstring, any>;\n",[45,1218,1216],{"__ignoreMap":93},[14,1220,1152,1221,1224,1225,1227,1228,1230],{},[24,1222,1223],{},"dynamic props transfer to rendered components from Markdown files",". It reads the ",[45,1226,1199],{}," slot - defined inside the ",[45,1229,823],{}," file - and merges those values into the component's props, enabling flexible component configuration from content files.",[29,1232,1233],{"title":203,"type":32},[14,1234,1235,1236,392,1239,1242,1243,1246,1247,1254,1255,131],{},"By default, ",[24,1237,1238],{},"this composable is used by the",[18,1240,210],{"label":209,"hash":1241},"dlwrapper"," component, so you typically don't need to add it manually. However, when using with newly created components ",[24,1244,1245],{},"make sure the props data is properly passed to the rendered content components"," - for example, by using ",[1248,1249,1251],"a",{"href":1250},"#useindocdata",[45,1252,1253],{},"useInDocData(props.data)",". More about overwriting component props from Markdown, ",[18,1256,1258],{"label":781,"hash":1257},"with-dynamic-data","$docs-components-renderer",[61,1260],{},[64,1262,1264,1269,1272,1276,1290,1297],{"id":1263},"useslotsparser",[68,1265,1266],{"id":1263},[45,1267,1268],{},"useSlotsParser",[14,1270,1271],{},"Parses component slots and extracts their values as \u002F to strings.",[14,1273,1274,81],{},[24,1275,80],{},[83,1277,1278,1284],{"tabs":85},[87,1279,1282],{"className":1280,"code":1281,"language":102,"meta":93},[99],"const output = ref({ default: undefined });\nuseSlotsParser(slots, output);\n\u002F\u002F output.value.default contains parsed slot content\n\u002F\u002F if any other slots are defined, they will be available as well\n\n\u002F\u002F Get code from slot, defined in Markdown\nconst codeOutput = ref({ default: undefined });\nuseSlotsParser(slots, codeOutput, true);\n\u002F\u002F codeOutput.value.code contains extracted code blocks\n\"cref:jupwjr\"\n",[45,1283,1281],{"__ignoreMap":93},[87,1285,1288],{"className":1286,"code":1287,"filename":101,"language":102,"meta":93},[99],"import type { Nullable } from '@vuehouse\u002Fdl\u002Ftypes';\nimport type { Ref } from 'vue';\n\ntype CodeOutlet = { code: string; language: string };\ntype CodeOutletRecord\u003CKeys extends string, ExtractCode extends boolean = false> = Record\u003C\n  Keys,\n  Nullable\u003CExtractCode extends true ? CodeOutlet[] : string>\n>;\n\ndeclare function useSlotsParser\u003CKeys extends string>(\n  slots: ReturnType\u003Ctypeof useSlots>,\n  output: Ref\u003CCodeOutletRecord\u003CKeys, typeof extractCode>>,\n  extractCode?: boolean,\n): void;\n",[45,1289,1287],{"__ignoreMap":93},[14,1291,1292,1293,1296],{},"Composable ",[24,1294,1295],{},"gathers slot content into an object",", using slot names as keys and their stringified content values. It can also extract code blocks - such as those defined in Markdown with triple backticks - along with related metadata like the code language.",[61,1298],{},[64,1300,1302,1307,1319,1323,1337,1361],{"id":1301},"usepathmarker",[68,1303,1304],{"id":1301},[45,1305,1306],{},"usePathMarker",[14,1308,1309,1310,1313,1314,1318],{},"Resolves a ",[45,1311,1312],{},"$path-marker"," against the global ",[18,1315,603],{"label":1316,"hash":1317},"`dl.pathMap`","dlpathmap"," registry.",[14,1320,1321,81],{},[24,1322,80],{},[83,1324,1325,1331],{"tabs":85},[87,1326,1329],{"className":1327,"code":1328,"language":92,"meta":93},[90],"\u003Cscript setup lang=\"ts\">\nconst { resolvePath, resolvePathData } = usePathMarker();\n\nconst linkDataFromPathMarker = resolvePathData('$docs-getting-started', {\n  source: 'MyComponent',\n  label: 'Getting Started', \u002F\u002F or false for custom markers\n});\n\u002F\u002F Results in: { url: '\u002Fdocs\u002Fgetting-started', label: 'Getting Started' }\n\nconst linkDataFromLiteral = resolvePath('\u002Fdocs\u002Fcomponents' \u002F* or a $path-marker *\u002F, {\n  source: 'MyComponent',\n  label: 'Link to the Component', \u002F\u002F or false for custom markers\n  literal: true,\n});\n\u002F\u002F Results in: { url: '\u002Fdocs\u002Fcomponents', label: 'Link to the Component' }\n\u003C\u002Fscript>\n\"cref:a9nd0t\"\n",[45,1330,1328],{"__ignoreMap":93},[87,1332,1335],{"className":1333,"code":1334,"filename":101,"language":102,"meta":93},[99],"type PathMarkerOptions = {\n  source: string;\n  label?: string | false;\n  path?: string;\n  hash?: string | '$current' | '$unset';\n  local?: boolean | string;\n  literal?: boolean;\n};\n\ndeclare function usePathMarker(): {\n  resolvePath: (identifier: string, options: PathMarkerOptions) => ResolvedPathMarkerLink | undefined;\n  resolvePathData: (marker: string, options: PathMarkerOptions) => ResolvedPathMarker | undefined;\n};\n",[45,1336,1334],{"__ignoreMap":93},[14,1338,1339,1340,1156,1343,1346,1347,1351,1352,1355,1356,1360],{},"Composable useful when you need to ",[24,1341,1342],{},"resolve a path marker against the global path registry",[45,1344,1345],{},"resolvePath"," if you're providing either a path marker or a literal URL (unknown); we use it for links defined within the ",[18,1348,1350],{"label":1349},"`DlFeaturesGrid`","$docs-components-features-grid"," component. Use ",[45,1353,1354],{},"resolvePathData"," if you're providing a path map key; we use it for links defined within the ",[18,1357,1359],{"label":1358},"`DlLink`","$docs-components-link"," component.",[61,1362],{},[64,1364,1366,1371,1374,1378,1392],{"id":1365},"usepathresolver",[68,1367,1368],{"id":1365},[45,1369,1370],{},"usePathResolver",[14,1372,1373],{},"Resolves relative paths and\u002For external URLs.",[14,1375,1376,81],{},[24,1377,80],{},[83,1379,1380,1386],{"tabs":579},[87,1381,1384],{"className":1382,"code":1383,"language":102,"meta":93},[99],"usePathResolver('docs\u002Fgetting-started');\n\u002F\u002F results in: https:\u002F\u002Fyour.base\u002Fdocs\u002Fgetting-started\nusePathResolver('\u002Fdocs');\n\u002F\u002F results in: \u002Fdocs\nusePathResolver('https:\u002F\u002Fexample.com');\n\u002F\u002F results in: https:\u002F\u002Fexample.com\nusePathResolver('docs', 'section');\n\u002F\u002F results in: https:\u002F\u002Fyour.base\u002Fdocs\u002Fsection\nusePathResolver('docs', 'section', 'hash');\n\u002F\u002F results in: https:\u002F\u002Fyour.base\u002Fdocs\u002Fsection#hash\n\"cref:4rgzi8\"\n",[45,1385,1383],{"__ignoreMap":93},[87,1387,1390],{"className":1388,"code":1389,"filename":101,"language":102,"meta":93},[99],"declare function usePathResolver\u003CT extends string | undefined = string>(url: T, path?: string, hash?: string): T;\n",[45,1391,1389],{"__ignoreMap":93},[14,1393,1394,1395,1398,1399,1402,1403,1406,1407,1410,1411,131],{},"Composable is useful when you need to ",[24,1396,1397],{},"resolve proper linking from different places in the application",", whether it’s a local path or an external one. It leaves absolute paths (",[45,1400,1401],{},"\u002F...",") and full URLs (",[45,1404,1405],{},"https:\u002F\u002F...",") unchanged. Additionally, it ",[24,1408,1409],{},"supports an optional paths and hashes",". If path will be undefined or empty string, it will return just the ",[18,1412,1414],{"label":1413,"local":291},"`runtimeConfig.public.baseUrl`",[1415,1416],"binding",{"value":1417},"$doc._local.url.nuxt_runtime_config",{"title":93,"searchDepth":1419,"depth":1419,"links":1420},2,[1421,1422,1423,1424,1425,1426,1427,1428,1429,1430,1431,1432,1433],{"id":66,"depth":1419,"text":72},{"id":136,"depth":1419,"text":141},{"id":227,"depth":1419,"text":232},{"id":561,"depth":1419,"text":566},{"id":629,"depth":1419,"text":634},{"id":730,"depth":1419,"text":735},{"id":787,"depth":1419,"text":792},{"id":838,"depth":1419,"text":843},{"id":1123,"depth":1419,"text":1128},{"id":1188,"depth":1419,"text":1193},{"id":1263,"depth":1419,"text":1268},{"id":1301,"depth":1419,"text":1306},{"id":1365,"depth":1419,"text":1370},"Vue composables for collections, UI resolution, navigation, and content","md",{},true,"\u002Fdocs\u002Futils\u002Fcomposables",{"title":5,"description":1434},{"loc":1438},"docs\u002F04.utils\u002F03.composables","pvLdpYyurEqXnEGsEFPd8W_VKApdcFpmsVAmDYAdjo0",[1444],{"title":1445,"path":1446,"stem":1447,"children":1448,"page":1499},"Docs","\u002Fdocs","docs",[1449,1468,1500,1611,1636,1667,1690,1705,1747,1768],{"title":1450,"path":1451,"stem":1452,"children":1453,"description":6,"icon":1467},"Getting Started","\u002Fdocs\u002Fgetting-started","docs\u002F01.getting-started\u002F01.index",[1454,1457,1462],{"title":1455,"path":1451,"stem":1452,"description":1456},"Introduction","What DocLayer is, who it’s for, and how it can help",{"title":1458,"path":1459,"stem":1460,"description":1461},"Installation","\u002Fdocs\u002Fgetting-started\u002Finstallation","docs\u002F01.getting-started\u002F02.installation","How to install and run DocLayer",{"title":1463,"path":1464,"stem":1465,"description":1466},"FAQ","\u002Fdocs\u002Fgetting-started\u002Ffaq","docs\u002F01.getting-started\u002F03.faq","Frequently asked questions about DocLayer","rocket",{"title":1469,"description":6,"icon":1470,"path":1471,"stem":1472,"children":1473,"page":1499},"Guidelines","file-pen-line","\u002Fdocs\u002Fguidelines","docs\u002F02.guidelines",[1474,1479,1484,1489,1494],{"title":1475,"path":1476,"stem":1477,"description":1478},"Internals","\u002Fdocs\u002Fguidelines\u002Finternals","docs\u002F02.guidelines\u002F02.internals","How DocLayer's structure, its architecture and internals fit together",{"title":1480,"path":1481,"stem":1482,"description":1483},"Configuration","\u002Fdocs\u002Fguidelines\u002Fconfiguration","docs\u002F02.guidelines\u002F03.configuration","Customize DocLayer via `app.config.ts` and its configuration",{"title":1485,"path":1486,"stem":1487,"description":1488},"Writing Content","\u002Fdocs\u002Fguidelines\u002Fwriting-content","docs\u002F02.guidelines\u002F04.writing-content","Write Markdown with Nuxt Content, DocLayer and prebuilt utilities",{"title":1490,"path":1491,"stem":1492,"description":1493},"Defining Metadata","\u002Fdocs\u002Fguidelines\u002Fdefining-metadata","docs\u002F02.guidelines\u002F05.defining-metadata","Set global and per-page SEO metadata for your DocLayer app",{"title":1495,"path":1496,"stem":1497,"description":1498},"Theming","\u002Fdocs\u002Fguidelines\u002Ftheming","docs\u002F02.guidelines\u002F06.theming","Customize DocLayer’s look with CSS variables and utility classes",false,{"title":1501,"path":1502,"stem":1503,"children":1504,"description":6,"label":1455,"icon":1610},"Components","\u002Fdocs\u002Fcomponents","docs\u002F03.components\u002F01.index",[1505,1508,1514,1519,1524,1529,1534,1539,1544,1549,1554,1559,1564,1569,1575,1580,1585,1590,1595,1600,1605],{"title":1506,"path":1502,"stem":1503,"description":1507,"label":1455},"Components Introduction","Overview of DocLayer’s built-in Markdown content components",{"title":1509,"path":1510,"stem":1511,"description":1512,"label":1513},"Components Building & Styling","\u002Fdocs\u002Fcomponents\u002Fbuilding","docs\u002F03.components\u002F02.building","Create custom content components with DlWrapper","DlWrapper",{"title":1515,"path":1516,"stem":1517,"description":1518},"DlRenderer","\u002Fdocs\u002Fcomponents\u002Frenderer","docs\u002F03.components\u002F03.renderer","Render reusable, shareable Markdown fragments anywhere in your content",{"title":1520,"path":1521,"stem":1522,"description":1523},"DlLink","\u002Fdocs\u002Fcomponents\u002Flink","docs\u002F03.components\u002F04.link","Create internal links resolved from the global path registry",{"title":1525,"path":1526,"stem":1527,"description":1528},"DlCode","\u002Fdocs\u002Fcomponents\u002Fcode","docs\u002F03.components\u002F05.code","Display your code snippets with syntax highlighting, copy, tabs, transformations and more",{"title":1530,"path":1531,"stem":1532,"description":1533},"DlCodeInline","\u002Fdocs\u002Fcomponents\u002Finline-code","docs\u002F03.components\u002F05.inline-code","Display inline code that stays on one line",{"title":1535,"path":1536,"stem":1537,"description":1538},"DlCallout","\u002Fdocs\u002Fcomponents\u002Fcallout","docs\u002F03.components\u002F06.callout","Display notes, warnings, and alerts as type-based callout blocks",{"title":1530,"path":1540,"stem":1541,"description":1533,"badge":1542},"\u002Fdocs\u002Fcomponents\u002Fcode-inline","docs\u002F03.components\u002F06.code-inline",{"label":1543,"glow":1437},"new",{"title":1545,"path":1546,"stem":1547,"description":1548},"DlBadge","\u002Fdocs\u002Fcomponents\u002Fbadge","docs\u002F03.components\u002F07.badge","Show compact type-based status labels",{"title":1550,"path":1551,"stem":1552,"description":1553},"DlImage","\u002Fdocs\u002Fcomponents\u002Fimage","docs\u002F03.components\u002F08.image","Present optimized, responsive images with optional caption and inline styling",{"title":1555,"path":1556,"stem":1557,"description":1558},"DlStepper","\u002Fdocs\u002Fcomponents\u002Fstepper","docs\u002F03.components\u002F09.stepper","List vertical step sequences using named slots",{"title":1560,"path":1561,"stem":1562,"description":1563},"DlTooltip","\u002Fdocs\u002Fcomponents\u002Ftooltip","docs\u002F03.components\u002F10.tooltip","Annotate with contextual configurable tooltips",{"title":1565,"path":1566,"stem":1567,"description":1568},"DlPrompter","\u002Fdocs\u002Fcomponents\u002Fprompter","docs\u002F03.components\u002F11.prompter","Prompt the search index and AI Assistant with hidden, removable content inserts",{"title":1570,"path":1571,"stem":1572,"description":1573,"badge":1574},"DlFormat","\u002Fdocs\u002Fcomponents\u002Fformat","docs\u002F03.components\u002F12.format","Format Markdown content into a structured HTML output",{"label":1543,"glow":1437},{"title":1576,"path":1577,"stem":1578,"description":1579},"DlSection","\u002Fdocs\u002Fcomponents\u002Fsection","docs\u002F03.components\u002F13.section","Wrap and demarcate content sections",{"title":1581,"path":1582,"stem":1583,"description":1584},"DlGrid","\u002Fdocs\u002Fcomponents\u002Fgrid","docs\u002F03.components\u002F14.grid","Lay out named content items in a responsive grid",{"title":1586,"path":1587,"stem":1588,"description":1589},"DlHero","\u002Fdocs\u002Fcomponents\u002Fhero","docs\u002F03.components\u002F20.hero","Present a prominent page hero with title, lead and CTA",{"title":1591,"path":1592,"stem":1593,"description":1594},"DlHeading","\u002Fdocs\u002Fcomponents\u002Fheading","docs\u002F03.components\u002F21.heading","Divide content with section headings",{"title":1596,"path":1597,"stem":1598,"description":1599},"DlFeaturesGrid","\u002Fdocs\u002Fcomponents\u002Ffeatures-grid","docs\u002F03.components\u002F22.features-grid","Render a responsive features grid with animated and formatted tiles",{"title":1601,"path":1602,"stem":1603,"description":1604},"DlNewsletter","\u002Fdocs\u002Fcomponents\u002Fnewsletter","docs\u002F03.components\u002F23.newsletter","Collect newsletter subscriptions with a styled form",{"title":1606,"path":1607,"stem":1608,"description":1609},"DlTypeman","\u002Fdocs\u002Fcomponents\u002Ftypeman","docs\u002F03.components\u002F24.typeman","Animate rotating words with a blinking cursor effect","brick-wall",{"title":1612,"path":1613,"stem":1614,"children":1615,"description":6,"label":1455,"icon":1635},"Utilities","\u002Fdocs\u002Futils","docs\u002F04.utils\u002F01.index",[1616,1619,1623,1624,1629],{"title":1617,"path":1613,"stem":1614,"description":1618,"label":1455},"Utilities Introduction","Helpers, composables, macros, and types for extending DocLayer beyond Markdown",{"title":1612,"path":1620,"stem":1621,"description":1622},"\u002Fdocs\u002Futils\u002Futilities","docs\u002F04.utils\u002F02.utilities","Auto-imported helper functions for common tasks across DocLayer",{"title":5,"path":1438,"stem":1441,"description":1434},{"title":1625,"path":1626,"stem":1627,"description":1628},"Macros","\u002Fdocs\u002Futils\u002Fmacros","docs\u002F04.utils\u002F04.macros","Compile-time macros for typed app config, adapters, and component UI",{"title":1630,"path":1631,"stem":1632,"description":1633,"label":1634},"Utility Types","\u002Fdocs\u002Futils\u002Ftypes","docs\u002F04.utils\u002F05.types","TypeScript utilities for safer DocLayer development","Types","tool-case",{"title":1637,"path":1638,"stem":1639,"children":1640,"description":6,"label":1644,"icon":1666},"Adapters","\u002Fdocs\u002Fadapters","docs\u002F05.adapters\u002F01.index",[1641,1645,1650,1656,1661],{"title":1642,"path":1638,"stem":1639,"description":1643,"label":1644},"Building Adapters","Build type-safe adapters to plug external services into DocLayer","Building",{"title":1646,"path":1647,"stem":1648,"description":1649},"Google","\u002Fdocs\u002Fadapters\u002Fgoogle","docs\u002F05.adapters\u002F10.google","Connect DocLayer to Google products through built-in adapters",{"title":1651,"path":1652,"stem":1653,"description":1654,"label":1651,"badge":1655},"PostHog","\u002Fdocs\u002Fadapters\u002Fposthog","docs\u002F05.adapters\u002F11.posthog","Record product analytics with the PostHog analytics adapter",{"label":1543,"glow":1437},{"title":1657,"path":1658,"stem":1659,"description":1660},"Resend","\u002Fdocs\u002Fadapters\u002Fresend","docs\u002F05.adapters\u002F20.resend","Send newsletter emails with the Resend newsletter adapter",{"title":1662,"path":1663,"stem":1664,"description":1665},"Substack","\u002Fdocs\u002Fadapters\u002Fsubstack","docs\u002F05.adapters\u002F21.substack","Subscribe users to Substack via DocLayer’s adapter","circle-fading-plus",{"title":1668,"path":1669,"stem":1670,"children":1671,"description":6,"label":1455,"icon":1689},"Search ✨","\u002Fdocs\u002Fsearch","docs\u002F06.search\u002F01.index",[1672,1675,1680,1684],{"title":1673,"path":1669,"stem":1670,"description":1674,"label":1455},"Search Module Introduction","Brief intro into built-in DocLayer’s Search Module",{"title":1676,"path":1677,"stem":1678,"description":1679},"Installation & Usage","\u002Fdocs\u002Fsearch\u002Fusage","docs\u002F06.search\u002F02.usage","Wire DocLayer’s Search Module into your app",{"title":1480,"path":1681,"stem":1682,"description":1683},"\u002Fdocs\u002Fsearch\u002Fconfiguration","docs\u002F06.search\u002F03.configuration","Configure static search, indexing, and the AI assistant in DocLayer's Search Module",{"title":1685,"path":1686,"stem":1687,"description":1688},"API Reference","\u002Fdocs\u002Fsearch\u002Freference","docs\u002F06.search\u002F04.reference","API reference for DocLayer’s Search Module","scan-search",{"title":1691,"path":1692,"stem":1693,"children":1694,"description":6,"icon":1704},"Deployment","\u002Fdocs\u002Fdeployment","docs\u002F07.deployment\u002F01.index",[1695,1698],{"title":1696,"path":1692,"stem":1693,"description":1697},"Building & Preparations","Build a static DocLayer app and prepare it for hosting",{"title":1699,"path":1700,"stem":1701,"description":1702,"label":1703},"Vercel Deployment","\u002Fdocs\u002Fdeployment\u002Fvercel","docs\u002F07.deployment\u002F02.vercel","Deploy DocLayer to Vercel via UI, CLI, or CI","Vercel","server-crash",{"title":1706,"description":6,"icon":1707,"path":1708,"stem":1709,"children":1710,"page":1499},"Advanced","file-terminal","\u002Fdocs\u002Fadvanced","docs\u002F09.advanced",[1711,1717,1722,1727,1732,1737,1742],{"title":1712,"path":1713,"stem":1714,"description":1715,"label":1716},"DocLayer Monorepo","\u002Fdocs\u002Fadvanced\u002Fmonorepo","docs\u002F09.advanced\u002F02.monorepo","pnpm workspaces, Turborepo, and workflows for the DocLayer monorepo","Monorepo",{"title":1718,"path":1719,"stem":1720,"description":1721},"Globals","\u002Fdocs\u002Fadvanced\u002Fglobals","docs\u002F09.advanced\u002F03.globals","DocLayer’s global instances for easy and quick access",{"title":1723,"path":1724,"stem":1725,"description":1726},"CLI","\u002Fdocs\u002Fadvanced\u002Fcli","docs\u002F09.advanced\u002F04.cli","Use Command Line Interface to extensively menage your DocLayer project",{"title":1728,"path":1729,"stem":1730,"description":1731},"Security","\u002Fdocs\u002Fadvanced\u002Fsecurity","docs\u002F09.advanced\u002F05.security","Security defaults DocLayer ships with Nuxt Security",{"title":1733,"path":1734,"stem":1735,"description":1736},"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":1738,"path":1739,"stem":1740,"description":1741},"Error Handling","\u002Fdocs\u002Fadvanced\u002Ferror-handling","docs\u002F09.advanced\u002F07.error-handling","How DocLayer validates and reports errors in authoring, build, and production",{"title":1743,"path":1744,"stem":1745,"description":1746},"Troubleshooting","\u002Fdocs\u002Fadvanced\u002Ftroubleshooting","docs\u002F09.advanced\u002F08.troubleshooting","Known DocLayer issues and quick fixes",{"title":1748,"description":6,"icon":1749,"path":1750,"stem":1751,"children":1752,"page":1499},"Project","shield-ellipsis","\u002Fdocs\u002Fproject","docs\u002F10.project",[1753,1758,1763],{"title":1754,"path":1755,"stem":1756,"description":1757},"Contribution","\u002Fdocs\u002Fproject\u002Fcontribution","docs\u002F10.project\u002F01.contribution","How to report issues and when contributions are welcome",{"title":1759,"path":1760,"stem":1761,"description":1762},"Principles","\u002Fdocs\u002Fproject\u002Fethos","docs\u002F10.project\u002F02.ethos","Who we are, what we care about, and how we treat each other",{"title":1764,"path":1765,"stem":1766,"description":1767},"Support","\u002Fdocs\u002Fproject\u002Fsupport","docs\u002F10.project\u002F03.support","Join the Early Supporter Program and help fund DocLayer’s development",{"title":1685,"description":6,"icon":1769,"path":1770,"stem":1771,"children":1772,"page":1499},"file-type","\u002Fdocs\u002Freference","docs\u002F99.reference",[1773,1778,1783],{"title":1774,"path":1775,"stem":1776,"description":1777},"App Config","\u002Fdocs\u002Freference\u002Fapp-config","docs\u002F99.reference\u002F01.app-config","API Reference for DocLayer’s AppConfig",{"title":1779,"path":1780,"stem":1781,"description":1782},"Module Options","\u002Fdocs\u002Freference\u002Fmodule-options","docs\u002F99.reference\u002F01.module-options","API Reference for DocLayer’s ModuleOptions",{"title":1784,"path":1785,"stem":1786,"description":1787},"Content Schema","\u002Fdocs\u002Freference\u002Fcontent-schema","docs\u002F99.reference\u002F02.content-schema","API Reference for DocLayer’s Content Schema",[1789,1790,1791,1792],{"title":1617,"path":1613,"stem":1614,"description":1618,"label":1455,"children":-1},{"title":1612,"path":1620,"stem":1621,"description":1622,"children":-1},{"title":1625,"path":1626,"stem":1627,"description":1628,"children":-1},{"title":1630,"path":1631,"stem":1632,"description":1633,"label":1634,"children":-1},1795796068082]