[{"data":1,"prerenderedAt":1633},["ShallowReactive",2],{"\u002Fdocs\u002Fadapters":3,"dl-navigation-docs":742,"shared":1082,"surroundings-\u002Fdocs\u002Fadapters":1626},{"id":4,"title":5,"_llmSection":6,"_local":6,"_schemaOrg":6,"_seo":6,"body":7,"description":732,"extension":733,"ignore":6,"meta":734,"navigation":735,"path":737,"seo":738,"sitemap":739,"stem":740,"__hash__":741},"docs\u002Fdocs\u002F05.adapters\u002F01.index.md","Building Adapters",null,{"type":8,"value":9,"toc":723},"minimark",[10,100,326,549,659,705],[11,12,14,18,31,48],"dl-section",{"id":13},"introduction",[15,16,17],"h2",{"id":13},"Introduction",[19,20,21,22,26,27,30],"p",{},"The ",[23,24,25],"strong",{},"main purpose for creating and using Adapters is to provide a universal interface for extending DocLayer",". The plug-and-play system that will allow you ",[23,28,29],{},"seamlessly integrate your own external platforms"," (of your choice) to handle dynamic events in your application. For example, to easily add features like newsletter subscriptions, analytics reporting, or any type of external data handling on the Client. And if needed, to also use dedicated server actions resolving critical or confidential backend operations.",[19,32,33,34,37,38,41,42,47],{},"To ensure a consistent approach, ",[23,35,36],{},"we provide a dedicated method for building type-safe adapters"," tailored to specific parts of the application. This helps create a clear and comprehensive workflow for handling various types of interactivity. Below, you'll find a ",[23,39,40],{},"guide on how to create a new adapters",", integrate it into your application, and extend entry points such as the ",[43,44,46],"dl-renderer",{"inline":45},"true","rref:tooltip-app-config-path"," file, for easy and fast configuration.",[49,50,53,56,79],"dl-callout",{"title":51,"type":52},"Available adapters","note",[19,54,55],{},"Currently, the number of available adapters is limited to:",[57,58,59,70],"ul",{},[60,61,62,63,66,67],"li",{},"newsletter: ",[23,64,65],{},"Resend",", ",[23,68,69],{},"Substack",[60,71,72,73,66,76],{},"analytics: ",[23,74,75],{},"Google Analytics",[23,77,78],{},"PostHog",[19,80,81,84,85,88,89,94,95,99],{},[23,82,83],{},"We will be successfully adding new adapters going forward to extend the application's versatility",". Although the list of built-in adapters is currently limited, ",[23,86,87],{},"you can help us by building and adding new ones to the codebase",". Please don't hesitate to ",[90,91,93],"dl-link",{"label":92},"at least share your ideas for additional adapters","$dl-repo-issues",", or if you are eager to build one, feel free to ",[90,96,98],{"label":97},"contribute to the project","$docs-project-contribution",". Thank you in advance!",[11,101,103,106,110,113,135,138,153,156,209,230,236,245,256,276,286,297,308],{"id":102},"building-new-adapter",[15,104,105],{"id":102},"Building new Adapter",[107,108,109],"dl-prompter",{},"how to build a new adapter",[107,111,112],{},"how to create a custom adapter",[19,114,115,116,121,122,125,126,130,131,134],{},"To build a new adapter, use the ",[90,117,120],{"label":118,"hash":119},"`defineDoclayerAdapter`","definedoclayeradapter","$docs-utils-macros"," macro. This function helps you ",[23,123,124],{},"connect to external data sources and ensures a universal response format",", similar to Nuxt's ",[127,128,129],"code",{},"asyncData",". Place your adapter in the ",[127,132,133],{},"adapters\u002F"," folder to keep it consistent with the location of other adapters.",[19,136,137],{},"To demonstrate how it can be implemented, we'll use the Newsletter adapter as an example. Here’s how you can define it:",[139,140,143],"dl-code",{"tabs":141,"max-height":142},"customAdapter.ts","1000rem",[144,145,151],"pre",{"className":146,"code":148,"language":149,"meta":150},[147],"language-ts","import { defineDoclayerAdapter } from '@vuehouse\u002Fdl\u002Fexports';\n\ntype Context = {\n  config: { endpoint: string };\n  input: { email: string };\n};\ntype Response = {\n  success: string;\n};\n\nexport default defineDoclayerAdapter\u003CContext, Response>(async (adapter, context) => {\n  const { config, input } = context;\n  return await adapter(\n    'newsletter',\n    async () =>\n      await fetch(config.endpoint, {\n        method: 'POST',\n        body: JSON.stringify({\n          email: input.email,\n        }),\n      }),\n  );\n});\n\"cref:ni60lc\"\n","ts","",[127,152,148],{"__ignoreMap":150},[19,154,155],{},"OK, let's split this example to more digestible pieces.",[19,157,21,158,161,162,165,166,169,170,173,174,177,178,161,180,161,183,161,185,188,189,194,195,161,197,200,201,203,204,208],{},[127,159,160],{},"defineDoclayerAdapter"," ",[23,163,164],{},"macro takes a callback as its argument",". This ",[23,167,168],{},"callback receives two parameters",": ",[127,171,172],{},"adapter"," and ",[127,175,176],{},"context",". The ",[127,179,172],{},[23,181,182],{},"parameter is a function that triggers an",[127,184,129],{},[23,186,187],{},"call",", following the same interface as Nuxt’s ",[90,190,193],{"label":191,"path":192},"`useAsyncData`","\u002Fapi\u002Fcomposables\u002Fuse-async-data","$nuxt-docs"," composable. The ",[127,196,176],{},[23,198,199],{},"parameter contains both the global configuration"," defined in your ",[43,202,46],{"inline":45}," file and the user's input. In this example, the user input would typically be an email address provided through the ",[90,205,207],{"label":206},"`DlNewsletter`","$docs-components-newsletter"," component.",[19,210,211,212,214,215,218,219,222,223,229],{},"For full type inference, you can provide two generics to ",[127,213,160],{},": the first for your ",[127,216,217],{},"Context",", and the second for your API ",[127,220,221],{},"Response",". This allows the ",[23,224,225,228],{},[90,226,227],{},"$typescript"," compiler to provide autocomplete suggestions"," within your adapter.",[19,231,232,233,235],{},"Now that we've created the adapter, we can initialize it. You can do this within your ",[43,234,46],{"inline":45}," file, like this:",[139,237,239],{"tabs":238},"app.config.ts",[144,240,243],{"className":241,"code":242,"language":149,"meta":150},[147],"\u002F\u002F [!code ++]\nimport newsletterAdapter from '..\u002Fadapters\u002Fnewsletter';\n\nexport default defineDoclayerAppConfig({\n  \u002F\u002F the rest of the config\n  dl: {\n    adapters: {\n      \u002F\u002F [!code ++:4]\n      newsletter: newsletterAdapter('newsletter-custom', {\n        \u002F\u002F This will be your adapter's global config\n        endpoint: 'https:\u002F\u002Fapi.com\u002Fendpoint',\n      }),\n    },\n  },\n});\n\"cref:2m1get\"\n",[127,244,242],{"__ignoreMap":150},[19,246,247,248,251,252,255],{},"It's important to ",[23,249,250],{},"specify which adapter"," (as the resolved identifier may vary) ",[23,253,254],{},"you want to attach the global config to",", it might be needed for your further actions.",[49,257,260],{"title":258,"type":259},"Never store sensitive data in `app.config.ts`","warning",[19,261,262,263,265,266,269,270,275],{},"Because the contents of ",[43,264,46],{"inline":45}," are exposed to the client, ",[23,267,268],{},"you should never use the adapter's global config in this file to pass sensitive data"," such as credentials or API keys. For any server-side logic that requires sensitive information, create a dedicated server route and have your adapter interact with it instead. You can ",[271,272,274],"a",{"href":273},"#handling-sensitive-data","learn how to do this below",".",[19,277,21,278,281,282,285],{},[127,279,280],{},"DlNewsletter"," component will ",[23,283,284],{},"automatically detect your adapter and perform the API call"," when the form is submitted. However, if you want to use the adapter in your own custom components, you can run the API call like this:",[139,287,289],{"tabs":288},"Component.vue",[144,290,295],{"className":291,"code":293,"language":294,"meta":150},[292],"language-vue","\u003Cscript setup lang=\"ts\">\nconst { dl } = useAppConfig();\n\nconst email = ref\u003Cstring>('');\nasync function callNewsletterAdapter(email: string) {\n  \u002F\u002F Adapter will return fully accessible `useAsyncData` interface\n  \u002F\u002F [!code ++:4]\n  const { status, error, data } = await dl.adapters.newsletter(useAsyncData, {\n    \u002F\u002F This will be your user's input\n    email: email.value,\n  });\n\n  return data;\n}\n\u003C\u002Fscript>\n\"cref:4qr3gz\"\n","vue",[127,296,293],{"__ignoreMap":150},[19,298,299,300,303,304,307],{},"Both the ",[23,301,302],{},"global config"," and the ",[23,305,306],{},"user's input"," are available inside your adapter definition. You can use them to handle any logic you need within the adapter.",[49,309,311],{"title":310,"type":259},"Pass `useAsyncData` composable",[19,312,313,314,317,318,321,322,325],{},"As the ",[23,315,316],{},"adapter partly operates outside of the component instance",", you need to pass ",[127,319,320],{},"useAsyncData"," to it if calling from either ",[127,323,324],{},"script setup"," or a regular Vue context. If not, Nuxt will detect that the composable is called outside of the component's context and report the issue.",[11,327,329,332,335,338,341,355,364,377,380,528,531],{"id":328},"handling-sensitive-data",[15,330,331],{"id":328},"Handling sensitive data",[107,333,334],{},"how to handle sensitive data in adapters",[107,336,337],{},"how to create a server route for an adapter",[107,339,340],{},"how to create this server route",[49,342,344],{"title":343,"type":52},"false",[19,345,346,347,350,351,275],{},"Since ",[23,348,349],{},"DocLayer builds statically and does not handle server data by default",", you need to engage server functions to perform this kind of actions. On how to use server functions with a specific deployment platform ",[90,352,354],{"label":353},"you can read here","$docs-deployment",[19,356,357,358,161,361,363],{},"The above implementation works well for client-only scenarios. ",[23,359,360],{},"Secrets, such as API keys, have to stay on the server.",[43,362,46],{"inline":45}," is shipped to the browser, so it cannot hold credentials.",[19,365,366,367,173,373,376],{},"To securely handle sensitive operations, create a ",[271,368,372],{"href":369,"rel":370},"https:\u002F\u002Fnuxt.com\u002Fdocs\u002F4.x\u002Fguide\u002Fdirectory-structure\u002Fserver#server-routes",[371],"nofollow","dedicated server endpoint",[23,374,375],{},"have your adapter call it"," instead of calling the external API directly from the client. This server route should access secrets from the environment and make the upstream API request on behalf of the client.",[19,378,379],{},"This is how it can be implemented:",[381,382,383,433,473,514],"dl-stepper",{},[384,385,386,396,405],"template",{"v-slot:step-1|Create adapter":150},[19,387,388,389,173,392,395],{},"First, ",[23,390,391],{},"create your adapter",[23,393,394],{},"point it at the server endpoint"," you are about to create. Build the upstream payload here, then post that string together with the user input.",[139,397,399],{"tabs":398,"max-height":142},"newsletterAdapter.ts",[144,400,403],{"className":401,"code":402,"language":149,"meta":150},[147],"export default defineDoclayerAdapter\u003CContext, Response>((adapter, { config, input }) => {\n  return adapter('newsletter', async () => {\n    if (!config.body || typeof config.body !== 'function') {\n      throw new Error('Resend adapter body is missing');\n    }\n    \u002F\u002F Call the application server endpoint (`endpoint.post.ts`).\n    return await fetch('\u002Fapi\u002Fendpoint', {\n      method: 'POST',\n      body: JSON.stringify({\n        email: input.email,\n        payload: config.body({ config, input }),\n      }),\n    });\n  });\n});\n\"cref:u5ngj4\"\n",[127,404,402],{"__ignoreMap":150},[19,406,407,408,411,412,415,416,421,422,425,426,429,430,275],{},"A ",[127,409,410],{},"body"," callback in the global config is also app code. ",[23,413,414],{},"It runs inside the adapter."," Serverless functions only receive JSON, so ",[90,417,420],{"label":418,"hash":419},"`useAdapterData`","useadapterdata","$docs-utils-composables"," on the server returns serializable fields such as ",[127,423,424],{},"endpoint",". Call ",[127,427,428],{},"config.body"," in the adapter, where that function is already in scope, and send the resulting string as ",[127,431,432],{},"payload",[384,434,435,454,462],{"v-slot:step-2|Initialize adapter":150},[19,436,437,438,441,442,444,445,447,448,450,451],{},"Next, ",[23,439,440],{},"initialize your adapter"," in the ",[43,443,46],{"inline":45}," file. ",[127,446,424],{}," is public configuration. ",[127,449,410],{}," shapes the upstream request for the end user if needed any additional customization. ",[23,452,453],{},"Do not put secrets in either of them.",[139,455,456],{"tabs":238},[144,457,460],{"className":458,"code":459,"language":149,"meta":150},[147],"import newsletterAdapter from '..\u002Fadapters\u002Fnewsletter';\n\nexport default defineDoclayerAppConfig({\n  \u002F\u002F the rest of the config\n  dl: {\n    adapters: {\n      \u002F\u002F [!code focus:8]\n      newsletter: newsletterAdapter('newsletter-custom', {\n        endpoint: 'https:\u002F\u002Fapi.com\u002Fendpoint',\n        body: (context) =>\n          JSON.stringify({\n            name: context.input.name,\n            \u002F\u002F shape the upstream request payload here\n          }),\n      }),\n    },\n  },\n});\n\"cref:48fukr\"\n",[127,461,459],{"__ignoreMap":150},[19,463,464,465,468,469,275],{},"You can ",[23,466,467],{},"see an example"," of a request body on the ",[90,470,472],{"label":471},"Resend adapter page","$docs-adapters-resend",[384,474,475,492,501],{"v-slot:step-3|Create server endpoint":150},[19,476,477,478,481,482,485,486,489,490,275],{},"Then, ",[23,479,480],{},"define the server endpoint"," and place it inside the ",[127,483,484],{},"server\u002Fapi"," folder. Read the serialized config with ",[127,487,488],{},"useAdapterData(event)",", attach the secret from the environment, and forward ",[127,491,432],{},[139,493,495],{"tabs":494,"max-height":142},"endpoint.post.ts",[144,496,499],{"className":497,"code":498,"language":149,"meta":150},[147],"import { useAdapterData } from '@vuehouse\u002Fdl\u002Fexports';\n\nexport default defineEventHandler(async (event) => {\n  const input = await readBody\u003C{ email?: string; payload?: string }>(event);\n  \u002F\u002F Pass the request `event` as the serverless isolates do not share the Nuxt app global.\n  const { newsletter } = useAdapterData(event);\n  if (!newsletter?.endpoint || typeof input.payload !== 'string') {\n    throw createError({ statusCode: 400, statusMessage: 'Bad Request' });\n  }\n\n  await fetch(newsletter.endpoint, {\n    method: 'POST',\n    headers: {\n      'Content-Type': 'application\u002Fjson',\n      Authorization: `Bearer ${process.env.SECRET_API_KEY}`,\n    },\n    \u002F\u002F String produced by `config.body` in the adapter. Not a function.\n    body: input.payload,\n  });\n});\n\"cref:58pwmv\"\n",[127,500,498],{"__ignoreMap":150},[49,502,504],{"title":503,"type":259},"Check the payload before you forward it",[19,505,506,507,513],{},"The browser can post any string. ",[23,508,509,510,512],{},"Parse ",[127,511,432],{}," and confirm it matches the input you expect"," before calling the external API. You can do it also within the adapter itself if delivered remotely.",[384,515,516],{"v-slot:step-4|Keep the request body on the server (optional)":150},[19,517,518,519,66,521,527],{},"If the upstream body should not be editable from ",[43,520,46],{"inline":45},[23,522,523,524,526],{},"skip ",[127,525,410],{}," and build the JSON inside the server route"," from the input the adapter posts. That is the right place for fields that must not ship to the client.",[19,529,530],{},"That's it! Now you can use your adapter with the server function, securely handling your sensitive integration data.",[49,532,534],{"title":533,"type":52},"Performance tip",[19,535,346,536,540,541,544,545,548],{},[90,537,539],{"label":538},"`ofetch`","$ofetch"," is a peer dependency of DocLayer, you can use it as a faster and more versatile alternative to the native ",[127,542,543],{},"fetch"," API. Just add it to your ",[127,546,547],{},"package.dependencies"," object.",[11,550,552,555,558,561,583,598,612,625,633],{"id":551},"adapter-as-an-effect",[15,553,554],{"id":551},"Adapter as an effect",[107,556,557],{},"how to run an adapter as an effect",[107,559,560],{},"how to use the Nuxt SSR context inside an adapter",[19,562,563,564,567,568,570,571,573,574,161,577,173,579,582],{},"Although adapters are primarily designed for asynchronous data fetching from third-party services, ",[23,565,566],{},"you can also use them to perform side effects"," during the Nuxt server-side rendering process. To do this, pass ",[127,569,45],{}," as the third argument to the ",[127,572,172],{}," function. In this mode, the macro ",[23,575,576],{},"bypasses",[127,578,320],{},[23,580,581],{},"executes your handler immediately"," with access to the current SSR context.",[139,584,586,592],{"tabs":585,"max-height":142},"effectAdapter.ts, app.config.ts",[144,587,590],{"className":588,"code":589,"language":149,"meta":150},[147],"type Context = {\n  config: { value: string };\n};\n\nexport default defineDoclayerAdapter\u003CContext, void>((adapter, { config }) => {\n  return adapter(\n    'effect-custom',\n    \u002F\u002F [!code highlight:1]\n    async (nuxt) => {\n      \u002F\u002F Do something with the universal (or client) context here.\n      console.log(config.value); \u002F\u002F Will log 'Hello, world!'\n\n      if (!nuxt) return; \u002F\u002F `nuxt` is available only while this resolves on the server.\n      \u002F\u002F Do something with the SSR context here.\n    },\n    \u002F\u002F [!code ++:1]\n    true,\n  );\n});\n\"cref:f1sn8k\"\n",[127,591,589],{"__ignoreMap":150},[144,593,596],{"className":594,"code":595,"language":149,"meta":150},[147],"import effectAdapter from '.\u002Fadapters\u002FeffectAdapter';\n\nexport default defineDoclayerAppConfig({\n  \u002F\u002F the rest of the config\n  dl: {\n    adapters: {\n      effect: effectAdapter('effect-custom', { value: 'Hello, world!' }),\n    },\n  },\n});\n\"cref:fk9c1a\"\n",[127,597,595],{"__ignoreMap":150},[19,599,21,600,603,604,607,608,611],{},[127,601,602],{},"nuxt"," argument is ",[23,605,606],{},"Nuxt's SSR context"," for the request in progress. The macro reads it from the Vue instance that is currently setting up. That object exists ",[23,609,610],{},"only on the server",", for the duration of that render. Use it for anything that has to happen as part of the HTML response.",[19,613,614,620,621,624],{},[23,615,616,617,619],{},"Call the adapter from ",[127,618,324],{}," of a component that participates in the server render."," Where you call it decides how widely it applies. ",[127,622,623],{},"app.vue"," runs once for the whole application. A layout or a page runs only for the routes that use it.",[139,626,627],{"tabs":623},[144,628,631],{"className":629,"code":630,"language":294,"meta":150},[292],"\u003Cscript setup lang=\"ts\">\nconst { dl } = useAppConfig();\n\u002F\u002F Application-wide call.\n\u002F\u002F Move the call to a layout or a page to narrow the effect.\ndl.adapters.effect?.();\n\u003C\u002Fscript>\n\"cref:vfn781\"\n",[127,632,630],{"__ignoreMap":150},[49,634,636,649],{"title":635,"type":259},"Call it during setup",[19,637,638,639,642,643,645,646,648],{},"The SSR context is available ",[23,640,641],{},"only while a component instance is setting up",". Keep the call synchronous inside ",[127,644,324],{},". You don't need to pass ",[127,647,320],{},", since the handler does not returns it.",[19,650,651,652,655,656,658],{},"After hydration, Vue runs that setup again on the client. ",[23,653,654],{},"There is no SSR context in the browser",", so ",[127,657,602],{}," is missing and the handler returns. What's written into the server HTML stays on the page.",[11,660,662,665,680,695],{"id":661},"defining-one-type-multiple-adapters",[15,663,664],{"id":661},"Defining one-type multiple adapters",[19,666,667,668,671,672,675,676,679],{},"Some ",[23,669,670],{},"adapters"," - like analytics - ",[23,673,674],{},"can be defined as multiple ones",", because, for example, you want to use two ",[23,677,678],{},"different services to measure your app"," at the same time. In that case you can run them from an array.",[139,681,683,689],{"tabs":682},"app.config.ts, app.vue",[144,684,687],{"className":685,"code":686,"language":149,"meta":150},[147],"import { firstAdapter, secondAdapter } from '@vuehouse\u002Fdl\u002Fexports';\n\nexport default defineDoclayerAppConfig({\n  \u002F\u002F the rest of the config\n  dl: {\n    adapters: {\n      analytics: [\n        firstAdapter('analytics-first' \u002F* { ...config } *\u002F),\n        secondAdapter('analytics-second' \u002F* { ...config } *\u002F),\n      ],\n    },\n  },\n});\n\"cref:nivebh\"\n",[127,688,686],{"__ignoreMap":150},[144,690,693],{"className":691,"code":692,"language":149,"meta":150},[147],"const { dl } = useAppConfig();\nconst [first, second] = dl.adapters.analytics;\nfirst?.();\nsecond?.();\n\"cref:0tz19h\"\n",[127,694,692],{"__ignoreMap":150},[696,697,698],"blockquote",{},[19,699,700,701,704],{},"Currently ",[23,702,703],{},"only analytics adapters"," can be run from an array.",[11,706,708,711],{"id":707},"request-adapter",[15,709,710],{"id":707},"Request Adapter",[19,712,713,714,717,718,719,722],{},"On the following pages, ",[23,715,716],{},"you can explore a set of available adapters",". The list isn't extensive yet, but we will continually add more. "," If you have an idea for a tool we could integrate with, let us know - ",[90,720,93],{"label":721},"create an issue",". We will be happy to consider your suggestions! Thank you!",{"title":150,"searchDepth":724,"depth":724,"links":725},2,[726,727,728,729,730,731],{"id":13,"depth":724,"text":17},{"id":102,"depth":724,"text":105},{"id":328,"depth":724,"text":331},{"id":551,"depth":724,"text":554},{"id":661,"depth":724,"text":664},{"id":707,"depth":724,"text":710},"Build type-safe adapters to plug external services into DocLayer","md",{},{"label":736},"Building","\u002Fdocs\u002Fadapters",{"title":5,"description":732},{"loc":737},"docs\u002F05.adapters\u002F01.index","694AoYjGM0tGza-IE2TNDeL9vepYcYAn75P2lsxql8s",[743],{"title":744,"path":745,"stem":746,"children":747,"page":797},"Docs","\u002Fdocs","docs",[748,766,798,909,938,961,984,999,1041,1062],{"title":749,"path":750,"stem":751,"children":752,"description":6,"icon":765},"Getting Started","\u002Fdocs\u002Fgetting-started","docs\u002F01.getting-started\u002F01.index",[753,755,760],{"title":17,"path":750,"stem":751,"description":754},"What DocLayer is, who it’s for, and how it can help",{"title":756,"path":757,"stem":758,"description":759},"Installation","\u002Fdocs\u002Fgetting-started\u002Finstallation","docs\u002F01.getting-started\u002F02.installation","How to install and run DocLayer",{"title":761,"path":762,"stem":763,"description":764},"FAQ","\u002Fdocs\u002Fgetting-started\u002Ffaq","docs\u002F01.getting-started\u002F03.faq","Frequently asked questions about DocLayer","rocket",{"title":767,"description":6,"icon":768,"path":769,"stem":770,"children":771,"page":797},"Guidelines","file-pen-line","\u002Fdocs\u002Fguidelines","docs\u002F02.guidelines",[772,777,782,787,792],{"title":773,"path":774,"stem":775,"description":776},"Internals","\u002Fdocs\u002Fguidelines\u002Finternals","docs\u002F02.guidelines\u002F02.internals","How DocLayer's structure, its architecture and internals fit together",{"title":778,"path":779,"stem":780,"description":781},"Configuration","\u002Fdocs\u002Fguidelines\u002Fconfiguration","docs\u002F02.guidelines\u002F03.configuration","Customize DocLayer via `app.config.ts` and its configuration",{"title":783,"path":784,"stem":785,"description":786},"Writing Content","\u002Fdocs\u002Fguidelines\u002Fwriting-content","docs\u002F02.guidelines\u002F04.writing-content","Write Markdown with Nuxt Content, DocLayer and prebuilt utilities",{"title":788,"path":789,"stem":790,"description":791},"Defining Metadata","\u002Fdocs\u002Fguidelines\u002Fdefining-metadata","docs\u002F02.guidelines\u002F05.defining-metadata","Set global and per-page SEO metadata for your DocLayer app",{"title":793,"path":794,"stem":795,"description":796},"Theming","\u002Fdocs\u002Fguidelines\u002Ftheming","docs\u002F02.guidelines\u002F06.theming","Customize DocLayer’s look with CSS variables and utility classes",false,{"title":799,"path":800,"stem":801,"children":802,"description":6,"label":17,"icon":908},"Components","\u002Fdocs\u002Fcomponents","docs\u002F03.components\u002F01.index",[803,806,812,817,822,827,832,837,843,848,853,858,863,868,874,879,884,889,894,899,903],{"title":804,"path":800,"stem":801,"description":805,"label":17},"Components Introduction","Overview of DocLayer’s built-in Markdown content components",{"title":807,"path":808,"stem":809,"description":810,"label":811},"Components Building & Styling","\u002Fdocs\u002Fcomponents\u002Fbuilding","docs\u002F03.components\u002F02.building","Create custom content components with DlWrapper","DlWrapper",{"title":813,"path":814,"stem":815,"description":816},"DlRenderer","\u002Fdocs\u002Fcomponents\u002Frenderer","docs\u002F03.components\u002F03.renderer","Render reusable, shareable Markdown fragments anywhere in your content",{"title":818,"path":819,"stem":820,"description":821},"DlLink","\u002Fdocs\u002Fcomponents\u002Flink","docs\u002F03.components\u002F04.link","Create internal links resolved from the global path registry",{"title":823,"path":824,"stem":825,"description":826},"DlCode","\u002Fdocs\u002Fcomponents\u002Fcode","docs\u002F03.components\u002F05.code","Display your code snippets with syntax highlighting, copy, tabs, transformations and more",{"title":828,"path":829,"stem":830,"description":831},"DlCodeInline","\u002Fdocs\u002Fcomponents\u002Finline-code","docs\u002F03.components\u002F05.inline-code","Display inline code that stays on one line",{"title":833,"path":834,"stem":835,"description":836},"DlCallout","\u002Fdocs\u002Fcomponents\u002Fcallout","docs\u002F03.components\u002F06.callout","Display notes, warnings, and alerts as type-based callout blocks",{"title":828,"path":838,"stem":839,"description":831,"badge":840},"\u002Fdocs\u002Fcomponents\u002Fcode-inline","docs\u002F03.components\u002F06.code-inline",{"label":841,"glow":842},"new",true,{"title":844,"path":845,"stem":846,"description":847},"DlBadge","\u002Fdocs\u002Fcomponents\u002Fbadge","docs\u002F03.components\u002F07.badge","Show compact type-based status labels",{"title":849,"path":850,"stem":851,"description":852},"DlImage","\u002Fdocs\u002Fcomponents\u002Fimage","docs\u002F03.components\u002F08.image","Present optimized, responsive images with optional caption and inline styling",{"title":854,"path":855,"stem":856,"description":857},"DlStepper","\u002Fdocs\u002Fcomponents\u002Fstepper","docs\u002F03.components\u002F09.stepper","List vertical step sequences using named slots",{"title":859,"path":860,"stem":861,"description":862},"DlTooltip","\u002Fdocs\u002Fcomponents\u002Ftooltip","docs\u002F03.components\u002F10.tooltip","Annotate with contextual configurable tooltips",{"title":864,"path":865,"stem":866,"description":867},"DlPrompter","\u002Fdocs\u002Fcomponents\u002Fprompter","docs\u002F03.components\u002F11.prompter","Prompt the search index and AI Assistant with hidden, removable content inserts",{"title":869,"path":870,"stem":871,"description":872,"badge":873},"DlFormat","\u002Fdocs\u002Fcomponents\u002Fformat","docs\u002F03.components\u002F12.format","Format Markdown content into a structured HTML output",{"label":841,"glow":842},{"title":875,"path":876,"stem":877,"description":878},"DlSection","\u002Fdocs\u002Fcomponents\u002Fsection","docs\u002F03.components\u002F13.section","Wrap and demarcate content sections",{"title":880,"path":881,"stem":882,"description":883},"DlGrid","\u002Fdocs\u002Fcomponents\u002Fgrid","docs\u002F03.components\u002F14.grid","Lay out named content items in a responsive grid",{"title":885,"path":886,"stem":887,"description":888},"DlHero","\u002Fdocs\u002Fcomponents\u002Fhero","docs\u002F03.components\u002F20.hero","Present a prominent page hero with title, lead and CTA",{"title":890,"path":891,"stem":892,"description":893},"DlHeading","\u002Fdocs\u002Fcomponents\u002Fheading","docs\u002F03.components\u002F21.heading","Divide content with section headings",{"title":895,"path":896,"stem":897,"description":898},"DlFeaturesGrid","\u002Fdocs\u002Fcomponents\u002Ffeatures-grid","docs\u002F03.components\u002F22.features-grid","Render a responsive features grid with animated and formatted tiles",{"title":280,"path":900,"stem":901,"description":902},"\u002Fdocs\u002Fcomponents\u002Fnewsletter","docs\u002F03.components\u002F23.newsletter","Collect newsletter subscriptions with a styled form",{"title":904,"path":905,"stem":906,"description":907},"DlTypeman","\u002Fdocs\u002Fcomponents\u002Ftypeman","docs\u002F03.components\u002F24.typeman","Animate rotating words with a blinking cursor effect","brick-wall",{"title":910,"path":911,"stem":912,"children":913,"description":6,"label":17,"icon":937},"Utilities","\u002Fdocs\u002Futils","docs\u002F04.utils\u002F01.index",[914,917,921,926,931],{"title":915,"path":911,"stem":912,"description":916,"label":17},"Utilities Introduction","Helpers, composables, macros, and types for extending DocLayer beyond Markdown",{"title":910,"path":918,"stem":919,"description":920},"\u002Fdocs\u002Futils\u002Futilities","docs\u002F04.utils\u002F02.utilities","Auto-imported helper functions for common tasks across DocLayer",{"title":922,"path":923,"stem":924,"description":925},"Composables","\u002Fdocs\u002Futils\u002Fcomposables","docs\u002F04.utils\u002F03.composables","Vue composables for collections, UI resolution, navigation, and content",{"title":927,"path":928,"stem":929,"description":930},"Macros","\u002Fdocs\u002Futils\u002Fmacros","docs\u002F04.utils\u002F04.macros","Compile-time macros for typed app config, adapters, and component UI",{"title":932,"path":933,"stem":934,"description":935,"label":936},"Utility Types","\u002Fdocs\u002Futils\u002Ftypes","docs\u002F04.utils\u002F05.types","TypeScript utilities for safer DocLayer development","Types","tool-case",{"title":939,"path":737,"stem":740,"children":940,"description":6,"label":736,"icon":960},"Adapters",[941,942,947,952,956],{"title":5,"path":737,"stem":740,"description":732,"label":736},{"title":943,"path":944,"stem":945,"description":946},"Google","\u002Fdocs\u002Fadapters\u002Fgoogle","docs\u002F05.adapters\u002F10.google","Connect DocLayer to Google products through built-in adapters",{"title":78,"path":948,"stem":949,"description":950,"label":78,"badge":951},"\u002Fdocs\u002Fadapters\u002Fposthog","docs\u002F05.adapters\u002F11.posthog","Record product analytics with the PostHog analytics adapter",{"label":841,"glow":842},{"title":65,"path":953,"stem":954,"description":955},"\u002Fdocs\u002Fadapters\u002Fresend","docs\u002F05.adapters\u002F20.resend","Send newsletter emails with the Resend newsletter adapter",{"title":69,"path":957,"stem":958,"description":959},"\u002Fdocs\u002Fadapters\u002Fsubstack","docs\u002F05.adapters\u002F21.substack","Subscribe users to Substack via DocLayer’s adapter","circle-fading-plus",{"title":962,"path":963,"stem":964,"children":965,"description":6,"label":17,"icon":983},"Search ✨","\u002Fdocs\u002Fsearch","docs\u002F06.search\u002F01.index",[966,969,974,978],{"title":967,"path":963,"stem":964,"description":968,"label":17},"Search Module Introduction","Brief intro into built-in DocLayer’s Search Module",{"title":970,"path":971,"stem":972,"description":973},"Installation & Usage","\u002Fdocs\u002Fsearch\u002Fusage","docs\u002F06.search\u002F02.usage","Wire DocLayer’s Search Module into your app",{"title":778,"path":975,"stem":976,"description":977},"\u002Fdocs\u002Fsearch\u002Fconfiguration","docs\u002F06.search\u002F03.configuration","Configure static search, indexing, and the AI assistant in DocLayer's Search Module",{"title":979,"path":980,"stem":981,"description":982},"API Reference","\u002Fdocs\u002Fsearch\u002Freference","docs\u002F06.search\u002F04.reference","API reference for DocLayer’s Search Module","scan-search",{"title":985,"path":986,"stem":987,"children":988,"description":6,"icon":998},"Deployment","\u002Fdocs\u002Fdeployment","docs\u002F07.deployment\u002F01.index",[989,992],{"title":990,"path":986,"stem":987,"description":991},"Building & Preparations","Build a static DocLayer app and prepare it for hosting",{"title":993,"path":994,"stem":995,"description":996,"label":997},"Vercel Deployment","\u002Fdocs\u002Fdeployment\u002Fvercel","docs\u002F07.deployment\u002F02.vercel","Deploy DocLayer to Vercel via UI, CLI, or CI","Vercel","server-crash",{"title":1000,"description":6,"icon":1001,"path":1002,"stem":1003,"children":1004,"page":797},"Advanced","file-terminal","\u002Fdocs\u002Fadvanced","docs\u002F09.advanced",[1005,1011,1016,1021,1026,1031,1036],{"title":1006,"path":1007,"stem":1008,"description":1009,"label":1010},"DocLayer Monorepo","\u002Fdocs\u002Fadvanced\u002Fmonorepo","docs\u002F09.advanced\u002F02.monorepo","pnpm workspaces, Turborepo, and workflows for the DocLayer monorepo","Monorepo",{"title":1012,"path":1013,"stem":1014,"description":1015},"Globals","\u002Fdocs\u002Fadvanced\u002Fglobals","docs\u002F09.advanced\u002F03.globals","DocLayer’s global instances for easy and quick access",{"title":1017,"path":1018,"stem":1019,"description":1020},"CLI","\u002Fdocs\u002Fadvanced\u002Fcli","docs\u002F09.advanced\u002F04.cli","Use Command Line Interface to extensively menage your DocLayer project",{"title":1022,"path":1023,"stem":1024,"description":1025},"Security","\u002Fdocs\u002Fadvanced\u002Fsecurity","docs\u002F09.advanced\u002F05.security","Security defaults DocLayer ships with Nuxt Security",{"title":1027,"path":1028,"stem":1029,"description":1030},"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":1032,"path":1033,"stem":1034,"description":1035},"Error Handling","\u002Fdocs\u002Fadvanced\u002Ferror-handling","docs\u002F09.advanced\u002F07.error-handling","How DocLayer validates and reports errors in authoring, build, and production",{"title":1037,"path":1038,"stem":1039,"description":1040},"Troubleshooting","\u002Fdocs\u002Fadvanced\u002Ftroubleshooting","docs\u002F09.advanced\u002F08.troubleshooting","Known DocLayer issues and quick fixes",{"title":1042,"description":6,"icon":1043,"path":1044,"stem":1045,"children":1046,"page":797},"Project","shield-ellipsis","\u002Fdocs\u002Fproject","docs\u002F10.project",[1047,1052,1057],{"title":1048,"path":1049,"stem":1050,"description":1051},"Contribution","\u002Fdocs\u002Fproject\u002Fcontribution","docs\u002F10.project\u002F01.contribution","How to report issues and when contributions are welcome",{"title":1053,"path":1054,"stem":1055,"description":1056},"Principles","\u002Fdocs\u002Fproject\u002Fethos","docs\u002F10.project\u002F02.ethos","Who we are, what we care about, and how we treat each other",{"title":1058,"path":1059,"stem":1060,"description":1061},"Support","\u002Fdocs\u002Fproject\u002Fsupport","docs\u002F10.project\u002F03.support","Join the Early Supporter Program and help fund DocLayer’s development",{"title":979,"description":6,"icon":1063,"path":1064,"stem":1065,"children":1066,"page":797},"file-type","\u002Fdocs\u002Freference","docs\u002F99.reference",[1067,1072,1077],{"title":1068,"path":1069,"stem":1070,"description":1071},"App Config","\u002Fdocs\u002Freference\u002Fapp-config","docs\u002F99.reference\u002F01.app-config","API Reference for DocLayer’s AppConfig",{"title":1073,"path":1074,"stem":1075,"description":1076},"Module Options","\u002Fdocs\u002Freference\u002Fmodule-options","docs\u002F99.reference\u002F01.module-options","API Reference for DocLayer’s ModuleOptions",{"title":1078,"path":1079,"stem":1080,"description":1081},"Content Schema","\u002Fdocs\u002Freference\u002Fcontent-schema","docs\u002F99.reference\u002F02.content-schema","API Reference for DocLayer’s Content Schema",[1083,1105,1126,1147,1175,1191,1208,1234,1255,1302,1323,1335,1351,1368,1380,1441,1459,1485,1510,1541,1585,1613],{"id":1084,"data":6,"extension":733,"meta":1085,"stem":1103,"__hash__":1104},"shared\u002Fcode-type-header-logo-path.md",{"body":1086},{"type":8,"value":1087,"toc":1101},[1088],[139,1089,1090,1096],{},[144,1091,1094],{"className":1092,"code":1093,"language":149,"meta":150},[147],"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",[127,1095,1093],{"__ignoreMap":150},[384,1097,1098],{"v-slot:ui":150},[19,1099,1100],{},"{\"actions\": \"hidden\", \"base\": \"mt-0!\"}",{"title":150,"searchDepth":724,"depth":724,"links":1102},[],"code-type-header-logo-path","551Sg_POiUffLU346shstXNFdKuMuK4ToyOLqIJp1Ws",{"id":1106,"data":6,"extension":733,"meta":1107,"stem":1124,"__hash__":1125},"shared\u002Fcode-type-module-options-root-prep.md",{"body":1108},{"type":8,"value":1109,"toc":1122},[1110],[139,1111,1112,1118],{},[144,1113,1116],{"className":1114,"code":1115,"language":149,"meta":150},[147],"type ModuleOptions = {\n  rootPrep:\n    | {\n        components: boolean;\n        configs: boolean;\n        public: boolean;\n      }\n    | boolean;\n};\n\"cref:bqm9nh\"\n",[127,1117,1115],{"__ignoreMap":150},[384,1119,1120],{"v-slot:ui":150},[19,1121,1100],{},{"title":150,"searchDepth":724,"depth":724,"links":1123},[],"code-type-module-options-root-prep","CDd6YiejS7_3Pl2ETS054y-cran1P92f4jEUZTnpnOI",{"id":1127,"data":6,"extension":733,"meta":1128,"stem":1145,"__hash__":1146},"shared\u002Fcode-type-search-debug-options.md",{"body":1129},{"type":8,"value":1130,"toc":1143},[1131],[139,1132,1133,1139],{},[144,1134,1137],{"className":1135,"code":1136,"language":149,"meta":150},[147],"type DebugOptions =\n  | {\n      mint: boolean;\n      parser: boolean;\n      assistant: boolean;\n      compression: boolean;\n    }\n  | boolean;\n\"cref:4kwyr2\"\n",[127,1138,1136],{"__ignoreMap":150},[384,1140,1141],{"v-slot:ui":150},[19,1142,1100],{},{"title":150,"searchDepth":724,"depth":724,"links":1144},[],"code-type-search-debug-options","9sgMqYFmn561p6df7FEuf-1-dyKAqrO_HYGdARynLlA",{"id":1148,"data":6,"extension":733,"meta":1149,"stem":1173,"__hash__":1174},"shared\u002Finline-read-more-about.md",{"body":1150},{"type":8,"value":1151,"toc":1171},[1152],[19,1153,1156,1157,66,1161],{"className":1154},[1155],"mt-0!","More about ",[1158,1159],"dl-format",{":content":1160},"about",[90,1162,1163,1167,1168],{"label":353},[1164,1165],"binding",{"value":1166},"$doc.link","|",[1164,1169],{"value":1170},"$doc.hash",{"title":150,"searchDepth":724,"depth":724,"links":1172},[],"inline-read-more-about","O5VeK2Uv84witk_mAupYbHJxwXAmNoSKDgtmvyvLQwU",{"id":1176,"data":6,"extension":733,"meta":1177,"stem":1189,"__hash__":1190},"shared\u002Fsection-exported-types.md",{"body":1178},{"type":8,"value":1179,"toc":1187},[1180],[19,1181,1182,1183,1186],{},"You can refer to the exported types, which are available for use throughout your application. All of them can be accessed from the ",[127,1184,1185],{},"@vuehouse\u002Fdl\u002Ftypes"," entrypoint.",{"title":150,"searchDepth":724,"depth":724,"links":1188},[],"section-exported-types","SyCNSGhT7VGICRHuO3fNO2QfyQUf7s10wVMGQyTfBFk",{"id":1192,"data":6,"extension":733,"meta":1193,"stem":1206,"__hash__":1207},"shared\u002Fsection-highlighter-marker-disclaimer.md",{"body":1194},{"type":8,"value":1195,"toc":1204},[1196],[696,1197,1198],{},[19,1199,21,1200,1203],{},[127,1201,1202],{},"!"," character has been escaped manually to demonstrate the code usage, remove the backslash when using it.",{"title":150,"searchDepth":724,"depth":724,"links":1205},[],"section-highlighter-marker-disclaimer","DvlAILaQ9PE_c-B8f_1AYbrRaXRnOq9Ldr_Uc8qwkqE",{"id":1209,"data":6,"extension":733,"meta":1210,"stem":1232,"__hash__":1233},"shared\u002Fsection-newly-added.md",{"body":1211},{"type":8,"value":1212,"toc":1230},[1213],[49,1214,1215],{"title":343},[19,1216,1217,1221,1222,1229],{},[1218,1219,841],"dl-badge",{":iui":1220,"glow":45,"size":733},"{ \"base\": \"mr-1 align-text-top\" }"," Available from the ",[127,1223,1226],{"className":1224},[1225],"whitespace-nowrap",[1164,1227],{"value":1228},"$doc.version"," release.",{"title":150,"searchDepth":724,"depth":724,"links":1231},[],"section-newly-added","ALhVdWjkGXgjt6I9nIikz7fUkwkGy62V3bicM903qW8",{"id":1235,"data":6,"extension":733,"meta":1236,"stem":1253,"__hash__":1254},"shared\u002Fsection-optional-tool.md",{"body":1237},{"type":8,"value":1238,"toc":1251},[1239],[49,1240,1241],{"title":343,"type":52},[19,1242,1243,1244,441,1247,275],{},"This tool is not a part of the DocLayer module. Its usage is opinionated and ",[23,1245,1246],{},"optionally included",[90,1248,1250],{"label":1249},"Boilerplate application","$dl-boilerplate",{"title":150,"searchDepth":724,"depth":724,"links":1252},[],"section-optional-tool","OWRAq0rKvbIllQHS-mJRS8L2qkNiiQ8RMiFBIBiZmnY",{"id":1256,"data":6,"extension":733,"meta":1257,"stem":1300,"__hash__":1301},"shared\u002Fsection-props-extending.md",{"body":1258},{"type":8,"value":1259,"toc":1298},[1260],[49,1261,1263,1275],{"title":1262,"type":52},"Why to use built-in property extending?",[19,1264,1265,1266,1274],{},"You might ask ",[23,1267,1268,1269],{},"why this approach is better than simply ",[90,1270,1273],{"hash":1271,"label":1272},"defining-dynamic-properties","passing regular dynamic properties","$docs-guidelines-writing-content"," to your content components?",[57,1276,1277,1285,1292,1295],{},[60,1278,1279,1280,275],{},"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 ",[90,1281,1284],{"hash":1282,"label":1283},"dlindocdata","`dl.inDocData` object","$docs-guidelines-configuration",[60,1286,1287,1288,1291],{},"Second, dynamic property binding with the ",[127,1289,1290],{},"$doc"," handler isn’t possible when using regular dynamic props, since those values are resolved as static data, which can make data binding inconsistent.",[60,1293,1294],{},"Third, you can mix static and dynamic content for the same property.",[60,1296,1297],{},"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":150,"searchDepth":724,"depth":724,"links":1299},[],"section-props-extending","_KvOHw4F9cNT3FPfJPu3rKhnly5pt4adBb6EQXsJM8s",{"id":1303,"data":6,"extension":733,"meta":1304,"stem":1321,"__hash__":1322},"shared\u002Fsection-props-intro.md",{"body":1305},{"type":8,"value":1306,"toc":1319},[1307],[19,1308,1309,1310,1315,1316,275],{},"Here are the properties you can use with the ",[127,1311,1312],{},[1164,1313],{"value":1314},"$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 ",[90,1317,1273],{"hash":1318,"label":353},"defining-properties",{"title":150,"searchDepth":724,"depth":724,"links":1320},[],"section-props-intro","SKoDIW1kVb4amM1MgbWMvvgRr9IWPabKr58_xl1Q-GM",{"id":1324,"data":6,"extension":733,"meta":1325,"stem":1333,"__hash__":1334},"shared\u002Fsection-props-iui-description.md",{"body":1326},{"type":8,"value":1327,"toc":1331},[1328],[19,1329,1330],{},"Special property dedicated to inline components, can be used to add TW classes for certain component markup elements.",{"title":150,"searchDepth":724,"depth":724,"links":1332},[],"section-props-iui-description","Se96jxhroK3WLRE4HXYqDeoYv1lpUd8qv4vZ8us54sI",{"id":1336,"data":6,"extension":733,"meta":1337,"stem":1349,"__hash__":1350},"shared\u002Fsection-props-ui-default.md",{"body":1338},{"type":8,"value":1339,"toc":1347},[1340],[19,1341,1343],{"style":1342},"white-space: nowrap;",[271,1344,1346],{"href":1345},"#styling","see below",{"title":150,"searchDepth":724,"depth":724,"links":1348},[],"section-props-ui-default","5mkrOeoYp1BToIddCkwyzzTWeOQvj1gDVRYHJJl7kow",{"id":1352,"data":6,"extension":733,"meta":1353,"stem":1366,"__hash__":1367},"shared\u002Fsection-props-ui-description.md",{"body":1354},{"type":8,"value":1355,"toc":1364},[1356],[19,1357,1359,1360,1363],{"style":1358},"min-width: 16rem;","The component ",[127,1361,1362],{},"ui"," object. Defines the Tailwind classes for the component's HTML markup elements.",{"title":150,"searchDepth":724,"depth":724,"links":1365},[],"section-props-ui-description","xXl6RjZ54x2VpJv6H1mJ7OSCTSOfMTtRD1_VyiC0tjI",{"id":1369,"data":6,"extension":733,"meta":1370,"stem":1378,"__hash__":1379},"shared\u002Fsection-props-ui-type.md",{"body":1371},{"type":8,"value":1372,"toc":1376},[1373],[127,1374,1375],{"style":1342},"() => UI",{"title":150,"searchDepth":724,"depth":724,"links":1377},[],"section-props-ui-type","AuxEvFbnpnbFrEjJrYiNJVZsYmI8RkEnH9RjkkuoaSQ",{"id":1381,"data":6,"extension":733,"meta":1382,"stem":1439,"__hash__":1440},"shared\u002Fsection-remote-model-callout.md",{"body":1383},{"type":8,"value":1384,"toc":1437},[1385],[49,1386,1388,1394,1404,1407,1416,1426],{"title":1387},"DocLayer's Remote Model",[19,1389,1390,1393],{},[23,1391,1392],{},"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.",[19,1395,1396,275],{},[23,1397,1398,1399,1403],{},"Our carefully fine-tuned model is available through the ",[90,1400,1402],{"label":1401},"🫠 Early Supporter Program","$docs-project-support"," - help us to build the best product possible securing the most advanced features for the best price",[19,1405,1406],{},"Here’s how you can configure it:",[139,1408,1410],{"tabs":1409},"nuxt.config.ts",[144,1411,1414],{"className":1412,"code":1413,"language":149,"meta":150},[147],"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",[127,1415,1413],{"__ignoreMap":150},[19,1417,1418,1419,1422,1423,275],{},"To try our API please ",[90,1420,1421],{},"$mailto-vue-house",". ",[23,1424,1425],{},"It's free",[19,1427,1428,1429,161,1432,275],{},"Remote ",[23,1430,1431],{},"API operates with a dedicated",[90,1433,1436],{"label":1434,"hash":1435},"DocLayer AI Kit","ai-kit","$docs-search-usage",{"title":150,"searchDepth":724,"depth":724,"links":1438},[],"section-remote-model-callout","C3AapTL9Uu5tqauRWl5GqZc8aOld3-yEvscN9Dwfp2M",{"id":1442,"data":6,"extension":733,"meta":1443,"stem":1457,"__hash__":1458},"shared\u002Fsection-slots-ui-description.md",{"body":1444},{"type":8,"value":1445,"toc":1455},[1446],[19,1447,1448,1449,1451,1452,275],{},"Dedicated slot for defining the component’s ",[127,1450,1362],{}," object. More about styling MDC components ",[90,1453,1454],{"label":353},"$docs-components-building",{"title":150,"searchDepth":724,"depth":724,"links":1456},[],"section-slots-ui-description","HFR6PT0KFzSBW9WnqIk5KdPqHjGTTl3za3mklYIIYUY",{"id":1460,"data":6,"extension":733,"meta":1461,"stem":1483,"__hash__":1484},"shared\u002Fsection-styling-css-classes-intro.md",{"body":1462},{"type":8,"value":1463,"toc":1481},[1464],[19,1465,1466,1467,1471,1472,1476,1477,1480],{},"Below are the CSS utility classes used by the ",[127,1468,1469],{},[1164,1470],{"value":1314}," component. They make use of the ",[271,1473,1475],{"href":1474},"#css-variables","CSS variables"," described above and ",[271,1478,1479],{"href":1345},"define the default styling"," for the component's markup elements.",{"title":150,"searchDepth":724,"depth":724,"links":1482},[],"section-styling-css-classes-intro","VRtlxQ59m9iNVrWHp9r1OAy2lkklqQPtKbRIkwVCY6A",{"id":1486,"data":6,"extension":733,"meta":1487,"stem":1508,"__hash__":1509},"shared\u002Fsection-styling-css-variables-intro.md",{"body":1488},{"type":8,"value":1489,"toc":1506},[1490],[19,1491,1492,1493,1496,1497,1501,1502,275],{},"Here is a set of CSS variables you can ",[23,1494,1495],{},"use to customize the appearance"," of the ",[127,1498,1499],{},[1164,1500],{"value":1314}," component globally. More about theming and styling with CSS variables, ",[90,1503,1505],{"hash":1504,"label":353},"css-variables","$docs-guidelines-theming",{"title":150,"searchDepth":724,"depth":724,"links":1507},[],"section-styling-css-variables-intro","Vk6yVXoMwLNtqisCZhk9m2F3-wHKjiujWtBBZbTJcD4",{"id":1511,"data":6,"extension":733,"meta":1512,"stem":1539,"__hash__":1540},"shared\u002Fsection-styling-intro.md",{"body":1513},{"type":8,"value":1514,"toc":1537},[1515,1528],[49,1516,1518],{"title":1517,"type":52},"Styling from Markdown",[19,1519,1520,1521,1524,1525,275],{},"Every DocLayer component ",[23,1522,1523],{},"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 ",[90,1526,1454],{"hash":1527,"label":353},"styling-inside-the-markdown-files",[19,1529,1530,1531],{},"Below you'll find the default set of Tailwind classes for the component's dedicated markup elements. ",[1158,1532,1533],{},[1164,1534],{"defaultValue":1535,"value":1536},"undefined","$doc.extend",{"title":150,"searchDepth":724,"depth":724,"links":1538},[],"section-styling-intro","8V_zEj7QXax6dzKp918ZNy97d9u4qk6TaE40wI5JWEs",{"id":1542,"data":6,"extension":733,"meta":1543,"stem":1583,"__hash__":1584},"shared\u002Fsection-utility-exports-disclaimer.md",{"body":1544},{"type":8,"value":1545,"toc":1581},[1546],[49,1547,1548,1555,1574],{"title":343,"type":52},[19,1549,1550,1551,1554],{},"This utility is ",[23,1552,1553],{},"exported from the module"," package.",[139,1556,1559,1565],{"dynamic":1557,"tabs":1558},"utilityName","file.ts",[144,1560,1563],{"className":1561,"code":1562,"language":149,"meta":150},[147],"import { :dl-dynamic: } from '@vuehouse\u002Fdl\u002Fexports';\n\"cref:zseli7\"\n",[127,1564,1562],{"__ignoreMap":150},[384,1566,1567],{"v-slot:props":150},[19,1568,1569,1570,1573],{},"{\"dynamic\": \"",[1164,1571],{"value":1572},"$doc.utilityName","\" }",[19,1575,1576,1577,1580],{},"You can use it this way ",[23,1578,1579],{},"when the global context is not available"," and utility can't be loaded automatically by Nuxt.",{"title":150,"searchDepth":724,"depth":724,"links":1582},[],"section-utility-exports-disclaimer","FXCXHiiD49oOkbSwsKFpp4m0gsXkZdnUwCwWnVjwucI",{"id":1586,"data":6,"extension":733,"meta":1587,"stem":1611,"__hash__":1612},"shared\u002Ftooltip-app-config-path.md",{"body":1588},{"type":8,"value":1589,"toc":1609},[1590],[1591,1592,1595],"dl-tooltip",{"label":1593,"tooltip":1594},"`app.config.ts`","In-app file path: app\u002Fapp.config.ts",[384,1596,1597],{"v-slot:props":150},[19,1598,1599,1600,1604,1605,1608],{},"{\"tooltip\": \"In-app file path: ",[1164,1601],{"defaultValue":1602,"value":1603},"app\u002Fapp.config.ts","$doc.tooltip","\", \"label\": \"",[1164,1606],{"defaultValue":1593,"value":1607},"$doc.label","\"}",{"title":150,"searchDepth":724,"depth":724,"links":1610},[],"tooltip-app-config-path","WVDQKyALt7paYD6Tr7K10fmQ27d2XjzO_oxDKHCgSdc",{"id":1614,"data":6,"extension":733,"meta":1615,"stem":1624,"__hash__":1625},"shared\u002Ftooltip-rag.md",{"body":1616},{"type":8,"value":1617,"toc":1622},[1618],[1591,1619],{"label":1620,"lock-width":45,"tooltip":1621},"**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":150,"searchDepth":724,"depth":724,"links":1623},[],"tooltip-rag","fDKuZzfT8d6JNox0uI1P0_ktG8kYWiz7WGsWWo7gTGs",[1627,1628,1630,1631],{"title":932,"path":933,"stem":934,"description":935,"label":936,"children":-1},{"title":939,"path":1629,"stem":740,"children":-1,"description":6,"label":736,"icon":960},"\u002Fdocs\u002Fadapters\u002F.navigation",{"title":943,"path":944,"stem":945,"description":946,"children":-1},{"title":78,"path":948,"stem":949,"description":950,"label":78,"badge":1632,"children":-1},{"label":841,"glow":842},1795796070773]