[{"data":1,"prerenderedAt":488},["ShallowReactive",2],{"\u002Fdocs\u002Futils":3,"dl-navigation-docs":141,"surroundings-\u002Fdocs\u002Futils":482},{"id":4,"title":5,"_llmSection":6,"_local":6,"_schemaOrg":6,"_seo":6,"body":7,"description":131,"extension":132,"ignore":6,"meta":133,"navigation":134,"path":136,"seo":137,"sitemap":138,"stem":139,"__hash__":140},"docs\u002Fdocs\u002F04.utils\u002F01.index.md","Utilities Introduction",null,{"type":8,"value":9,"toc":127},"minimark",[10,23,34,37,53],[11,12,13,14,18,19,22],"p",{},"We did our best to deliver a ",[15,16,17],"strong",{},"Markdown-only experience",", so you won’t have to write any additional code. All ",[15,20,21],{},"pre-built internals and utilities are here to help you"," create the most engaging content with minimal effort. We believe this will be your typical workflow in most cases.",[11,24,25,26,29,30,33],{},"However, there may be situations where ",[15,27,28],{},"you need to build something more"," - new components, pages, or utilities. That's where our tools come in. While building DocLayer, ",[15,31,32],{},"we developed a collection of useful, reusable code"," that helped shape it into what it is today, and we want to share these with you. You may find them helpful when building your own custom solutions.",[35,36],"hr",{},[11,38,39,40,43,44,52],{},"Below is a ",[15,41,42],{},"short list of what's available",". Before starting to build anything new, please check if our utilities already provide what you need. If you don't find something that fits your requirements, feel free to ",[15,45,46,51],{},[47,48,50],"dl-link",{"label":49},"add a feature request","$dl-repo-issues"," so we can consider adding it"," to the set. 🙏 Thank you!",[54,55,56,69],"table",{},[57,58,59],"thead",{},[60,61,62,66],"tr",{},[63,64,65],"th",{},"Type",[63,67,68],{},"Description",[70,71,72,87,101,114],"tbody",{},[60,73,74,81],{},[75,76,77],"td",{},[47,78,80],{"label":79},"Utilities","$docs-utils-utilities",[75,82,83],{},[11,84,86],{"style":85},"min-width: 30rem","General-purpose utilities for various tasks.",[60,88,89,95],{},[75,90,91],{},[47,92,94],{"label":93},"Composables","$docs-utils-composables",[75,96,97],{},[11,98,100],{"style":99},"min-width: 25rem","Reusable Vue composables for common patterns.",[60,102,103,109],{},[75,104,105],{},[47,106,108],{"label":107},"Macros","$docs-utils-macros",[75,110,111],{},[11,112,113],{"style":99},"Macros for best developer experience.",[60,115,116,122],{},[75,117,118],{},[47,119,121],{"label":120},"Types","$docs-utils-types",[75,123,124],{},[11,125,126],{"style":99},"TypeScript type utilities for safer, easier development.",{"title":128,"searchDepth":129,"depth":129,"links":130},"",2,[],"Helpers, composables, macros, and types for extending DocLayer beyond Markdown","md",{},{"label":135},"Introduction","\u002Fdocs\u002Futils",{"title":5,"description":131},{"loc":136},"docs\u002F04.utils\u002F01.index","K5PdTPaqY5vdhd4GiLSNN3TF8bUwiOusaS-IFpcQPxw",[142],{"title":143,"path":144,"stem":145,"children":146,"page":196},"Docs","\u002Fdocs","docs",[147,165,197,309,330,361,384,399,441,462],{"title":148,"path":149,"stem":150,"children":151,"description":6,"icon":164},"Getting Started","\u002Fdocs\u002Fgetting-started","docs\u002F01.getting-started\u002F01.index",[152,154,159],{"title":135,"path":149,"stem":150,"description":153},"What DocLayer is, who it’s for, and how it can help",{"title":155,"path":156,"stem":157,"description":158},"Installation","\u002Fdocs\u002Fgetting-started\u002Finstallation","docs\u002F01.getting-started\u002F02.installation","How to install and run DocLayer",{"title":160,"path":161,"stem":162,"description":163},"FAQ","\u002Fdocs\u002Fgetting-started\u002Ffaq","docs\u002F01.getting-started\u002F03.faq","Frequently asked questions about DocLayer","rocket",{"title":166,"description":6,"icon":167,"path":168,"stem":169,"children":170,"page":196},"Guidelines","file-pen-line","\u002Fdocs\u002Fguidelines","docs\u002F02.guidelines",[171,176,181,186,191],{"title":172,"path":173,"stem":174,"description":175},"Internals","\u002Fdocs\u002Fguidelines\u002Finternals","docs\u002F02.guidelines\u002F02.internals","How DocLayer's structure, its architecture and internals fit together",{"title":177,"path":178,"stem":179,"description":180},"Configuration","\u002Fdocs\u002Fguidelines\u002Fconfiguration","docs\u002F02.guidelines\u002F03.configuration","Customize DocLayer via `app.config.ts` and its configuration",{"title":182,"path":183,"stem":184,"description":185},"Writing Content","\u002Fdocs\u002Fguidelines\u002Fwriting-content","docs\u002F02.guidelines\u002F04.writing-content","Write Markdown with Nuxt Content, DocLayer and prebuilt utilities",{"title":187,"path":188,"stem":189,"description":190},"Defining Metadata","\u002Fdocs\u002Fguidelines\u002Fdefining-metadata","docs\u002F02.guidelines\u002F05.defining-metadata","Set global and per-page SEO metadata for your DocLayer app",{"title":192,"path":193,"stem":194,"description":195},"Theming","\u002Fdocs\u002Fguidelines\u002Ftheming","docs\u002F02.guidelines\u002F06.theming","Customize DocLayer’s look with CSS variables and utility classes",false,{"title":198,"path":199,"stem":200,"children":201,"description":6,"label":135,"icon":308},"Components","\u002Fdocs\u002Fcomponents","docs\u002F03.components\u002F01.index",[202,205,211,216,221,226,231,236,242,247,252,257,262,267,273,278,283,288,293,298,303],{"title":203,"path":199,"stem":200,"description":204,"label":135},"Components Introduction","Overview of DocLayer’s built-in Markdown content components",{"title":206,"path":207,"stem":208,"description":209,"label":210},"Components Building & Styling","\u002Fdocs\u002Fcomponents\u002Fbuilding","docs\u002F03.components\u002F02.building","Create custom content components with DlWrapper","DlWrapper",{"title":212,"path":213,"stem":214,"description":215},"DlRenderer","\u002Fdocs\u002Fcomponents\u002Frenderer","docs\u002F03.components\u002F03.renderer","Render reusable, shareable Markdown fragments anywhere in your content",{"title":217,"path":218,"stem":219,"description":220},"DlLink","\u002Fdocs\u002Fcomponents\u002Flink","docs\u002F03.components\u002F04.link","Create internal links resolved from the global path registry",{"title":222,"path":223,"stem":224,"description":225},"DlCode","\u002Fdocs\u002Fcomponents\u002Fcode","docs\u002F03.components\u002F05.code","Display your code snippets with syntax highlighting, copy, tabs, transformations and more",{"title":227,"path":228,"stem":229,"description":230},"DlCodeInline","\u002Fdocs\u002Fcomponents\u002Finline-code","docs\u002F03.components\u002F05.inline-code","Display inline code that stays on one line",{"title":232,"path":233,"stem":234,"description":235},"DlCallout","\u002Fdocs\u002Fcomponents\u002Fcallout","docs\u002F03.components\u002F06.callout","Display notes, warnings, and alerts as type-based callout blocks",{"title":227,"path":237,"stem":238,"description":230,"badge":239},"\u002Fdocs\u002Fcomponents\u002Fcode-inline","docs\u002F03.components\u002F06.code-inline",{"label":240,"glow":241},"new",true,{"title":243,"path":244,"stem":245,"description":246},"DlBadge","\u002Fdocs\u002Fcomponents\u002Fbadge","docs\u002F03.components\u002F07.badge","Show compact type-based status labels",{"title":248,"path":249,"stem":250,"description":251},"DlImage","\u002Fdocs\u002Fcomponents\u002Fimage","docs\u002F03.components\u002F08.image","Present optimized, responsive images with optional caption and inline styling",{"title":253,"path":254,"stem":255,"description":256},"DlStepper","\u002Fdocs\u002Fcomponents\u002Fstepper","docs\u002F03.components\u002F09.stepper","List vertical step sequences using named slots",{"title":258,"path":259,"stem":260,"description":261},"DlTooltip","\u002Fdocs\u002Fcomponents\u002Ftooltip","docs\u002F03.components\u002F10.tooltip","Annotate with contextual configurable tooltips",{"title":263,"path":264,"stem":265,"description":266},"DlPrompter","\u002Fdocs\u002Fcomponents\u002Fprompter","docs\u002F03.components\u002F11.prompter","Prompt the search index and AI Assistant with hidden, removable content inserts",{"title":268,"path":269,"stem":270,"description":271,"badge":272},"DlFormat","\u002Fdocs\u002Fcomponents\u002Fformat","docs\u002F03.components\u002F12.format","Format Markdown content into a structured HTML output",{"label":240,"glow":241},{"title":274,"path":275,"stem":276,"description":277},"DlSection","\u002Fdocs\u002Fcomponents\u002Fsection","docs\u002F03.components\u002F13.section","Wrap and demarcate content sections",{"title":279,"path":280,"stem":281,"description":282},"DlGrid","\u002Fdocs\u002Fcomponents\u002Fgrid","docs\u002F03.components\u002F14.grid","Lay out named content items in a responsive grid",{"title":284,"path":285,"stem":286,"description":287},"DlHero","\u002Fdocs\u002Fcomponents\u002Fhero","docs\u002F03.components\u002F20.hero","Present a prominent page hero with title, lead and CTA",{"title":289,"path":290,"stem":291,"description":292},"DlHeading","\u002Fdocs\u002Fcomponents\u002Fheading","docs\u002F03.components\u002F21.heading","Divide content with section headings",{"title":294,"path":295,"stem":296,"description":297},"DlFeaturesGrid","\u002Fdocs\u002Fcomponents\u002Ffeatures-grid","docs\u002F03.components\u002F22.features-grid","Render a responsive features grid with animated and formatted tiles",{"title":299,"path":300,"stem":301,"description":302},"DlNewsletter","\u002Fdocs\u002Fcomponents\u002Fnewsletter","docs\u002F03.components\u002F23.newsletter","Collect newsletter subscriptions with a styled form",{"title":304,"path":305,"stem":306,"description":307},"DlTypeman","\u002Fdocs\u002Fcomponents\u002Ftypeman","docs\u002F03.components\u002F24.typeman","Animate rotating words with a blinking cursor effect","brick-wall",{"title":79,"path":136,"stem":139,"children":310,"description":6,"label":135,"icon":329},[311,312,316,320,324],{"title":5,"path":136,"stem":139,"description":131,"label":135},{"title":79,"path":313,"stem":314,"description":315},"\u002Fdocs\u002Futils\u002Futilities","docs\u002F04.utils\u002F02.utilities","Auto-imported helper functions for common tasks across DocLayer",{"title":93,"path":317,"stem":318,"description":319},"\u002Fdocs\u002Futils\u002Fcomposables","docs\u002F04.utils\u002F03.composables","Vue composables for collections, UI resolution, navigation, and content",{"title":107,"path":321,"stem":322,"description":323},"\u002Fdocs\u002Futils\u002Fmacros","docs\u002F04.utils\u002F04.macros","Compile-time macros for typed app config, adapters, and component UI",{"title":325,"path":326,"stem":327,"description":328,"label":120},"Utility Types","\u002Fdocs\u002Futils\u002Ftypes","docs\u002F04.utils\u002F05.types","TypeScript utilities for safer DocLayer development","tool-case",{"title":331,"path":332,"stem":333,"children":334,"description":6,"label":338,"icon":360},"Adapters","\u002Fdocs\u002Fadapters","docs\u002F05.adapters\u002F01.index",[335,339,344,350,355],{"title":336,"path":332,"stem":333,"description":337,"label":338},"Building Adapters","Build type-safe adapters to plug external services into DocLayer","Building",{"title":340,"path":341,"stem":342,"description":343},"Google","\u002Fdocs\u002Fadapters\u002Fgoogle","docs\u002F05.adapters\u002F10.google","Connect DocLayer to Google products through built-in adapters",{"title":345,"path":346,"stem":347,"description":348,"label":345,"badge":349},"PostHog","\u002Fdocs\u002Fadapters\u002Fposthog","docs\u002F05.adapters\u002F11.posthog","Record product analytics with the PostHog analytics adapter",{"label":240,"glow":241},{"title":351,"path":352,"stem":353,"description":354},"Resend","\u002Fdocs\u002Fadapters\u002Fresend","docs\u002F05.adapters\u002F20.resend","Send newsletter emails with the Resend newsletter adapter",{"title":356,"path":357,"stem":358,"description":359},"Substack","\u002Fdocs\u002Fadapters\u002Fsubstack","docs\u002F05.adapters\u002F21.substack","Subscribe users to Substack via DocLayer’s adapter","circle-fading-plus",{"title":362,"path":363,"stem":364,"children":365,"description":6,"label":135,"icon":383},"Search ✨","\u002Fdocs\u002Fsearch","docs\u002F06.search\u002F01.index",[366,369,374,378],{"title":367,"path":363,"stem":364,"description":368,"label":135},"Search Module Introduction","Brief intro into built-in DocLayer’s Search Module",{"title":370,"path":371,"stem":372,"description":373},"Installation & Usage","\u002Fdocs\u002Fsearch\u002Fusage","docs\u002F06.search\u002F02.usage","Wire DocLayer’s Search Module into your app",{"title":177,"path":375,"stem":376,"description":377},"\u002Fdocs\u002Fsearch\u002Fconfiguration","docs\u002F06.search\u002F03.configuration","Configure static search, indexing, and the AI assistant in DocLayer's Search Module",{"title":379,"path":380,"stem":381,"description":382},"API Reference","\u002Fdocs\u002Fsearch\u002Freference","docs\u002F06.search\u002F04.reference","API reference for DocLayer’s Search Module","scan-search",{"title":385,"path":386,"stem":387,"children":388,"description":6,"icon":398},"Deployment","\u002Fdocs\u002Fdeployment","docs\u002F07.deployment\u002F01.index",[389,392],{"title":390,"path":386,"stem":387,"description":391},"Building & Preparations","Build a static DocLayer app and prepare it for hosting",{"title":393,"path":394,"stem":395,"description":396,"label":397},"Vercel Deployment","\u002Fdocs\u002Fdeployment\u002Fvercel","docs\u002F07.deployment\u002F02.vercel","Deploy DocLayer to Vercel via UI, CLI, or CI","Vercel","server-crash",{"title":400,"description":6,"icon":401,"path":402,"stem":403,"children":404,"page":196},"Advanced","file-terminal","\u002Fdocs\u002Fadvanced","docs\u002F09.advanced",[405,411,416,421,426,431,436],{"title":406,"path":407,"stem":408,"description":409,"label":410},"DocLayer Monorepo","\u002Fdocs\u002Fadvanced\u002Fmonorepo","docs\u002F09.advanced\u002F02.monorepo","pnpm workspaces, Turborepo, and workflows for the DocLayer monorepo","Monorepo",{"title":412,"path":413,"stem":414,"description":415},"Globals","\u002Fdocs\u002Fadvanced\u002Fglobals","docs\u002F09.advanced\u002F03.globals","DocLayer’s global instances for easy and quick access",{"title":417,"path":418,"stem":419,"description":420},"CLI","\u002Fdocs\u002Fadvanced\u002Fcli","docs\u002F09.advanced\u002F04.cli","Use Command Line Interface to extensively menage your DocLayer project",{"title":422,"path":423,"stem":424,"description":425},"Security","\u002Fdocs\u002Fadvanced\u002Fsecurity","docs\u002F09.advanced\u002F05.security","Security defaults DocLayer ships with Nuxt Security",{"title":427,"path":428,"stem":429,"description":430},"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":432,"path":433,"stem":434,"description":435},"Error Handling","\u002Fdocs\u002Fadvanced\u002Ferror-handling","docs\u002F09.advanced\u002F07.error-handling","How DocLayer validates and reports errors in authoring, build, and production",{"title":437,"path":438,"stem":439,"description":440},"Troubleshooting","\u002Fdocs\u002Fadvanced\u002Ftroubleshooting","docs\u002F09.advanced\u002F08.troubleshooting","Known DocLayer issues and quick fixes",{"title":442,"description":6,"icon":443,"path":444,"stem":445,"children":446,"page":196},"Project","shield-ellipsis","\u002Fdocs\u002Fproject","docs\u002F10.project",[447,452,457],{"title":448,"path":449,"stem":450,"description":451},"Contribution","\u002Fdocs\u002Fproject\u002Fcontribution","docs\u002F10.project\u002F01.contribution","How to report issues and when contributions are welcome",{"title":453,"path":454,"stem":455,"description":456},"Principles","\u002Fdocs\u002Fproject\u002Fethos","docs\u002F10.project\u002F02.ethos","Who we are, what we care about, and how we treat each other",{"title":458,"path":459,"stem":460,"description":461},"Support","\u002Fdocs\u002Fproject\u002Fsupport","docs\u002F10.project\u002F03.support","Join the Early Supporter Program and help fund DocLayer’s development",{"title":379,"description":6,"icon":463,"path":464,"stem":465,"children":466,"page":196},"file-type","\u002Fdocs\u002Freference","docs\u002F99.reference",[467,472,477],{"title":468,"path":469,"stem":470,"description":471},"App Config","\u002Fdocs\u002Freference\u002Fapp-config","docs\u002F99.reference\u002F01.app-config","API Reference for DocLayer’s AppConfig",{"title":473,"path":474,"stem":475,"description":476},"Module Options","\u002Fdocs\u002Freference\u002Fmodule-options","docs\u002F99.reference\u002F01.module-options","API Reference for DocLayer’s ModuleOptions",{"title":478,"path":479,"stem":480,"description":481},"Content Schema","\u002Fdocs\u002Freference\u002Fcontent-schema","docs\u002F99.reference\u002F02.content-schema","API Reference for DocLayer’s Content Schema",[483,484,486,487],{"title":304,"path":305,"stem":306,"description":307,"children":-1},{"title":79,"path":485,"stem":139,"children":-1,"description":6,"label":135,"icon":329},"\u002Fdocs\u002Futils\u002F.navigation",{"title":79,"path":313,"stem":314,"description":315,"children":-1},{"title":93,"path":317,"stem":318,"description":319,"children":-1},1795796067962]