[{"data":1,"prerenderedAt":1270},["ShallowReactive",2],{"navigation":3,"/docs/collections/define":179,"98GvySD465":1257},[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},"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],{"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":1252},{"id":181,"title":182,"body":183,"description":1246,"extension":1247,"links":1248,"meta":1249,"navigation":1250,"path":32,"seo":1251,"stem":33},"docs/docs/2.collections/1.define.md","Define Content Collections",{"type":184,"value":185,"toc":1238},"minimal",[186,195,202,211,216,219,222,257,261,267,270,440,445,448,465,676,694,700,704,712,972,981,985,992,1113,1118,1226,1231,1234],[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,906,937,946,955,964],{"__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,892,895,897,899,902,904],{"class":282,"line":404},[280,876,877],{"class":290},"      \u003C",[280,879,226],{"class":348},[280,881,882],{"class":730}," v-for",[280,884,737],{"class":290},[280,886,740],{"class":290},[280,888,889],{"class":313},"post in posts",[280,891,740],{"class":290},[280,893,894],{"class":730}," :key",[280,896,737],{"class":290},[280,898,740],{"class":290},[280,900,901],{"class":313},"post.id",[280,903,740],{"class":290},[280,905,747],{"class":290},[280,907,908,911,914,917,919,921,924,926,928,931,933,935],{"class":282,"line":419},[280,909,910],{"class":290},"        \u003C",[280,912,913],{"class":348},"NuxtLink",[280,915,916],{"class":730}," :to",[280,918,737],{"class":290},[280,920,740],{"class":290},[280,922,923],{"class":313},"post.path",[280,925,740],{"class":290},[280,927,855],{"class":290},[280,929,930],{"class":294},"{{ post.title }}",[280,932,817],{"class":290},[280,934,913],{"class":348},[280,936,747],{"class":290},[280,938,939,942,944],{"class":282,"line":428},[280,940,941],{"class":290},"      \u003C/",[280,943,226],{"class":348},[280,945,747],{"class":290},[280,947,948,951,953],{"class":282,"line":434},[280,949,950],{"class":290},"    \u003C/",[280,952,223],{"class":348},[280,954,747],{"class":290},[280,956,957,960,962],{"class":282,"line":651},[280,958,959],{"class":290},"  \u003C/",[280,961,842],{"class":348},[280,963,747],{"class":290},[280,965,966,968,970],{"class":282,"line":659},[280,967,817],{"class":290},[280,969,832],{"class":348},[280,971,747],{"class":290},[677,973,974],{"to":69},[187,975,976,977,980],{},"Learn more about the available query options in our ",[191,978,979],{},"queryCollections"," API documentation.",[212,982,984],{"id":983},"definecollection","defineCollection()",[187,986,987,988,991],{},"The ",[191,989,990],{},"defineCollection"," function defines a collection in your content configuration. Here's its TypeScript signature:",[271,993,995],{"className":273,"code":994,"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,996,997,1022,1026,1037,1042,1065,1070,1086,1091,1108],{"__ignoreMap":276},[280,998,999,1002,1004,1006,1010,1012,1016,1019],{"class":282,"line":283},[280,1000,1001],{"class":730},"function",[280,1003,295],{"class":336},[280,1005,339],{"class":290},[280,1007,1009],{"class":1008},"sK9QF","collection",[280,1011,352],{"class":290},[280,1013,1015],{"class":1014},"sYGMc"," Collection",[280,1017,1018],{"class":290},"):",[280,1020,1021],{"class":1014}," DefinedCollection\n",[280,1023,1024],{"class":282,"line":320},[280,1025,324],{"emptyLinePlaceholder":323},[280,1027,1028,1031,1033,1035],{"class":282,"line":327},[280,1029,1030],{"class":730},"type",[280,1032,1015],{"class":1014},[280,1034,767],{"class":290},[280,1036,355],{"class":290},[280,1038,1039],{"class":282,"line":345},[280,1040,1041],{"class":375},"  // Determines how content is processed\n",[280,1043,1044,1047,1049,1051,1053,1055,1058,1060,1063],{"class":282,"line":358},[280,1045,1046],{"class":348},"  type",[280,1048,352],{"class":290},[280,1050,310],{"class":290},[280,1052,414],{"class":313},[280,1054,392],{"class":290},[280,1056,1057],{"class":290}," |",[280,1059,310],{"class":290},[280,1061,1062],{"class":313},"data",[280,1064,317],{"class":290},[280,1066,1067],{"class":282,"line":372},[280,1068,1069],{"class":375},"  // Specifies content location\n",[280,1071,1072,1075,1078,1081,1083],{"class":282,"line":379},[280,1073,1074],{"class":348},"  source",[280,1076,1077],{"class":290},"?:",[280,1079,1080],{"class":1014}," string",[280,1082,1057],{"class":290},[280,1084,1085],{"class":1014}," CollectionSource\n",[280,1087,1088],{"class":282,"line":398},[280,1089,1090],{"class":375},"  // Zod schema for content validation and typing\n",[280,1092,1093,1096,1098,1101,1103,1106],{"class":282,"line":404},[280,1094,1095],{"class":348},"  schema",[280,1097,1077],{"class":290},[280,1099,1100],{"class":1014}," ZodObject",[280,1102,724],{"class":290},[280,1104,1105],{"class":1014},"T",[280,1107,747],{"class":290},[280,1109,1110],{"class":282,"line":419},[280,1111,1112],{"class":290},"}\n",[677,1114,1115],{"to":36},[187,1116,1117],{},"Learn more about collection types.",[271,1119,1121],{"className":273,"code":1120,"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,1122,1123,1134,1139,1149,1154,1163,1168,1180,1185,1194,1199,1208,1213,1222],{"__ignoreMap":276},[280,1124,1125,1127,1130,1132],{"class":282,"line":283},[280,1126,1030],{"class":730},[280,1128,1129],{"class":1014}," CollectionSource",[280,1131,767],{"class":290},[280,1133,355],{"class":290},[280,1135,1136],{"class":282,"line":320},[280,1137,1138],{"class":375},"  // Glob pattern for content matching\n",[280,1140,1141,1144,1146],{"class":282,"line":327},[280,1142,1143],{"class":348},"  include",[280,1145,352],{"class":290},[280,1147,1148],{"class":1014}," string\n",[280,1150,1151],{"class":282,"line":345},[280,1152,1153],{"class":375},"  // .path prefix (only applies to 'page' type)\n",[280,1155,1156,1159,1161],{"class":282,"line":358},[280,1157,1158],{"class":348},"  prefix",[280,1160,1077],{"class":290},[280,1162,1148],{"class":1014},[280,1164,1165],{"class":282,"line":372},[280,1166,1167],{"class":375},"  // Glob patterns to exclude content\n",[280,1169,1170,1173,1175,1177],{"class":282,"line":379},[280,1171,1172],{"class":348},"  exclude",[280,1174,1077],{"class":290},[280,1176,1080],{"class":1014},[280,1178,1179],{"class":294},"[]\n",[280,1181,1182],{"class":282,"line":398},[280,1183,1184],{"class":375},"  // Root directory for content matching\n",[280,1186,1187,1190,1192],{"class":282,"line":404},[280,1188,1189],{"class":348},"  cwd",[280,1191,1077],{"class":290},[280,1193,1148],{"class":1014},[280,1195,1196],{"class":282,"line":419},[280,1197,1198],{"class":375},"  // Remote git repository URL (e.g., https://github.com/nuxt/content)\n",[280,1200,1201,1204,1206],{"class":282,"line":428},[280,1202,1203],{"class":348},"  repository",[280,1205,1077],{"class":290},[280,1207,1148],{"class":1014},[280,1209,1210],{"class":282,"line":434},[280,1211,1212],{"class":375},"  // Authentication token for private repositories (e.g., GitHub personal access token)\n",[280,1214,1215,1218,1220],{"class":282,"line":651},[280,1216,1217],{"class":348},"  authToken",[280,1219,1077],{"class":290},[280,1221,1148],{"class":1014},[280,1223,1224],{"class":282,"line":659},[280,1225,1112],{"class":290},[677,1227,1228],{"to":40},[187,1229,1230],{},"Learn more about collection sources.",[187,1232,1233],{},"The function returns the defined collection object.",[1235,1236,1237],"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":1239},[1240,1241,1244,1245],{"id":214,"depth":320,"text":215},{"id":259,"depth":320,"text":260,"children":1242},[1243],{"id":443,"depth":327,"text":444},{"id":702,"depth":320,"text":703},{"id":983,"depth":320,"text":984},"Learn how to define and configure content collections in your Nuxt application.","md",null,{},{"title":31},{"title":182,"description":1246},[1253,1255],{"title":20,"path":21,"stem":22,"description":1254,"children":-1},"How to migrate from v2 to v3",{"title":35,"path":36,"stem":37,"description":1256,"children":-1},"Learn about the two types of collections you can define in Nuxt Content.",{"data":1258,"body":1259,"excerpt":-1,"toc":1268},{"title":276,"description":1246},{"type":1260,"children":1261},"root",[1262],{"type":1263,"tag":187,"props":1264,"children":1265},"element",{},[1266],{"type":1267,"value":1246},"text",{"title":276,"searchDepth":320,"depth":320,"links":1269},[],1738777682589]