[{"data":1,"prerenderedAt":1296},["ShallowReactive",2],{"navigation":3,"/docs/collections/define":179,"98GvySD465":1283},[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":1278},{"id":181,"title":182,"body":183,"description":1272,"extension":1273,"links":1274,"meta":1275,"navigation":1276,"path":32,"seo":1277,"stem":33},"docs/docs/2.collections/1.define.md","Define Content Collections",{"type":184,"value":185,"toc":1264},"minimal",[186,195,202,211,216,219,222,257,261,267,270,440,445,448,465,676,694,700,704,712,998,1007,1011,1018,1139,1144,1252,1257,1260],[187,188,189,190,194],"p",{},"The Nuxt Content module automatically parses any content files within the ",[191,192,193],"code",{},"content/"," directory located at the root of your Nuxt application. This setup allows you to freely structure the folder to suit your project's needs.",[187,196,197,198,201],{},"For better organization, consider using Content Collections, which let you categorize and manage content more effectively. These collections are defined in a ",[191,199,200],{},"content.config.ts"," file.",[203,204,205],"warning",{},[187,206,207,208,210],{},"If no ",[191,209,200],{}," file is present, all files within the content folder are parsed and imported by default. However, once a config file is added, only files matching the specified path patterns defined in collections will be imported.",[212,213,215],"h2",{"id":214},"what-are-content-collections","What are Content Collections?",[187,217,218],{},"Content Collections organize related items within your Nuxt Content project. They provide a structured way to manage your content, making it easier to query, display, and maintain your site's data.",[187,220,221],{},"Key features include:",[223,224,225,233,239,245,251],"ul",{},[226,227,228,232],"li",{},[229,230,231],"strong",{},"Logical Grouping",": Group similar content together, such as blog posts, product pages, or documentation articles",[226,234,235,238],{},[229,236,237],{},"Shared Configuration",": Apply common settings and validations across all items within a collection",[226,240,241,244],{},[229,242,243],{},"Improved Querying",": Fetch and filter related content items efficiently",[226,246,247,250],{},[229,248,249],{},"Automatic Type Inference",": Get type safety and autocompletion in your development environment",[226,252,253,256],{},[229,254,255],{},"Flexible Structure",": Organize collections by content type, category, or any other logical grouping that suits your needs",[212,258,260],{"id":259},"defining-collections","Defining Collections",[187,262,263,264,266],{},"Create a ",[191,265,200],{}," file in your project's root directory. This special file configures your collections database, utility types, and content handling.",[187,268,269],{},"Here's a basic example:",[271,272,277],"pre",{"className":273,"code":274,"filename":200,"language":275,"meta":276,"style":276},"language-ts shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","import { defineCollection, defineContentConfig } from '@nuxt/content'\n\nexport default defineContentConfig({\n  collections: {\n    docs: defineCollection({\n      // Load every file inside the `content` directory\n      source: '**',\n      // Specify the type of content in this collection\n      type: 'page'\n    })\n  }\n})\n","ts","",[191,278,279,318,325,343,356,370,377,396,402,417,426,432],{"__ignoreMap":276},[280,281,284,288,292,296,299,302,305,308,311,315],"span",{"class":282,"line":283},"line",1,[280,285,287],{"class":286},"s8pZq","import",[280,289,291],{"class":290},"s86vT"," {",[280,293,295],{"class":294},"sndM8"," defineCollection",[280,297,298],{"class":290},",",[280,300,301],{"class":294}," defineContentConfig",[280,303,304],{"class":290}," }",[280,306,307],{"class":286}," from",[280,309,310],{"class":290}," '",[280,312,314],{"class":313},"sIEYB","@nuxt/content",[280,316,317],{"class":290},"'\n",[280,319,321],{"class":282,"line":320},2,[280,322,324],{"emptyLinePlaceholder":323},true,"\n",[280,326,328,331,334,337,340],{"class":282,"line":327},3,[280,329,330],{"class":286},"export",[280,332,333],{"class":286}," default",[280,335,301],{"class":336},"swgpB",[280,338,339],{"class":294},"(",[280,341,342],{"class":290},"{\n",[280,344,346,350,353],{"class":282,"line":345},4,[280,347,349],{"class":348},"sd2Uz","  collections",[280,351,352],{"class":290},":",[280,354,355],{"class":290}," {\n",[280,357,359,362,364,366,368],{"class":282,"line":358},5,[280,360,361],{"class":348},"    docs",[280,363,352],{"class":290},[280,365,295],{"class":336},[280,367,339],{"class":294},[280,369,342],{"class":290},[280,371,373],{"class":282,"line":372},6,[280,374,376],{"class":375},"syuKq","      // Load every file inside the `content` directory\n",[280,378,380,383,385,387,390,393],{"class":282,"line":379},7,[280,381,382],{"class":348},"      source",[280,384,352],{"class":290},[280,386,310],{"class":290},[280,388,389],{"class":313},"**",[280,391,392],{"class":290},"'",[280,394,395],{"class":290},",\n",[280,397,399],{"class":282,"line":398},8,[280,400,401],{"class":375},"      // Specify the type of content in this collection\n",[280,403,405,408,410,412,415],{"class":282,"line":404},9,[280,406,407],{"class":348},"      type",[280,409,352],{"class":290},[280,411,310],{"class":290},[280,413,414],{"class":313},"page",[280,416,317],{"class":290},[280,418,420,423],{"class":282,"line":419},10,[280,421,422],{"class":290},"    }",[280,424,425],{"class":294},")\n",[280,427,429],{"class":282,"line":428},11,[280,430,431],{"class":290},"  }\n",[280,433,435,438],{"class":282,"line":434},12,[280,436,437],{"class":290},"}",[280,439,425],{"class":294},[441,442,444],"h3",{"id":443},"collection-schema","Collection Schema",[187,446,447],{},"Schemas enforce data consistency within a collection and serve as the source of truth for TypeScript types.",[187,449,450,451,454,455,464],{},"On top of the built-in fields, you can define a schema by adding the ",[191,452,453],{},"schema"," property to your collection by using a ",[456,457,461],"a",{"href":458,"rel":459},"https://zod.dev",[460],"nofollow",[191,462,463],{},"zod"," schema:",[271,466,468],{"className":273,"code":467,"filename":200,"language":275,"meta":276,"style":276},"import { defineCollection, defineContentConfig, z } from '@nuxt/content'\n\nexport default defineContentConfig({\n  collections: {\n    blog: defineCollection({\n      source: 'blog/*.md',\n      type: 'page',\n      // Define custom schema for docs collection\n      schema: z.object({\n        tags: z.array(z.string()),\n        image: z.string(),\n        date: z.date()\n      })\n    })\n  }\n})\n",[191,469,470,497,501,513,521,534,549,563,568,587,614,632,649,657,664,669],{"__ignoreMap":276},[280,471,472,474,476,478,480,482,484,487,489,491,493,495],{"class":282,"line":283},[280,473,287],{"class":286},[280,475,291],{"class":290},[280,477,295],{"class":294},[280,479,298],{"class":290},[280,481,301],{"class":294},[280,483,298],{"class":290},[280,485,486],{"class":294}," z",[280,488,304],{"class":290},[280,490,307],{"class":286},[280,492,310],{"class":290},[280,494,314],{"class":313},[280,496,317],{"class":290},[280,498,499],{"class":282,"line":320},[280,500,324],{"emptyLinePlaceholder":323},[280,502,503,505,507,509,511],{"class":282,"line":327},[280,504,330],{"class":286},[280,506,333],{"class":286},[280,508,301],{"class":336},[280,510,339],{"class":294},[280,512,342],{"class":290},[280,514,515,517,519],{"class":282,"line":345},[280,516,349],{"class":348},[280,518,352],{"class":290},[280,520,355],{"class":290},[280,522,523,526,528,530,532],{"class":282,"line":358},[280,524,525],{"class":348},"    blog",[280,527,352],{"class":290},[280,529,295],{"class":336},[280,531,339],{"class":294},[280,533,342],{"class":290},[280,535,536,538,540,542,545,547],{"class":282,"line":372},[280,537,382],{"class":348},[280,539,352],{"class":290},[280,541,310],{"class":290},[280,543,544],{"class":313},"blog/*.md",[280,546,392],{"class":290},[280,548,395],{"class":290},[280,550,551,553,555,557,559,561],{"class":282,"line":379},[280,552,407],{"class":348},[280,554,352],{"class":290},[280,556,310],{"class":290},[280,558,414],{"class":313},[280,560,392],{"class":290},[280,562,395],{"class":290},[280,564,565],{"class":282,"line":398},[280,566,567],{"class":375},"      // Define custom schema for docs collection\n",[280,569,570,573,575,577,580,583,585],{"class":282,"line":404},[280,571,572],{"class":348},"      schema",[280,574,352],{"class":290},[280,576,486],{"class":294},[280,578,579],{"class":290},".",[280,581,582],{"class":336},"object",[280,584,339],{"class":294},[280,586,342],{"class":290},[280,588,589,592,594,596,598,601,604,606,609,612],{"class":282,"line":419},[280,590,591],{"class":348},"        tags",[280,593,352],{"class":290},[280,595,486],{"class":294},[280,597,579],{"class":290},[280,599,600],{"class":336},"array",[280,602,603],{"class":294},"(z",[280,605,579],{"class":290},[280,607,608],{"class":336},"string",[280,610,611],{"class":294},"())",[280,613,395],{"class":290},[280,615,616,619,621,623,625,627,630],{"class":282,"line":428},[280,617,618],{"class":348},"        image",[280,620,352],{"class":290},[280,622,486],{"class":294},[280,624,579],{"class":290},[280,626,608],{"class":336},[280,628,629],{"class":294},"()",[280,631,395],{"class":290},[280,633,634,637,639,641,643,646],{"class":282,"line":434},[280,635,636],{"class":348},"        date",[280,638,352],{"class":290},[280,640,486],{"class":294},[280,642,579],{"class":290},[280,644,645],{"class":336},"date",[280,647,648],{"class":294},"()\n",[280,650,652,655],{"class":282,"line":651},13,[280,653,654],{"class":290},"      }",[280,656,425],{"class":294},[280,658,660,662],{"class":282,"line":659},14,[280,661,422],{"class":290},[280,663,425],{"class":294},[280,665,667],{"class":282,"line":666},15,[280,668,431],{"class":290},[280,670,672,674],{"class":282,"line":671},16,[280,673,437],{"class":290},[280,675,425],{"class":294},[677,678,679],"note",{},[187,680,681,683,684,687,688,693],{},[191,682,314],{}," exposes a ",[191,685,686],{},"z"," object that contains a set of Zod schemas for common data types. Check the ",[456,689,692],{"href":690,"rel":691},"https://github.com/colinhacks/zod",[460],"Zod’s README"," for complete documentation on how Zod works and what features are available.",[695,696,697],"tip",{},[187,698,699],{},"You can define as many collections as you want to organize different types of content.",[212,701,703],{"id":702},"querying-collections","Querying Collections",[187,705,706,707,711],{},"Use the ",[456,708,709],{"href":69},[191,710,68],{}," util to fetch one or all items from a collection:",[271,713,718],{"className":714,"code":715,"filename":716,"language":717,"meta":276,"style":276},"language-vue shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","\u003Cscript setup lang=\"ts\">\nconst { data: posts } = await useAsyncData('blog', () => queryCollection('blog').all())\n\u003C/script>\n\n\u003Ctemplate>\n  \u003Cdiv>\n    \u003Ch1>Blog\u003C/h1>\n    \u003Cul>\n      \u003Cli v-for=\"post in posts\" :key=\"post.id\">\n        \u003CNuxtLink :to=\"post.path\">{{ post.title }}\u003C/NuxtLink>\n      \u003C/li>\n    \u003C/ul>\n  \u003C/div>\n\u003C/template>\n","pages/blog.vue","vue",[191,719,720,748,813,822,826,835,845,865,873,919,963,972,981,990],{"__ignoreMap":276},[280,721,722,725,728,732,735,738,741,743,745],{"class":282,"line":283},[280,723,724],{"class":290},"\u003C",[280,726,727],{"class":348},"script",[280,729,731],{"class":730},"s50WR"," setup",[280,733,734],{"class":730}," lang",[280,736,737],{"class":290},"=",[280,739,740],{"class":290},"\"",[280,742,275],{"class":313},[280,744,740],{"class":290},[280,746,747],{"class":290},">\n",[280,749,750,753,755,758,760,763,765,768,771,774,776,778,781,783,785,788,791,794,796,798,800,802,805,807,810],{"class":282,"line":320},[280,751,752],{"class":730},"const",[280,754,291],{"class":290},[280,756,757],{"class":348}," data",[280,759,352],{"class":290},[280,761,762],{"class":294}," posts ",[280,764,437],{"class":290},[280,766,767],{"class":290}," =",[280,769,770],{"class":286}," await",[280,772,773],{"class":336}," useAsyncData",[280,775,339],{"class":294},[280,777,392],{"class":290},[280,779,780],{"class":313},"blog",[280,782,392],{"class":290},[280,784,298],{"class":290},[280,786,787],{"class":290}," ()",[280,789,790],{"class":730}," =>",[280,792,793],{"class":336}," queryCollection",[280,795,339],{"class":294},[280,797,392],{"class":290},[280,799,780],{"class":313},[280,801,392],{"class":290},[280,803,804],{"class":294},")",[280,806,579],{"class":290},[280,808,809],{"class":336},"all",[280,811,812],{"class":294},"())\n",[280,814,815,818,820],{"class":282,"line":327},[280,816,817],{"class":290},"\u003C/",[280,819,727],{"class":348},[280,821,747],{"class":290},[280,823,824],{"class":282,"line":345},[280,825,324],{"emptyLinePlaceholder":323},[280,827,828,830,833],{"class":282,"line":358},[280,829,724],{"class":290},[280,831,832],{"class":348},"template",[280,834,747],{"class":290},[280,836,837,840,843],{"class":282,"line":372},[280,838,839],{"class":290},"  \u003C",[280,841,842],{"class":348},"div",[280,844,747],{"class":290},[280,846,847,850,853,856,859,861,863],{"class":282,"line":379},[280,848,849],{"class":290},"    \u003C",[280,851,852],{"class":348},"h1",[280,854,855],{"class":290},">",[280,857,858],{"class":294},"Blog",[280,860,817],{"class":290},[280,862,852],{"class":348},[280,864,747],{"class":290},[280,866,867,869,871],{"class":282,"line":398},[280,868,849],{"class":290},[280,870,223],{"class":348},[280,872,747],{"class":290},[280,874,875,878,880,883,885,887,890,893,896,898,901,904,906,908,910,912,915,917],{"class":282,"line":404},[280,876,877],{"class":290},"      \u003C",[280,879,226],{"class":348},[280,881,882],{"class":286}," v-for",[280,884,737],{"class":290},[280,886,740],{"class":290},[280,888,889],{"class":294},"post",[280,891,892],{"class":290}," in ",[280,894,895],{"class":294},"posts",[280,897,740],{"class":290},[280,899,900],{"class":290}," :",[280,902,903],{"class":730},"key",[280,905,737],{"class":290},[280,907,740],{"class":290},[280,909,889],{"class":294},[280,911,579],{"class":290},[280,913,914],{"class":294},"id",[280,916,740],{"class":290},[280,918,747],{"class":290},[280,920,921,924,927,929,932,934,936,938,940,943,945,948,951,953,956,959,961],{"class":282,"line":419},[280,922,923],{"class":290},"        \u003C",[280,925,926],{"class":348},"NuxtLink",[280,928,900],{"class":290},[280,930,931],{"class":730},"to",[280,933,737],{"class":290},[280,935,740],{"class":290},[280,937,889],{"class":294},[280,939,579],{"class":290},[280,941,942],{"class":294},"path",[280,944,740],{"class":290},[280,946,947],{"class":290},">{{",[280,949,950],{"class":294}," post",[280,952,579],{"class":290},[280,954,955],{"class":294},"title ",[280,957,958],{"class":290},"}}\u003C/",[280,960,926],{"class":348},[280,962,747],{"class":290},[280,964,965,968,970],{"class":282,"line":428},[280,966,967],{"class":290},"      \u003C/",[280,969,226],{"class":348},[280,971,747],{"class":290},[280,973,974,977,979],{"class":282,"line":434},[280,975,976],{"class":290},"    \u003C/",[280,978,223],{"class":348},[280,980,747],{"class":290},[280,982,983,986,988],{"class":282,"line":651},[280,984,985],{"class":290},"  \u003C/",[280,987,842],{"class":348},[280,989,747],{"class":290},[280,991,992,994,996],{"class":282,"line":659},[280,993,817],{"class":290},[280,995,832],{"class":348},[280,997,747],{"class":290},[677,999,1000],{"to":69},[187,1001,1002,1003,1006],{},"Learn more about the available query options in our ",[191,1004,1005],{},"queryCollections"," API documentation.",[212,1008,1010],{"id":1009},"definecollection","defineCollection()",[187,1012,1013,1014,1017],{},"The ",[191,1015,1016],{},"defineCollection"," function defines a collection in your content configuration. Here's its TypeScript signature:",[271,1019,1021],{"className":273,"code":1020,"language":275,"meta":276,"style":276},"function defineCollection(collection: Collection): DefinedCollection\n\ntype Collection = {\n  // Determines how content is processed\n  type: 'page' | 'data'\n  // Specifies content location\n  source?: string | CollectionSource\n  // Zod schema for content validation and typing\n  schema?: ZodObject\u003CT>\n}\n",[191,1022,1023,1048,1052,1063,1068,1091,1096,1112,1117,1134],{"__ignoreMap":276},[280,1024,1025,1028,1030,1032,1036,1038,1042,1045],{"class":282,"line":283},[280,1026,1027],{"class":730},"function",[280,1029,295],{"class":336},[280,1031,339],{"class":290},[280,1033,1035],{"class":1034},"sK9QF","collection",[280,1037,352],{"class":290},[280,1039,1041],{"class":1040},"sYGMc"," Collection",[280,1043,1044],{"class":290},"):",[280,1046,1047],{"class":1040}," DefinedCollection\n",[280,1049,1050],{"class":282,"line":320},[280,1051,324],{"emptyLinePlaceholder":323},[280,1053,1054,1057,1059,1061],{"class":282,"line":327},[280,1055,1056],{"class":730},"type",[280,1058,1041],{"class":1040},[280,1060,767],{"class":290},[280,1062,355],{"class":290},[280,1064,1065],{"class":282,"line":345},[280,1066,1067],{"class":375},"  // Determines how content is processed\n",[280,1069,1070,1073,1075,1077,1079,1081,1084,1086,1089],{"class":282,"line":358},[280,1071,1072],{"class":348},"  type",[280,1074,352],{"class":290},[280,1076,310],{"class":290},[280,1078,414],{"class":313},[280,1080,392],{"class":290},[280,1082,1083],{"class":290}," |",[280,1085,310],{"class":290},[280,1087,1088],{"class":313},"data",[280,1090,317],{"class":290},[280,1092,1093],{"class":282,"line":372},[280,1094,1095],{"class":375},"  // Specifies content location\n",[280,1097,1098,1101,1104,1107,1109],{"class":282,"line":379},[280,1099,1100],{"class":348},"  source",[280,1102,1103],{"class":290},"?:",[280,1105,1106],{"class":1040}," string",[280,1108,1083],{"class":290},[280,1110,1111],{"class":1040}," CollectionSource\n",[280,1113,1114],{"class":282,"line":398},[280,1115,1116],{"class":375},"  // Zod schema for content validation and typing\n",[280,1118,1119,1122,1124,1127,1129,1132],{"class":282,"line":404},[280,1120,1121],{"class":348},"  schema",[280,1123,1103],{"class":290},[280,1125,1126],{"class":1040}," ZodObject",[280,1128,724],{"class":290},[280,1130,1131],{"class":1040},"T",[280,1133,747],{"class":290},[280,1135,1136],{"class":282,"line":419},[280,1137,1138],{"class":290},"}\n",[677,1140,1141],{"to":36},[187,1142,1143],{},"Learn more about collection types.",[271,1145,1147],{"className":273,"code":1146,"language":275,"meta":276,"style":276},"type CollectionSource = {\n  // Glob pattern for content matching\n  include: string\n  // .path prefix (only applies to 'page' type)\n  prefix?: string\n  // Glob patterns to exclude content\n  exclude?: string[]\n  // Root directory for content matching\n  cwd?: string\n  // Remote git repository URL (e.g., https://github.com/nuxt/content)\n  repository?: string\n  // Authentication token for private repositories (e.g., GitHub personal access token)\n  authToken?: string\n}\n",[191,1148,1149,1160,1165,1175,1180,1189,1194,1206,1211,1220,1225,1234,1239,1248],{"__ignoreMap":276},[280,1150,1151,1153,1156,1158],{"class":282,"line":283},[280,1152,1056],{"class":730},[280,1154,1155],{"class":1040}," CollectionSource",[280,1157,767],{"class":290},[280,1159,355],{"class":290},[280,1161,1162],{"class":282,"line":320},[280,1163,1164],{"class":375},"  // Glob pattern for content matching\n",[280,1166,1167,1170,1172],{"class":282,"line":327},[280,1168,1169],{"class":348},"  include",[280,1171,352],{"class":290},[280,1173,1174],{"class":1040}," string\n",[280,1176,1177],{"class":282,"line":345},[280,1178,1179],{"class":375},"  // .path prefix (only applies to 'page' type)\n",[280,1181,1182,1185,1187],{"class":282,"line":358},[280,1183,1184],{"class":348},"  prefix",[280,1186,1103],{"class":290},[280,1188,1174],{"class":1040},[280,1190,1191],{"class":282,"line":372},[280,1192,1193],{"class":375},"  // Glob patterns to exclude content\n",[280,1195,1196,1199,1201,1203],{"class":282,"line":379},[280,1197,1198],{"class":348},"  exclude",[280,1200,1103],{"class":290},[280,1202,1106],{"class":1040},[280,1204,1205],{"class":294},"[]\n",[280,1207,1208],{"class":282,"line":398},[280,1209,1210],{"class":375},"  // Root directory for content matching\n",[280,1212,1213,1216,1218],{"class":282,"line":404},[280,1214,1215],{"class":348},"  cwd",[280,1217,1103],{"class":290},[280,1219,1174],{"class":1040},[280,1221,1222],{"class":282,"line":419},[280,1223,1224],{"class":375},"  // Remote git repository URL (e.g., https://github.com/nuxt/content)\n",[280,1226,1227,1230,1232],{"class":282,"line":428},[280,1228,1229],{"class":348},"  repository",[280,1231,1103],{"class":290},[280,1233,1174],{"class":1040},[280,1235,1236],{"class":282,"line":434},[280,1237,1238],{"class":375},"  // Authentication token for private repositories (e.g., GitHub personal access token)\n",[280,1240,1241,1244,1246],{"class":282,"line":651},[280,1242,1243],{"class":348},"  authToken",[280,1245,1103],{"class":290},[280,1247,1174],{"class":1040},[280,1249,1250],{"class":282,"line":659},[280,1251,1138],{"class":290},[677,1253,1254],{"to":40},[187,1255,1256],{},"Learn more about collection sources.",[187,1258,1259],{},"The function returns the defined collection object.",[1261,1262,1263],"style",{},"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 .s86vT, html code.shiki .s86vT{--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF}html pre.shiki code .sndM8, html code.shiki .sndM8{--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8}html pre.shiki code .sIEYB, html code.shiki .sIEYB{--shiki-light:#91B859;--shiki-default:#C3E88D;--shiki-dark:#C3E88D}html pre.shiki code .swgpB, html code.shiki .swgpB{--shiki-light:#6182B8;--shiki-default:#82AAFF;--shiki-dark:#82AAFF}html pre.shiki code .sd2Uz, html code.shiki .sd2Uz{--shiki-light:#E53935;--shiki-default:#F07178;--shiki-dark:#F07178}html pre.shiki code .syuKq, html code.shiki .syuKq{--shiki-light:#90A4AE;--shiki-light-font-style:italic;--shiki-default:#546E7A;--shiki-default-font-style:italic;--shiki-dark:#676E95;--shiki-dark-font-style:italic}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 .s50WR, html code.shiki .s50WR{--shiki-light:#9C3EDA;--shiki-default:#C792EA;--shiki-dark:#C792EA}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}",{"title":276,"searchDepth":345,"depth":345,"links":1265},[1266,1267,1270,1271],{"id":214,"depth":320,"text":215},{"id":259,"depth":320,"text":260,"children":1268},[1269],{"id":443,"depth":327,"text":444},{"id":702,"depth":320,"text":703},{"id":1009,"depth":320,"text":1010},"Learn how to define and configure content collections in your Nuxt application.","md",null,{},{"title":31},{"title":182,"description":1272},[1279,1281],{"title":20,"path":21,"stem":22,"description":1280,"children":-1},"How to migrate from v2 to v3",{"title":35,"path":36,"stem":37,"description":1282,"children":-1},"Learn about the two types of collections you can define in Nuxt Content.",{"data":1284,"body":1285,"excerpt":-1,"toc":1294},{"title":276,"description":1272},{"type":1286,"children":1287},"root",[1288],{"type":1289,"tag":187,"props":1290,"children":1291},"element",{},[1292],{"type":1293,"value":1272},"text",{"title":276,"searchDepth":320,"depth":320,"links":1295},[],1737541419962]