[{"data":1,"prerenderedAt":629},["ShallowReactive",2],{"navigation":3,"/docs/utils/query-collection-search-sections":179,"Y4Xv8pJ1rD":616},[4,24,43,61,83,101,119,149],{"title":5,"path":6,"stem":7,"children":8,"icon":23},"Getting Started","/docs/getting-started","docs/1.getting-started/1.index",[9,11,15,19],{"title":10,"path":6,"stem":7},"Introduction",{"title":12,"path":13,"stem":14},"Installation","/docs/getting-started/installation","docs/1.getting-started/2.installation",{"title":16,"path":17,"stem":18},"Configuration","/docs/getting-started/configuration","docs/1.getting-started/3.configuration",{"title":20,"path":21,"stem":22},"Migration","/docs/getting-started/migration","docs/1.getting-started/4.migration","i-lucide-square-play",{"title":25,"icon":26,"path":27,"stem":28,"children":29,"page":42},"Collections","i-lucide-database","/docs/collections","docs/2.collections",[30,34,38],{"title":31,"path":32,"stem":33},"Define","/docs/collections/define","docs/2.collections/1.define",{"title":35,"path":36,"stem":37},"Types","/docs/collections/types","docs/2.collections/2.types",{"title":39,"path":40,"stem":41},"Sources","/docs/collections/sources","docs/2.collections/3.sources",false,{"title":44,"icon":45,"path":46,"stem":47,"children":48,"page":42},"Files","i-lucide-file","/docs/files","docs/3.files",[49,53,57],{"title":50,"path":51,"stem":52},"Markdown","/docs/files/markdown","docs/3.files/1.markdown",{"title":54,"path":55,"stem":56},"YAML","/docs/files/yaml","docs/3.files/2.yaml",{"title":58,"path":59,"stem":60},"JSON","/docs/files/json","docs/3.files/3.json",{"title":62,"icon":63,"path":64,"stem":65,"children":66,"page":42},"Vue Utils","i-lucide-square-function","/docs/utils","docs/4.utils",[67,71,75,79],{"title":68,"path":69,"stem":70},"queryCollection","/docs/utils/query-collection","docs/4.utils/1.query-collection",{"title":72,"path":73,"stem":74},"queryCollectionNavigation","/docs/utils/query-collection-navigation","docs/4.utils/2.query-collection-navigation",{"title":76,"path":77,"stem":78},"queryCollectionItemSurroundings","/docs/utils/query-collection-item-surroundings","docs/4.utils/3.query-collection-item-surroundings",{"title":80,"path":81,"stem":82},"queryCollectionSearchSections","/docs/utils/query-collection-search-sections","docs/4.utils/4.query-collection-search-sections",{"title":84,"icon":85,"path":86,"stem":87,"children":88,"page":42},"Components","i-lucide-square-code","/docs/components","docs/5.components",[89,93,97],{"title":90,"path":91,"stem":92},"ContentRenderer","/docs/components/content-renderer","docs/5.components/0.content-renderer",{"title":94,"path":95,"stem":96},"Slot","/docs/components/slot","docs/5.components/1.slot",{"title":98,"path":99,"stem":100},"Prose Components","/docs/components/prose","docs/5.components/2.prose",{"title":102,"icon":103,"path":104,"stem":105,"children":106,"page":42},"Deploy","i-lucide-cloud-upload","/docs/deploy","docs/6.deploy",[107,111,115],{"title":108,"path":109,"stem":110},"Server","/docs/deploy/server","docs/6.deploy/1.server",{"title":112,"path":113,"stem":114},"Serverless","/docs/deploy/serverless","docs/6.deploy/2.serverless",{"title":116,"path":117,"stem":118},"Static","/docs/deploy/static","docs/6.deploy/3.static",{"title":120,"icon":121,"path":122,"stem":123,"children":124,"page":42},"Advanced","i-lucide-code-xml","/docs/advanced","docs/7.advanced",[125,129,133,137,141,145],{"title":126,"path":127,"stem":128},"Full-Text Search","/docs/advanced/fulltext-search","docs/7.advanced/1.fulltext-search",{"title":130,"path":131,"stem":132},"Raw Content","/docs/advanced/raw-content","docs/7.advanced/2.raw-content",{"title":134,"path":135,"stem":136},"SQL Storage","/docs/advanced/database","docs/7.advanced/3.database",{"title":138,"path":139,"stem":140},"Debugging tools","/docs/advanced/tools","docs/7.advanced/4.tools",{"title":142,"path":143,"stem":144},"Hooks","/docs/advanced/hooks","docs/7.advanced/5.hooks",{"title":146,"path":147,"stem":148},"Custom Source","/docs/advanced/custom-source","docs/7.advanced/6.custom-source",{"title":150,"icon":151,"path":152,"stem":153,"children":154,"page":42},"Studio","i-lucide-monitor","/docs/studio","docs/8.studio",[155,159,163,167,171,175],{"title":156,"path":157,"stem":158},"Setup","/docs/studio/setup","docs/8.studio/1.setup",{"title":160,"path":161,"stem":162},"Synchronization","/docs/studio/github","docs/8.studio/2.github",{"title":164,"path":165,"stem":166},"Content editors","/docs/studio/content","docs/8.studio/3.content",{"title":168,"path":169,"stem":170},"Medias","/docs/studio/medias","docs/8.studio/4.medias",{"title":172,"path":173,"stem":174},"App Config","/docs/studio/config","docs/8.studio/5.config",{"title":176,"path":177,"stem":178},"Local Debug","/docs/studio/debug","docs/8.studio/6.debug",{"page":180,"surround":611},{"id":181,"title":80,"body":182,"description":605,"extension":606,"links":607,"meta":608,"navigation":609,"path":81,"seo":610,"stem":82},"docs/docs/4.utils/4.query-collection-search-sections.md",{"type":183,"value":184,"toc":597},"minimal",[185,190,274,278,285,390,394,401,404,471,475,481,593],[186,187,189],"h2",{"id":188},"type","Type",[191,192,197],"pre",{"className":193,"code":194,"language":195,"meta":196,"style":196},"language-ts shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","function queryCollectionSearchSections(collection: keyof Collections, opts?: { ignoredTags: string[] }): Promise\u003CSection[]>\n","ts","",[198,199,200],"code",{"__ignoreMap":196},[201,202,205,209,213,217,221,224,227,231,234,237,240,243,247,249,252,256,259,262,265,268,271],"span",{"class":203,"line":204},"line",1,[201,206,208],{"class":207},"s50WR","function",[201,210,212],{"class":211},"swgpB"," queryCollectionSearchSections",[201,214,216],{"class":215},"s86vT","(",[201,218,220],{"class":219},"sK9QF","collection",[201,222,223],{"class":215},":",[201,225,226],{"class":215}," keyof",[201,228,230],{"class":229},"sYGMc"," Collections",[201,232,233],{"class":215},",",[201,235,236],{"class":219}," opts",[201,238,239],{"class":215},"?:",[201,241,242],{"class":215}," {",[201,244,246],{"class":245},"sd2Uz"," ignoredTags",[201,248,223],{"class":215},[201,250,251],{"class":229}," string",[201,253,255],{"class":254},"sndM8","[] ",[201,257,258],{"class":215},"}):",[201,260,261],{"class":229}," Promise",[201,263,264],{"class":215},"\u003C",[201,266,267],{"class":229},"Section",[201,269,270],{"class":254},"[]",[201,272,273],{"class":215},">\n",[186,275,277],{"id":276},"usage","Usage",[279,280,281,282,284],"p",{},"Use the auto-imported ",[198,283,80],{}," to generate searchable sections from a specific collection. This is particularly useful for creating advanced search functionality or content discovery features in your application.",[191,286,291],{"className":287,"code":288,"filename":289,"language":290,"meta":196,"style":196},"language-vue shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","\u003Cscript>\nconst { data: sections } = await useAsyncData('search-sections', () => {\n  return queryCollectionSearchSections('docs')\n})\n\u003C/script>\n","app.vue","vue",[198,292,293,302,353,373,380],{"__ignoreMap":196},[201,294,295,297,300],{"class":203,"line":204},[201,296,264],{"class":215},[201,298,299],{"class":245},"script",[201,301,273],{"class":215},[201,303,305,308,310,313,315,318,321,324,328,331,333,336,340,342,344,347,350],{"class":203,"line":304},2,[201,306,307],{"class":207},"const",[201,309,242],{"class":215},[201,311,312],{"class":245}," data",[201,314,223],{"class":215},[201,316,317],{"class":254}," sections ",[201,319,320],{"class":215},"}",[201,322,323],{"class":215}," =",[201,325,327],{"class":326},"s8pZq"," await",[201,329,330],{"class":211}," useAsyncData",[201,332,216],{"class":254},[201,334,335],{"class":215},"'",[201,337,339],{"class":338},"sIEYB","search-sections",[201,341,335],{"class":215},[201,343,233],{"class":215},[201,345,346],{"class":215}," ()",[201,348,349],{"class":207}," =>",[201,351,352],{"class":215}," {\n",[201,354,356,359,361,363,365,368,370],{"class":203,"line":355},3,[201,357,358],{"class":326},"  return",[201,360,212],{"class":211},[201,362,216],{"class":245},[201,364,335],{"class":215},[201,366,367],{"class":338},"docs",[201,369,335],{"class":215},[201,371,372],{"class":245},")\n",[201,374,376,378],{"class":203,"line":375},4,[201,377,320],{"class":215},[201,379,372],{"class":254},[201,381,383,386,388],{"class":203,"line":382},5,[201,384,385],{"class":215},"\u003C/",[201,387,299],{"class":245},[201,389,273],{"class":215},[186,391,393],{"id":392},"api","API",[395,396,398],"h3",{"id":397},"querycollectionsearchsectionscollection-collectionname-options-searchsectionsoptions",[198,399,400],{},"queryCollectionSearchSections(collection: CollectionName, options?: SearchSectionsOptions)",[279,402,403],{},"Generate searchable sections from the specified collection.",[405,406,407,436],"ul",{},[408,409,410,411],"li",{},"Parameters:\n",[405,412,413,422],{},[408,414,415,417,418,421],{},[198,416,220],{},": The key of the defined collection in ",[198,419,420],{},"content.config.ts",".",[408,423,424,427,428],{},[198,425,426],{},"options",": (Optional) An object with the following properties:\n",[405,429,430],{},[408,431,432,435],{},[198,433,434],{},"ignoredTags",": An array of tag names to ignore when generating sections. Default is an empty array.",[408,437,438,439],{},"Returns: A Promise that resolves to an array of searchable sections. Each section is an object with the following properties:\n",[405,440,441,447,453,459,465],{},[408,442,443,446],{},[198,444,445],{},"id",": A unique identifier for the section.",[408,448,449,452],{},[198,450,451],{},"title",": The title of the section (usually the heading text).",[408,454,455,458],{},[198,456,457],{},"titles",": An array of parent section titles, representing the hierarchy.",[408,460,461,464],{},[198,462,463],{},"content",": The textual content of the section.",[408,466,467,470],{},[198,468,469],{},"level",": The heading level (1-6) of the section, where 1 is the highest level.",[186,472,474],{"id":473},"example","Example",[279,476,477,478,480],{},"Here's an example of how to use ",[198,479,80],{}," to create searchable sections from the 'docs' collection:",[191,482,485],{"className":287,"code":483,"filename":484,"language":290,"meta":196,"style":196},"\u003Cscript>\nconst { data: surround } = await useAsyncData('foo-surround', () => {\n  return queryCollectionSearchSections('docs', {\n    ignoredTags: ['code']\n  })\n})\n\u003C/script>\n","pages/[...slug].vue",[198,486,487,495,533,551,570,577,584],{"__ignoreMap":196},[201,488,489,491,493],{"class":203,"line":204},[201,490,264],{"class":215},[201,492,299],{"class":245},[201,494,273],{"class":215},[201,496,497,499,501,503,505,508,510,512,514,516,518,520,523,525,527,529,531],{"class":203,"line":304},[201,498,307],{"class":207},[201,500,242],{"class":215},[201,502,312],{"class":245},[201,504,223],{"class":215},[201,506,507],{"class":254}," surround ",[201,509,320],{"class":215},[201,511,323],{"class":215},[201,513,327],{"class":326},[201,515,330],{"class":211},[201,517,216],{"class":254},[201,519,335],{"class":215},[201,521,522],{"class":338},"foo-surround",[201,524,335],{"class":215},[201,526,233],{"class":215},[201,528,346],{"class":215},[201,530,349],{"class":207},[201,532,352],{"class":215},[201,534,535,537,539,541,543,545,547,549],{"class":203,"line":355},[201,536,358],{"class":326},[201,538,212],{"class":211},[201,540,216],{"class":245},[201,542,335],{"class":215},[201,544,367],{"class":338},[201,546,335],{"class":215},[201,548,233],{"class":215},[201,550,352],{"class":215},[201,552,553,556,558,561,563,565,567],{"class":203,"line":375},[201,554,555],{"class":245},"    ignoredTags",[201,557,223],{"class":215},[201,559,560],{"class":245}," [",[201,562,335],{"class":215},[201,564,198],{"class":338},[201,566,335],{"class":215},[201,568,569],{"class":245},"]\n",[201,571,572,575],{"class":203,"line":382},[201,573,574],{"class":215},"  }",[201,576,372],{"class":245},[201,578,580,582],{"class":203,"line":579},6,[201,581,320],{"class":215},[201,583,372],{"class":254},[201,585,587,589,591],{"class":203,"line":586},7,[201,588,385],{"class":215},[201,590,299],{"class":245},[201,592,273],{"class":215},[594,595,596],"style",{},"html pre.shiki code .s50WR, html code.shiki .s50WR{--shiki-light:#9C3EDA;--shiki-default:#C792EA;--shiki-dark:#C792EA}html pre.shiki code .swgpB, html code.shiki .swgpB{--shiki-light:#6182B8;--shiki-default:#82AAFF;--shiki-dark:#82AAFF}html pre.shiki code .s86vT, html code.shiki .s86vT{--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF}html pre.shiki code .sK9QF, html code.shiki .sK9QF{--shiki-light:#90A4AE;--shiki-light-font-style:italic;--shiki-default:#EEFFFF;--shiki-default-font-style:italic;--shiki-dark:#BABED8;--shiki-dark-font-style:italic}html pre.shiki code .sYGMc, html code.shiki .sYGMc{--shiki-light:#E2931D;--shiki-default:#FFCB6B;--shiki-dark:#FFCB6B}html pre.shiki code .sd2Uz, html code.shiki .sd2Uz{--shiki-light:#E53935;--shiki-default:#F07178;--shiki-dark:#F07178}html pre.shiki code .sndM8, html code.shiki .sndM8{--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8}html .light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html.light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html .default .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html.dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html pre.shiki code .s8pZq, html code.shiki .s8pZq{--shiki-light:#39ADB5;--shiki-light-font-style:italic;--shiki-default:#89DDFF;--shiki-default-font-style:italic;--shiki-dark:#89DDFF;--shiki-dark-font-style:italic}html pre.shiki code .sIEYB, html code.shiki .sIEYB{--shiki-light:#91B859;--shiki-default:#C3E88D;--shiki-dark:#C3E88D}",{"title":196,"searchDepth":375,"depth":375,"links":598},[599,600,601,604],{"id":188,"depth":304,"text":189},{"id":276,"depth":304,"text":277},{"id":392,"depth":304,"text":393,"children":602},[603],{"id":397,"depth":355,"text":400},{"id":473,"depth":304,"text":474},"The queryCollectionSearchSections composable generates searchable sections from a collection for enhanced content discovery.","md",null,{},true,{"title":80,"description":605},[612,614],{"title":76,"path":77,"stem":78,"description":613,"children":-1},"The queryCollectionItemSurroundings composable looks for sibling contents of an specific path.",{"title":90,"path":91,"stem":92,"description":615,"children":-1},"Takes your component from an AST to a wonderful template.",{"data":617,"body":618,"excerpt":-1,"toc":627},{"title":196,"description":605},{"type":619,"children":620},"root",[621],{"type":622,"tag":279,"props":623,"children":624},"element",{},[625],{"type":626,"value":605},"text",{"title":196,"searchDepth":304,"depth":304,"links":628},[],1737541422629]