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