[{"data":1,"prerenderedAt":4647},["ShallowReactive",2],{"navigation":3,"docs-/document-driven/use-content":164,"docs-/document-driven/use-content-surround":1529},[4,20,45,67,92,102,115],{"title":5,"_path":6,"children":7},"Get Started","/get-started",[8,11,14,17],{"title":9,"_path":10},"Installation","/get-started/installation",{"title":12,"_path":13},"Configuration","/get-started/configuration",{"title":15,"_path":16},"Edge Channel","/get-started/edge-channel",{"title":18,"_path":19},"Migration","/get-started/from-v1",{"title":21,"_path":22,"children":23},"Usage","/usage",[24,27,30,33,36,39,42],{"title":25,"_path":26},"Content Directory","/usage/content-directory",{"title":28,"_path":29},"Markdown","/usage/markdown",{"title":31,"_path":32},"JSON, YAML, CSV","/usage/files",{"title":34,"_path":35},"Render Content","/usage/render",{"title":37,"_path":38},"Search","/usage/search",{"title":40,"_path":41},"Fetch Navigation","/usage/navigation",{"title":43,"_path":44},"TypeScript Support","/usage/typescript",{"title":46,"_path":47,"children":48},"Composables","/composables",[49,52,55,58,61,64],{"title":50,"_path":51},"queryContent()","/composables/query-content",{"title":53,"_path":54},"fetchContentNavigation()","/composables/fetch-content-navigation",{"title":56,"_path":57},"useContentHead()","/composables/use-content-head",{"title":59,"_path":60},"useContentHelpers()","/composables/use-content-helpers",{"title":62,"_path":63},"useUnwrap()","/composables/use-unwrap",{"title":65,"_path":66},"searchContent()","/composables/search-content",{"title":68,"_path":69,"children":70},"Components","/components",[71,74,77,80,83,86,89],{"title":72,"_path":73},"\u003CContentDoc>","/components/content-doc",{"title":75,"_path":76},"\u003CContentRenderer>","/components/content-renderer",{"title":78,"_path":79},"\u003CContentList>","/components/content-list",{"title":81,"_path":82},"\u003CContentNavigation>","/components/content-navigation",{"title":84,"_path":85},"\u003CContentQuery>","/components/content-query",{"title":87,"_path":88},"\u003CContentSlot>","/components/content-slot",{"title":90,"_path":91},"Prose Components","/components/prose",{"title":93,"_path":94,"children":95},"Document Driven","/document-driven",[96,99],{"title":97,"_path":98},"Introduction","/document-driven/introduction",{"title":100,"_path":101},"useContent()","/document-driven/use-content",{"title":103,"_path":104,"children":105},"Recipes","/recipes",[106,109,112],{"title":107,"_path":108},"Hooks","/recipes/hooks",{"title":110,"_path":111},"Transformers","/recipes/transformers",{"title":113,"_path":114},"Sitemap","/recipes/sitemap",{"title":116,"_path":117,"children":118},"V1","/v1",[119,141,154],{"title":120,"_path":121,"children":122},"Getting Started","/v1/getting-started",[123,125,127,130,133,136,138],{"title":97,"_path":124},"/v1/getting-started/introduction",{"title":9,"_path":126},"/v1/getting-started/installation",{"title":128,"_path":129},"Writing content","/v1/getting-started/writing",{"title":131,"_path":132},"Fetching content","/v1/getting-started/fetching",{"title":134,"_path":135},"Displaying content","/v1/getting-started/displaying",{"title":12,"_path":137},"/v1/getting-started/configuration",{"title":139,"_path":140},"Advanced","/v1/getting-started/advanced",{"title":142,"_path":143,"children":144},"Examples","/v1/examples",[145,148,151],{"title":146,"_path":147},"Basic Usage","/v1/examples/basic",{"title":149,"_path":150},"TailwindCSS","/v1/examples/tailwindcss-typography",{"title":152,"_path":153},"Docs Theme","/v1/examples/docs-theme",{"title":155,"_path":156,"children":157},"Community","/v1/community",[158,161],{"title":159,"_path":160},"Snippets","/v1/community/snippets",{"title":162,"_path":163},"Integrations","/v1/community/integrations",{"_path":101,"_dir":165,"_draft":166,"_partial":166,"_locale":167,"title":100,"description":168,"body":169,"_type":1523,"_id":1524,"_source":1525,"_file":1526,"_stem":1527,"_extension":1528},"document-driven",false,"","The useContent() composable gives access to the current page, surrounding pages and global data.",{"type":170,"children":171,"toc":1518},"root",[172,188,464,471,476,691,697,1064,1070,1512],{"type":173,"tag":174,"props":175,"children":176},"element","p",{},[177,180,186],{"type":178,"value":179},"text","When the document driven mode is enabled, ",{"type":173,"tag":181,"props":182,"children":184},"code",{"className":183},[],[185],{"type":178,"value":100},{"type":178,"value":187}," is available everywhere in your app and gives access to a list of refs based on your content.",{"type":173,"tag":189,"props":190,"children":194},"pre",{"className":191,"code":192,"language":193,"meta":167,"style":167},"language-vue shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","\u003Cscript setup lang=\"ts\">\nconst {\n  // Global references\n  globals,\n  navigation,\n  surround,\n  page,\n  // Computed properties from `page` key\n  excerpt,\n  toc,\n  type,\n  layout,\n  // Computed properties from `surround` key\n  next,\n  prev\n} = useContent()\n\u003C/script>\n","vue",[195],{"type":173,"tag":181,"props":196,"children":197},{"__ignoreMap":167},[198,252,266,276,291,304,317,330,339,352,365,378,391,400,413,422,447],{"type":173,"tag":199,"props":200,"children":203},"span",{"class":201,"line":202},"line",1,[204,210,216,222,227,232,237,243,247],{"type":173,"tag":199,"props":205,"children":207},{"style":206},"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF",[208],{"type":178,"value":209},"\u003C",{"type":173,"tag":199,"props":211,"children":213},{"style":212},"--shiki-light:#E53935;--shiki-default:#F07178;--shiki-dark:#F07178",[214],{"type":178,"value":215},"script",{"type":173,"tag":199,"props":217,"children":219},{"style":218},"--shiki-light:#9C3EDA;--shiki-default:#C792EA;--shiki-dark:#C792EA",[220],{"type":178,"value":221}," setup",{"type":173,"tag":199,"props":223,"children":224},{"style":218},[225],{"type":178,"value":226}," lang",{"type":173,"tag":199,"props":228,"children":229},{"style":206},[230],{"type":178,"value":231},"=",{"type":173,"tag":199,"props":233,"children":234},{"style":206},[235],{"type":178,"value":236},"\"",{"type":173,"tag":199,"props":238,"children":240},{"style":239},"--shiki-light:#91B859;--shiki-default:#C3E88D;--shiki-dark:#C3E88D",[241],{"type":178,"value":242},"ts",{"type":173,"tag":199,"props":244,"children":245},{"style":206},[246],{"type":178,"value":236},{"type":173,"tag":199,"props":248,"children":249},{"style":206},[250],{"type":178,"value":251},">\n",{"type":173,"tag":199,"props":253,"children":255},{"class":201,"line":254},2,[256,261],{"type":173,"tag":199,"props":257,"children":258},{"style":218},[259],{"type":178,"value":260},"const",{"type":173,"tag":199,"props":262,"children":263},{"style":206},[264],{"type":178,"value":265}," {\n",{"type":173,"tag":199,"props":267,"children":269},{"class":201,"line":268},3,[270],{"type":173,"tag":199,"props":271,"children":273},{"style":272},"--shiki-light:#90A4AE;--shiki-default:#546E7A;--shiki-dark:#676E95;--shiki-light-font-style:italic;--shiki-default-font-style:italic;--shiki-dark-font-style:italic",[274],{"type":178,"value":275},"  // Global references\n",{"type":173,"tag":199,"props":277,"children":279},{"class":201,"line":278},4,[280,286],{"type":173,"tag":199,"props":281,"children":283},{"style":282},"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8",[284],{"type":178,"value":285},"  globals",{"type":173,"tag":199,"props":287,"children":288},{"style":206},[289],{"type":178,"value":290},",\n",{"type":173,"tag":199,"props":292,"children":294},{"class":201,"line":293},5,[295,300],{"type":173,"tag":199,"props":296,"children":297},{"style":282},[298],{"type":178,"value":299},"  navigation",{"type":173,"tag":199,"props":301,"children":302},{"style":206},[303],{"type":178,"value":290},{"type":173,"tag":199,"props":305,"children":307},{"class":201,"line":306},6,[308,313],{"type":173,"tag":199,"props":309,"children":310},{"style":282},[311],{"type":178,"value":312},"  surround",{"type":173,"tag":199,"props":314,"children":315},{"style":206},[316],{"type":178,"value":290},{"type":173,"tag":199,"props":318,"children":320},{"class":201,"line":319},7,[321,326],{"type":173,"tag":199,"props":322,"children":323},{"style":282},[324],{"type":178,"value":325},"  page",{"type":173,"tag":199,"props":327,"children":328},{"style":206},[329],{"type":178,"value":290},{"type":173,"tag":199,"props":331,"children":333},{"class":201,"line":332},8,[334],{"type":173,"tag":199,"props":335,"children":336},{"style":272},[337],{"type":178,"value":338},"  // Computed properties from `page` key\n",{"type":173,"tag":199,"props":340,"children":342},{"class":201,"line":341},9,[343,348],{"type":173,"tag":199,"props":344,"children":345},{"style":282},[346],{"type":178,"value":347},"  excerpt",{"type":173,"tag":199,"props":349,"children":350},{"style":206},[351],{"type":178,"value":290},{"type":173,"tag":199,"props":353,"children":355},{"class":201,"line":354},10,[356,361],{"type":173,"tag":199,"props":357,"children":358},{"style":282},[359],{"type":178,"value":360},"  toc",{"type":173,"tag":199,"props":362,"children":363},{"style":206},[364],{"type":178,"value":290},{"type":173,"tag":199,"props":366,"children":368},{"class":201,"line":367},11,[369,374],{"type":173,"tag":199,"props":370,"children":371},{"style":282},[372],{"type":178,"value":373},"  type",{"type":173,"tag":199,"props":375,"children":376},{"style":206},[377],{"type":178,"value":290},{"type":173,"tag":199,"props":379,"children":381},{"class":201,"line":380},12,[382,387],{"type":173,"tag":199,"props":383,"children":384},{"style":282},[385],{"type":178,"value":386},"  layout",{"type":173,"tag":199,"props":388,"children":389},{"style":206},[390],{"type":178,"value":290},{"type":173,"tag":199,"props":392,"children":394},{"class":201,"line":393},13,[395],{"type":173,"tag":199,"props":396,"children":397},{"style":272},[398],{"type":178,"value":399},"  // Computed properties from `surround` key\n",{"type":173,"tag":199,"props":401,"children":403},{"class":201,"line":402},14,[404,409],{"type":173,"tag":199,"props":405,"children":406},{"style":282},[407],{"type":178,"value":408},"  next",{"type":173,"tag":199,"props":410,"children":411},{"style":206},[412],{"type":178,"value":290},{"type":173,"tag":199,"props":414,"children":416},{"class":201,"line":415},15,[417],{"type":173,"tag":199,"props":418,"children":419},{"style":282},[420],{"type":178,"value":421},"  prev\n",{"type":173,"tag":199,"props":423,"children":425},{"class":201,"line":424},16,[426,431,436,442],{"type":173,"tag":199,"props":427,"children":428},{"style":206},[429],{"type":178,"value":430},"}",{"type":173,"tag":199,"props":432,"children":433},{"style":206},[434],{"type":178,"value":435}," =",{"type":173,"tag":199,"props":437,"children":439},{"style":438},"--shiki-light:#6182B8;--shiki-default:#82AAFF;--shiki-dark:#82AAFF",[440],{"type":178,"value":441}," useContent",{"type":173,"tag":199,"props":443,"children":444},{"style":282},[445],{"type":178,"value":446},"()\n",{"type":173,"tag":199,"props":448,"children":450},{"class":201,"line":449},17,[451,456,460],{"type":173,"tag":199,"props":452,"children":453},{"style":206},[454],{"type":178,"value":455},"\u003C/",{"type":173,"tag":199,"props":457,"children":458},{"style":212},[459],{"type":178,"value":215},{"type":173,"tag":199,"props":461,"children":462},{"style":206},[463],{"type":178,"value":251},{"type":173,"tag":465,"props":466,"children":468},"h2",{"id":467},"rendering-the-page",[469],{"type":178,"value":470},"Rendering the page",{"type":173,"tag":174,"props":472,"children":473},{},[474],{"type":178,"value":475},"Rendering the current page becomes a bliss with this composable:",{"type":173,"tag":189,"props":477,"children":480},{"className":191,"code":478,"filename":479,"language":193,"meta":167,"style":167},"\u003Cscript setup lang=\"ts\">\nconst { page } = useContent()\n\u003C/script>\n\n\u003Ctemplate>\n  \u003CContentRenderer :key=\"page._id\" :value=\"page\" />\n\u003C/template>\n","pages/[...slug].vue",[481],{"type":173,"tag":181,"props":482,"children":483},{"__ignoreMap":167},[484,523,556,571,580,596,676],{"type":173,"tag":199,"props":485,"children":486},{"class":201,"line":202},[487,491,495,499,503,507,511,515,519],{"type":173,"tag":199,"props":488,"children":489},{"style":206},[490],{"type":178,"value":209},{"type":173,"tag":199,"props":492,"children":493},{"style":212},[494],{"type":178,"value":215},{"type":173,"tag":199,"props":496,"children":497},{"style":218},[498],{"type":178,"value":221},{"type":173,"tag":199,"props":500,"children":501},{"style":218},[502],{"type":178,"value":226},{"type":173,"tag":199,"props":504,"children":505},{"style":206},[506],{"type":178,"value":231},{"type":173,"tag":199,"props":508,"children":509},{"style":206},[510],{"type":178,"value":236},{"type":173,"tag":199,"props":512,"children":513},{"style":239},[514],{"type":178,"value":242},{"type":173,"tag":199,"props":516,"children":517},{"style":206},[518],{"type":178,"value":236},{"type":173,"tag":199,"props":520,"children":521},{"style":206},[522],{"type":178,"value":251},{"type":173,"tag":199,"props":524,"children":525},{"class":201,"line":254},[526,530,535,540,544,548,552],{"type":173,"tag":199,"props":527,"children":528},{"style":218},[529],{"type":178,"value":260},{"type":173,"tag":199,"props":531,"children":532},{"style":206},[533],{"type":178,"value":534}," {",{"type":173,"tag":199,"props":536,"children":537},{"style":282},[538],{"type":178,"value":539}," page ",{"type":173,"tag":199,"props":541,"children":542},{"style":206},[543],{"type":178,"value":430},{"type":173,"tag":199,"props":545,"children":546},{"style":206},[547],{"type":178,"value":435},{"type":173,"tag":199,"props":549,"children":550},{"style":438},[551],{"type":178,"value":441},{"type":173,"tag":199,"props":553,"children":554},{"style":282},[555],{"type":178,"value":446},{"type":173,"tag":199,"props":557,"children":558},{"class":201,"line":268},[559,563,567],{"type":173,"tag":199,"props":560,"children":561},{"style":206},[562],{"type":178,"value":455},{"type":173,"tag":199,"props":564,"children":565},{"style":212},[566],{"type":178,"value":215},{"type":173,"tag":199,"props":568,"children":569},{"style":206},[570],{"type":178,"value":251},{"type":173,"tag":199,"props":572,"children":573},{"class":201,"line":278},[574],{"type":173,"tag":199,"props":575,"children":577},{"emptyLinePlaceholder":576},true,[578],{"type":178,"value":579},"\n",{"type":173,"tag":199,"props":581,"children":582},{"class":201,"line":293},[583,587,592],{"type":173,"tag":199,"props":584,"children":585},{"style":206},[586],{"type":178,"value":209},{"type":173,"tag":199,"props":588,"children":589},{"style":212},[590],{"type":178,"value":591},"template",{"type":173,"tag":199,"props":593,"children":594},{"style":206},[595],{"type":178,"value":251},{"type":173,"tag":199,"props":597,"children":598},{"class":201,"line":306},[599,604,609,614,619,623,627,632,637,642,646,650,655,659,663,667,671],{"type":173,"tag":199,"props":600,"children":601},{"style":206},[602],{"type":178,"value":603},"  \u003C",{"type":173,"tag":199,"props":605,"children":606},{"style":212},[607],{"type":178,"value":608},"ContentRenderer",{"type":173,"tag":199,"props":610,"children":611},{"style":206},[612],{"type":178,"value":613}," :",{"type":173,"tag":199,"props":615,"children":616},{"style":218},[617],{"type":178,"value":618},"key",{"type":173,"tag":199,"props":620,"children":621},{"style":206},[622],{"type":178,"value":231},{"type":173,"tag":199,"props":624,"children":625},{"style":206},[626],{"type":178,"value":236},{"type":173,"tag":199,"props":628,"children":629},{"style":282},[630],{"type":178,"value":631},"page",{"type":173,"tag":199,"props":633,"children":634},{"style":206},[635],{"type":178,"value":636},".",{"type":173,"tag":199,"props":638,"children":639},{"style":282},[640],{"type":178,"value":641},"_id",{"type":173,"tag":199,"props":643,"children":644},{"style":206},[645],{"type":178,"value":236},{"type":173,"tag":199,"props":647,"children":648},{"style":206},[649],{"type":178,"value":613},{"type":173,"tag":199,"props":651,"children":652},{"style":218},[653],{"type":178,"value":654},"value",{"type":173,"tag":199,"props":656,"children":657},{"style":206},[658],{"type":178,"value":231},{"type":173,"tag":199,"props":660,"children":661},{"style":206},[662],{"type":178,"value":236},{"type":173,"tag":199,"props":664,"children":665},{"style":282},[666],{"type":178,"value":631},{"type":173,"tag":199,"props":668,"children":669},{"style":206},[670],{"type":178,"value":236},{"type":173,"tag":199,"props":672,"children":673},{"style":206},[674],{"type":178,"value":675}," />\n",{"type":173,"tag":199,"props":677,"children":678},{"class":201,"line":319},[679,683,687],{"type":173,"tag":199,"props":680,"children":681},{"style":206},[682],{"type":178,"value":455},{"type":173,"tag":199,"props":684,"children":685},{"style":212},[686],{"type":178,"value":591},{"type":173,"tag":199,"props":688,"children":689},{"style":206},[690],{"type":178,"value":251},{"type":173,"tag":465,"props":692,"children":694},{"id":693},"previousnext-page-component",[695],{"type":178,"value":696},"Previous/next page component",{"type":173,"tag":189,"props":698,"children":701},{"className":191,"code":699,"filename":700,"language":193,"meta":167,"style":167},"\u003Cscript setup lang=\"ts\">\nconst { prev, next } = useContent()\n\u003C/script>\n\n\u003Ctemplate>\n  \u003Cdiv>\n    \u003CNuxtLink v-if=\"prev\" :to=\"prev._path\">{{ prev.title }}\u003C/NuxtLink>\n    \u003CNuxtLink v-if=\"next\" :to=\"next._path\">{{ next.title }}\u003C/NuxtLink>\n  \u003C/div>\n\u003C/template>\n","PagePrevNext.vue",[702],{"type":173,"tag":181,"props":703,"children":704},{"__ignoreMap":167},[705,744,786,801,808,823,839,940,1033,1049],{"type":173,"tag":199,"props":706,"children":707},{"class":201,"line":202},[708,712,716,720,724,728,732,736,740],{"type":173,"tag":199,"props":709,"children":710},{"style":206},[711],{"type":178,"value":209},{"type":173,"tag":199,"props":713,"children":714},{"style":212},[715],{"type":178,"value":215},{"type":173,"tag":199,"props":717,"children":718},{"style":218},[719],{"type":178,"value":221},{"type":173,"tag":199,"props":721,"children":722},{"style":218},[723],{"type":178,"value":226},{"type":173,"tag":199,"props":725,"children":726},{"style":206},[727],{"type":178,"value":231},{"type":173,"tag":199,"props":729,"children":730},{"style":206},[731],{"type":178,"value":236},{"type":173,"tag":199,"props":733,"children":734},{"style":239},[735],{"type":178,"value":242},{"type":173,"tag":199,"props":737,"children":738},{"style":206},[739],{"type":178,"value":236},{"type":173,"tag":199,"props":741,"children":742},{"style":206},[743],{"type":178,"value":251},{"type":173,"tag":199,"props":745,"children":746},{"class":201,"line":254},[747,751,755,760,765,770,774,778,782],{"type":173,"tag":199,"props":748,"children":749},{"style":218},[750],{"type":178,"value":260},{"type":173,"tag":199,"props":752,"children":753},{"style":206},[754],{"type":178,"value":534},{"type":173,"tag":199,"props":756,"children":757},{"style":282},[758],{"type":178,"value":759}," prev",{"type":173,"tag":199,"props":761,"children":762},{"style":206},[763],{"type":178,"value":764},",",{"type":173,"tag":199,"props":766,"children":767},{"style":282},[768],{"type":178,"value":769}," next ",{"type":173,"tag":199,"props":771,"children":772},{"style":206},[773],{"type":178,"value":430},{"type":173,"tag":199,"props":775,"children":776},{"style":206},[777],{"type":178,"value":435},{"type":173,"tag":199,"props":779,"children":780},{"style":438},[781],{"type":178,"value":441},{"type":173,"tag":199,"props":783,"children":784},{"style":282},[785],{"type":178,"value":446},{"type":173,"tag":199,"props":787,"children":788},{"class":201,"line":268},[789,793,797],{"type":173,"tag":199,"props":790,"children":791},{"style":206},[792],{"type":178,"value":455},{"type":173,"tag":199,"props":794,"children":795},{"style":212},[796],{"type":178,"value":215},{"type":173,"tag":199,"props":798,"children":799},{"style":206},[800],{"type":178,"value":251},{"type":173,"tag":199,"props":802,"children":803},{"class":201,"line":278},[804],{"type":173,"tag":199,"props":805,"children":806},{"emptyLinePlaceholder":576},[807],{"type":178,"value":579},{"type":173,"tag":199,"props":809,"children":810},{"class":201,"line":293},[811,815,819],{"type":173,"tag":199,"props":812,"children":813},{"style":206},[814],{"type":178,"value":209},{"type":173,"tag":199,"props":816,"children":817},{"style":212},[818],{"type":178,"value":591},{"type":173,"tag":199,"props":820,"children":821},{"style":206},[822],{"type":178,"value":251},{"type":173,"tag":199,"props":824,"children":825},{"class":201,"line":306},[826,830,835],{"type":173,"tag":199,"props":827,"children":828},{"style":206},[829],{"type":178,"value":603},{"type":173,"tag":199,"props":831,"children":832},{"style":212},[833],{"type":178,"value":834},"div",{"type":173,"tag":199,"props":836,"children":837},{"style":206},[838],{"type":178,"value":251},{"type":173,"tag":199,"props":840,"children":841},{"class":201,"line":319},[842,847,852,858,862,866,871,875,879,884,888,892,896,900,905,909,914,918,922,927,932,936],{"type":173,"tag":199,"props":843,"children":844},{"style":206},[845],{"type":178,"value":846},"    \u003C",{"type":173,"tag":199,"props":848,"children":849},{"style":212},[850],{"type":178,"value":851},"NuxtLink",{"type":173,"tag":199,"props":853,"children":855},{"style":854},"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF;--shiki-light-font-style:italic;--shiki-default-font-style:italic;--shiki-dark-font-style:italic",[856],{"type":178,"value":857}," v-if",{"type":173,"tag":199,"props":859,"children":860},{"style":206},[861],{"type":178,"value":231},{"type":173,"tag":199,"props":863,"children":864},{"style":206},[865],{"type":178,"value":236},{"type":173,"tag":199,"props":867,"children":868},{"style":282},[869],{"type":178,"value":870},"prev",{"type":173,"tag":199,"props":872,"children":873},{"style":206},[874],{"type":178,"value":236},{"type":173,"tag":199,"props":876,"children":877},{"style":206},[878],{"type":178,"value":613},{"type":173,"tag":199,"props":880,"children":881},{"style":218},[882],{"type":178,"value":883},"to",{"type":173,"tag":199,"props":885,"children":886},{"style":206},[887],{"type":178,"value":231},{"type":173,"tag":199,"props":889,"children":890},{"style":206},[891],{"type":178,"value":236},{"type":173,"tag":199,"props":893,"children":894},{"style":282},[895],{"type":178,"value":870},{"type":173,"tag":199,"props":897,"children":898},{"style":206},[899],{"type":178,"value":636},{"type":173,"tag":199,"props":901,"children":902},{"style":282},[903],{"type":178,"value":904},"_path",{"type":173,"tag":199,"props":906,"children":907},{"style":206},[908],{"type":178,"value":236},{"type":173,"tag":199,"props":910,"children":911},{"style":206},[912],{"type":178,"value":913},">{{",{"type":173,"tag":199,"props":915,"children":916},{"style":282},[917],{"type":178,"value":759},{"type":173,"tag":199,"props":919,"children":920},{"style":206},[921],{"type":178,"value":636},{"type":173,"tag":199,"props":923,"children":924},{"style":282},[925],{"type":178,"value":926},"title ",{"type":173,"tag":199,"props":928,"children":929},{"style":206},[930],{"type":178,"value":931},"}}\u003C/",{"type":173,"tag":199,"props":933,"children":934},{"style":212},[935],{"type":178,"value":851},{"type":173,"tag":199,"props":937,"children":938},{"style":206},[939],{"type":178,"value":251},{"type":173,"tag":199,"props":941,"children":942},{"class":201,"line":332},[943,947,951,955,959,963,968,972,976,980,984,988,992,996,1000,1004,1008,1013,1017,1021,1025,1029],{"type":173,"tag":199,"props":944,"children":945},{"style":206},[946],{"type":178,"value":846},{"type":173,"tag":199,"props":948,"children":949},{"style":212},[950],{"type":178,"value":851},{"type":173,"tag":199,"props":952,"children":953},{"style":854},[954],{"type":178,"value":857},{"type":173,"tag":199,"props":956,"children":957},{"style":206},[958],{"type":178,"value":231},{"type":173,"tag":199,"props":960,"children":961},{"style":206},[962],{"type":178,"value":236},{"type":173,"tag":199,"props":964,"children":965},{"style":282},[966],{"type":178,"value":967},"next",{"type":173,"tag":199,"props":969,"children":970},{"style":206},[971],{"type":178,"value":236},{"type":173,"tag":199,"props":973,"children":974},{"style":206},[975],{"type":178,"value":613},{"type":173,"tag":199,"props":977,"children":978},{"style":218},[979],{"type":178,"value":883},{"type":173,"tag":199,"props":981,"children":982},{"style":206},[983],{"type":178,"value":231},{"type":173,"tag":199,"props":985,"children":986},{"style":206},[987],{"type":178,"value":236},{"type":173,"tag":199,"props":989,"children":990},{"style":282},[991],{"type":178,"value":967},{"type":173,"tag":199,"props":993,"children":994},{"style":206},[995],{"type":178,"value":636},{"type":173,"tag":199,"props":997,"children":998},{"style":282},[999],{"type":178,"value":904},{"type":173,"tag":199,"props":1001,"children":1002},{"style":206},[1003],{"type":178,"value":236},{"type":173,"tag":199,"props":1005,"children":1006},{"style":206},[1007],{"type":178,"value":913},{"type":173,"tag":199,"props":1009,"children":1010},{"style":282},[1011],{"type":178,"value":1012}," next",{"type":173,"tag":199,"props":1014,"children":1015},{"style":206},[1016],{"type":178,"value":636},{"type":173,"tag":199,"props":1018,"children":1019},{"style":282},[1020],{"type":178,"value":926},{"type":173,"tag":199,"props":1022,"children":1023},{"style":206},[1024],{"type":178,"value":931},{"type":173,"tag":199,"props":1026,"children":1027},{"style":212},[1028],{"type":178,"value":851},{"type":173,"tag":199,"props":1030,"children":1031},{"style":206},[1032],{"type":178,"value":251},{"type":173,"tag":199,"props":1034,"children":1035},{"class":201,"line":341},[1036,1041,1045],{"type":173,"tag":199,"props":1037,"children":1038},{"style":206},[1039],{"type":178,"value":1040},"  \u003C/",{"type":173,"tag":199,"props":1042,"children":1043},{"style":212},[1044],{"type":178,"value":834},{"type":173,"tag":199,"props":1046,"children":1047},{"style":206},[1048],{"type":178,"value":251},{"type":173,"tag":199,"props":1050,"children":1051},{"class":201,"line":354},[1052,1056,1060],{"type":173,"tag":199,"props":1053,"children":1054},{"style":206},[1055],{"type":178,"value":455},{"type":173,"tag":199,"props":1057,"children":1058},{"style":212},[1059],{"type":178,"value":591},{"type":173,"tag":199,"props":1061,"children":1062},{"style":206},[1063],{"type":178,"value":251},{"type":173,"tag":465,"props":1065,"children":1067},{"id":1066},"table-of-contents-component",[1068],{"type":178,"value":1069},"Table of Contents component",{"type":173,"tag":189,"props":1071,"children":1074},{"className":191,"code":1072,"filename":1073,"language":193,"meta":167,"style":167},"\u003Cscript setup lang=\"ts\">\nconst { toc } = useContent()\n\u003C/script>\n\n\u003Ctemplate>\n  \u003Cdiv>\n    \u003Cul v-if=\"toc && toc.links\">\n      \u003Cli v-for=\"link in toc.links\" :key=\"link.text\">\n        \u003Ca :href=\"`#${link.id}`\">\n          {{ link.text }}\n        \u003C/a>\n      \u003C/li>\n    \u003C/ul>\n  \u003C/div>\n\u003C/template>\n","PageToc.vue",[1075],{"type":173,"tag":181,"props":1076,"children":1077},{"__ignoreMap":167},[1078,1117,1149,1164,1171,1186,1201,1256,1344,1407,1434,1450,1466,1482,1497],{"type":173,"tag":199,"props":1079,"children":1080},{"class":201,"line":202},[1081,1085,1089,1093,1097,1101,1105,1109,1113],{"type":173,"tag":199,"props":1082,"children":1083},{"style":206},[1084],{"type":178,"value":209},{"type":173,"tag":199,"props":1086,"children":1087},{"style":212},[1088],{"type":178,"value":215},{"type":173,"tag":199,"props":1090,"children":1091},{"style":218},[1092],{"type":178,"value":221},{"type":173,"tag":199,"props":1094,"children":1095},{"style":218},[1096],{"type":178,"value":226},{"type":173,"tag":199,"props":1098,"children":1099},{"style":206},[1100],{"type":178,"value":231},{"type":173,"tag":199,"props":1102,"children":1103},{"style":206},[1104],{"type":178,"value":236},{"type":173,"tag":199,"props":1106,"children":1107},{"style":239},[1108],{"type":178,"value":242},{"type":173,"tag":199,"props":1110,"children":1111},{"style":206},[1112],{"type":178,"value":236},{"type":173,"tag":199,"props":1114,"children":1115},{"style":206},[1116],{"type":178,"value":251},{"type":173,"tag":199,"props":1118,"children":1119},{"class":201,"line":254},[1120,1124,1128,1133,1137,1141,1145],{"type":173,"tag":199,"props":1121,"children":1122},{"style":218},[1123],{"type":178,"value":260},{"type":173,"tag":199,"props":1125,"children":1126},{"style":206},[1127],{"type":178,"value":534},{"type":173,"tag":199,"props":1129,"children":1130},{"style":282},[1131],{"type":178,"value":1132}," toc ",{"type":173,"tag":199,"props":1134,"children":1135},{"style":206},[1136],{"type":178,"value":430},{"type":173,"tag":199,"props":1138,"children":1139},{"style":206},[1140],{"type":178,"value":435},{"type":173,"tag":199,"props":1142,"children":1143},{"style":438},[1144],{"type":178,"value":441},{"type":173,"tag":199,"props":1146,"children":1147},{"style":282},[1148],{"type":178,"value":446},{"type":173,"tag":199,"props":1150,"children":1151},{"class":201,"line":268},[1152,1156,1160],{"type":173,"tag":199,"props":1153,"children":1154},{"style":206},[1155],{"type":178,"value":455},{"type":173,"tag":199,"props":1157,"children":1158},{"style":212},[1159],{"type":178,"value":215},{"type":173,"tag":199,"props":1161,"children":1162},{"style":206},[1163],{"type":178,"value":251},{"type":173,"tag":199,"props":1165,"children":1166},{"class":201,"line":278},[1167],{"type":173,"tag":199,"props":1168,"children":1169},{"emptyLinePlaceholder":576},[1170],{"type":178,"value":579},{"type":173,"tag":199,"props":1172,"children":1173},{"class":201,"line":293},[1174,1178,1182],{"type":173,"tag":199,"props":1175,"children":1176},{"style":206},[1177],{"type":178,"value":209},{"type":173,"tag":199,"props":1179,"children":1180},{"style":212},[1181],{"type":178,"value":591},{"type":173,"tag":199,"props":1183,"children":1184},{"style":206},[1185],{"type":178,"value":251},{"type":173,"tag":199,"props":1187,"children":1188},{"class":201,"line":306},[1189,1193,1197],{"type":173,"tag":199,"props":1190,"children":1191},{"style":206},[1192],{"type":178,"value":603},{"type":173,"tag":199,"props":1194,"children":1195},{"style":212},[1196],{"type":178,"value":834},{"type":173,"tag":199,"props":1198,"children":1199},{"style":206},[1200],{"type":178,"value":251},{"type":173,"tag":199,"props":1202,"children":1203},{"class":201,"line":319},[1204,1208,1213,1217,1221,1225,1230,1235,1239,1243,1248,1252],{"type":173,"tag":199,"props":1205,"children":1206},{"style":206},[1207],{"type":178,"value":846},{"type":173,"tag":199,"props":1209,"children":1210},{"style":212},[1211],{"type":178,"value":1212},"ul",{"type":173,"tag":199,"props":1214,"children":1215},{"style":854},[1216],{"type":178,"value":857},{"type":173,"tag":199,"props":1218,"children":1219},{"style":206},[1220],{"type":178,"value":231},{"type":173,"tag":199,"props":1222,"children":1223},{"style":206},[1224],{"type":178,"value":236},{"type":173,"tag":199,"props":1226,"children":1227},{"style":282},[1228],{"type":178,"value":1229},"toc",{"type":173,"tag":199,"props":1231,"children":1232},{"style":206},[1233],{"type":178,"value":1234}," && ",{"type":173,"tag":199,"props":1236,"children":1237},{"style":282},[1238],{"type":178,"value":1229},{"type":173,"tag":199,"props":1240,"children":1241},{"style":206},[1242],{"type":178,"value":636},{"type":173,"tag":199,"props":1244,"children":1245},{"style":282},[1246],{"type":178,"value":1247},"links",{"type":173,"tag":199,"props":1249,"children":1250},{"style":206},[1251],{"type":178,"value":236},{"type":173,"tag":199,"props":1253,"children":1254},{"style":206},[1255],{"type":178,"value":251},{"type":173,"tag":199,"props":1257,"children":1258},{"class":201,"line":332},[1259,1264,1269,1274,1278,1282,1287,1292,1296,1300,1304,1308,1312,1316,1320,1324,1328,1332,1336,1340],{"type":173,"tag":199,"props":1260,"children":1261},{"style":206},[1262],{"type":178,"value":1263},"      \u003C",{"type":173,"tag":199,"props":1265,"children":1266},{"style":212},[1267],{"type":178,"value":1268},"li",{"type":173,"tag":199,"props":1270,"children":1271},{"style":854},[1272],{"type":178,"value":1273}," v-for",{"type":173,"tag":199,"props":1275,"children":1276},{"style":206},[1277],{"type":178,"value":231},{"type":173,"tag":199,"props":1279,"children":1280},{"style":206},[1281],{"type":178,"value":236},{"type":173,"tag":199,"props":1283,"children":1284},{"style":282},[1285],{"type":178,"value":1286},"link",{"type":173,"tag":199,"props":1288,"children":1289},{"style":206},[1290],{"type":178,"value":1291}," in ",{"type":173,"tag":199,"props":1293,"children":1294},{"style":282},[1295],{"type":178,"value":1229},{"type":173,"tag":199,"props":1297,"children":1298},{"style":206},[1299],{"type":178,"value":636},{"type":173,"tag":199,"props":1301,"children":1302},{"style":282},[1303],{"type":178,"value":1247},{"type":173,"tag":199,"props":1305,"children":1306},{"style":206},[1307],{"type":178,"value":236},{"type":173,"tag":199,"props":1309,"children":1310},{"style":206},[1311],{"type":178,"value":613},{"type":173,"tag":199,"props":1313,"children":1314},{"style":218},[1315],{"type":178,"value":618},{"type":173,"tag":199,"props":1317,"children":1318},{"style":206},[1319],{"type":178,"value":231},{"type":173,"tag":199,"props":1321,"children":1322},{"style":206},[1323],{"type":178,"value":236},{"type":173,"tag":199,"props":1325,"children":1326},{"style":282},[1327],{"type":178,"value":1286},{"type":173,"tag":199,"props":1329,"children":1330},{"style":206},[1331],{"type":178,"value":636},{"type":173,"tag":199,"props":1333,"children":1334},{"style":282},[1335],{"type":178,"value":178},{"type":173,"tag":199,"props":1337,"children":1338},{"style":206},[1339],{"type":178,"value":236},{"type":173,"tag":199,"props":1341,"children":1342},{"style":206},[1343],{"type":178,"value":251},{"type":173,"tag":199,"props":1345,"children":1346},{"class":201,"line":341},[1347,1352,1357,1361,1366,1370,1375,1380,1385,1389,1393,1398,1403],{"type":173,"tag":199,"props":1348,"children":1349},{"style":206},[1350],{"type":178,"value":1351},"        \u003C",{"type":173,"tag":199,"props":1353,"children":1354},{"style":212},[1355],{"type":178,"value":1356},"a",{"type":173,"tag":199,"props":1358,"children":1359},{"style":206},[1360],{"type":178,"value":613},{"type":173,"tag":199,"props":1362,"children":1363},{"style":218},[1364],{"type":178,"value":1365},"href",{"type":173,"tag":199,"props":1367,"children":1368},{"style":206},[1369],{"type":178,"value":231},{"type":173,"tag":199,"props":1371,"children":1372},{"style":206},[1373],{"type":178,"value":1374},"\"`",{"type":173,"tag":199,"props":1376,"children":1377},{"style":239},[1378],{"type":178,"value":1379},"#",{"type":173,"tag":199,"props":1381,"children":1382},{"style":206},[1383],{"type":178,"value":1384},"${",{"type":173,"tag":199,"props":1386,"children":1387},{"style":282},[1388],{"type":178,"value":1286},{"type":173,"tag":199,"props":1390,"children":1391},{"style":206},[1392],{"type":178,"value":636},{"type":173,"tag":199,"props":1394,"children":1395},{"style":282},[1396],{"type":178,"value":1397},"id",{"type":173,"tag":199,"props":1399,"children":1400},{"style":206},[1401],{"type":178,"value":1402},"}`\"",{"type":173,"tag":199,"props":1404,"children":1405},{"style":206},[1406],{"type":178,"value":251},{"type":173,"tag":199,"props":1408,"children":1409},{"class":201,"line":354},[1410,1415,1420,1424,1429],{"type":173,"tag":199,"props":1411,"children":1412},{"style":206},[1413],{"type":178,"value":1414},"          {{",{"type":173,"tag":199,"props":1416,"children":1417},{"style":282},[1418],{"type":178,"value":1419}," link",{"type":173,"tag":199,"props":1421,"children":1422},{"style":206},[1423],{"type":178,"value":636},{"type":173,"tag":199,"props":1425,"children":1426},{"style":282},[1427],{"type":178,"value":1428},"text ",{"type":173,"tag":199,"props":1430,"children":1431},{"style":206},[1432],{"type":178,"value":1433},"}}\n",{"type":173,"tag":199,"props":1435,"children":1436},{"class":201,"line":367},[1437,1442,1446],{"type":173,"tag":199,"props":1438,"children":1439},{"style":206},[1440],{"type":178,"value":1441},"        \u003C/",{"type":173,"tag":199,"props":1443,"children":1444},{"style":212},[1445],{"type":178,"value":1356},{"type":173,"tag":199,"props":1447,"children":1448},{"style":206},[1449],{"type":178,"value":251},{"type":173,"tag":199,"props":1451,"children":1452},{"class":201,"line":380},[1453,1458,1462],{"type":173,"tag":199,"props":1454,"children":1455},{"style":206},[1456],{"type":178,"value":1457},"      \u003C/",{"type":173,"tag":199,"props":1459,"children":1460},{"style":212},[1461],{"type":178,"value":1268},{"type":173,"tag":199,"props":1463,"children":1464},{"style":206},[1465],{"type":178,"value":251},{"type":173,"tag":199,"props":1467,"children":1468},{"class":201,"line":393},[1469,1474,1478],{"type":173,"tag":199,"props":1470,"children":1471},{"style":206},[1472],{"type":178,"value":1473},"    \u003C/",{"type":173,"tag":199,"props":1475,"children":1476},{"style":212},[1477],{"type":178,"value":1212},{"type":173,"tag":199,"props":1479,"children":1480},{"style":206},[1481],{"type":178,"value":251},{"type":173,"tag":199,"props":1483,"children":1484},{"class":201,"line":402},[1485,1489,1493],{"type":173,"tag":199,"props":1486,"children":1487},{"style":206},[1488],{"type":178,"value":1040},{"type":173,"tag":199,"props":1490,"children":1491},{"style":212},[1492],{"type":178,"value":834},{"type":173,"tag":199,"props":1494,"children":1495},{"style":206},[1496],{"type":178,"value":251},{"type":173,"tag":199,"props":1498,"children":1499},{"class":201,"line":415},[1500,1504,1508],{"type":173,"tag":199,"props":1501,"children":1502},{"style":206},[1503],{"type":178,"value":455},{"type":173,"tag":199,"props":1505,"children":1506},{"style":212},[1507],{"type":178,"value":591},{"type":173,"tag":199,"props":1509,"children":1510},{"style":206},[1511],{"type":178,"value":251},{"type":173,"tag":1513,"props":1514,"children":1515},"style",{},[1516],{"type":178,"value":1517},"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);}",{"title":167,"searchDepth":254,"depth":254,"links":1519},[1520,1521,1522],{"id":467,"depth":254,"text":470},{"id":693,"depth":254,"text":696},{"id":1066,"depth":254,"text":1069},"markdown","content:5.document-driven:2.use-content.md","content","5.document-driven/2.use-content.md","5.document-driven/2.use-content","md",[1530,3727],{"_path":98,"_dir":165,"_draft":166,"_partial":166,"_locale":167,"title":97,"description":1531,"body":1532,"_type":1523,"_id":3724,"_source":1525,"_file":3725,"_stem":3726,"_extension":1528},"The Document-driven mode gives a lot more power to Markdown-based websites.",{"type":170,"children":1533,"toc":3707},[1534,1551,1557,1564,1589,1719,1725,1730,1817,1828,1834,1848,1862,1870,1882,1888,1893,1906,1918,1923,1997,2009,2014,2084,2090,2095,2151,2164,2182,2306,2340,2346,2360,2383,2420,2578,2584,2589,2609,2848,2868,2887,2936,2941,2947,2959,2965,2999,3104,3110,3122,3279,3285,3304,3504,3703],{"type":173,"tag":1535,"props":1536,"children":1537},"callout",{},[1538],{"type":173,"tag":174,"props":1539,"children":1540},{},[1541,1543,1549],{"type":178,"value":1542},"Note that this mode is still experimental and may break in the future. We are considering a more stable API for the future leveraging ",{"type":173,"tag":181,"props":1544,"children":1546},{"className":1545},[],[1547],{"type":178,"value":1548},"pages/*.md",{"type":178,"value":1550}," files.",{"type":173,"tag":465,"props":1552,"children":1554},{"id":1553},"enable-the-mode",[1555],{"type":178,"value":1556},"Enable the mode",{"type":173,"tag":1558,"props":1559,"children":1561},"h3",{"id":1560},"existing-project",[1562],{"type":178,"value":1563},"Existing project",{"type":173,"tag":174,"props":1565,"children":1566},{},[1567,1569,1579,1581,1587],{"type":178,"value":1568},"Add the ",{"type":173,"tag":1356,"props":1570,"children":1572},{"href":1571},"/get-started/configuration#documentdriven",[1573],{"type":173,"tag":181,"props":1574,"children":1576},{"className":1575},[],[1577],{"type":178,"value":1578},"documentDriven",{"type":178,"value":1580}," option in the ",{"type":173,"tag":181,"props":1582,"children":1584},{"className":1583},[],[1585],{"type":178,"value":1586},"nuxt.config",{"type":178,"value":1588},":",{"type":173,"tag":189,"props":1590,"children":1593},{"code":1591,"language":242,"meta":167,"className":1592,"style":167},"export default defineNuxtConfig({\n  modules: ['@nuxt/content'],\n  content: {\n    documentDriven: true\n  }\n})\n","language-ts shiki shiki-themes material-theme-lighter material-theme material-theme-palenight",[1594],{"type":173,"tag":181,"props":1595,"children":1596},{"__ignoreMap":167},[1597,1625,1665,1681,1699,1707],{"type":173,"tag":199,"props":1598,"children":1599},{"class":201,"line":202},[1600,1605,1610,1615,1620],{"type":173,"tag":199,"props":1601,"children":1602},{"style":854},[1603],{"type":178,"value":1604},"export",{"type":173,"tag":199,"props":1606,"children":1607},{"style":854},[1608],{"type":178,"value":1609}," default",{"type":173,"tag":199,"props":1611,"children":1612},{"style":438},[1613],{"type":178,"value":1614}," defineNuxtConfig",{"type":173,"tag":199,"props":1616,"children":1617},{"style":282},[1618],{"type":178,"value":1619},"(",{"type":173,"tag":199,"props":1621,"children":1622},{"style":206},[1623],{"type":178,"value":1624},"{\n",{"type":173,"tag":199,"props":1626,"children":1627},{"class":201,"line":254},[1628,1633,1637,1642,1647,1652,1656,1661],{"type":173,"tag":199,"props":1629,"children":1630},{"style":212},[1631],{"type":178,"value":1632},"  modules",{"type":173,"tag":199,"props":1634,"children":1635},{"style":206},[1636],{"type":178,"value":1588},{"type":173,"tag":199,"props":1638,"children":1639},{"style":282},[1640],{"type":178,"value":1641}," [",{"type":173,"tag":199,"props":1643,"children":1644},{"style":206},[1645],{"type":178,"value":1646},"'",{"type":173,"tag":199,"props":1648,"children":1649},{"style":239},[1650],{"type":178,"value":1651},"@nuxt/content",{"type":173,"tag":199,"props":1653,"children":1654},{"style":206},[1655],{"type":178,"value":1646},{"type":173,"tag":199,"props":1657,"children":1658},{"style":282},[1659],{"type":178,"value":1660},"]",{"type":173,"tag":199,"props":1662,"children":1663},{"style":206},[1664],{"type":178,"value":290},{"type":173,"tag":199,"props":1666,"children":1667},{"class":201,"line":268},[1668,1673,1677],{"type":173,"tag":199,"props":1669,"children":1670},{"style":212},[1671],{"type":178,"value":1672},"  content",{"type":173,"tag":199,"props":1674,"children":1675},{"style":206},[1676],{"type":178,"value":1588},{"type":173,"tag":199,"props":1678,"children":1679},{"style":206},[1680],{"type":178,"value":265},{"type":173,"tag":199,"props":1682,"children":1683},{"class":201,"line":278},[1684,1689,1693],{"type":173,"tag":199,"props":1685,"children":1686},{"style":212},[1687],{"type":178,"value":1688},"    documentDriven",{"type":173,"tag":199,"props":1690,"children":1691},{"style":206},[1692],{"type":178,"value":1588},{"type":173,"tag":199,"props":1694,"children":1696},{"style":1695},"--shiki-light:#FF5370;--shiki-default:#FF9CAC;--shiki-dark:#FF9CAC",[1697],{"type":178,"value":1698}," true\n",{"type":173,"tag":199,"props":1700,"children":1701},{"class":201,"line":293},[1702],{"type":173,"tag":199,"props":1703,"children":1704},{"style":206},[1705],{"type":178,"value":1706},"  }\n",{"type":173,"tag":199,"props":1708,"children":1709},{"class":201,"line":306},[1710,1714],{"type":173,"tag":199,"props":1711,"children":1712},{"style":206},[1713],{"type":178,"value":430},{"type":173,"tag":199,"props":1715,"children":1716},{"style":282},[1717],{"type":178,"value":1718},")\n",{"type":173,"tag":1558,"props":1720,"children":1722},{"id":1721},"fresh-project",[1723],{"type":178,"value":1724},"Fresh project",{"type":173,"tag":174,"props":1726,"children":1727},{},[1728],{"type":178,"value":1729},"Start a new project with the document-driven mode enabled:",{"type":173,"tag":1731,"props":1732,"children":1733},"code-group",{},[1734,1777],{"type":173,"tag":189,"props":1735,"children":1740},{"code":1736,"filename":1737,"language":1738,"meta":167,"className":1739,"style":167},"npx nuxi init doc-driven-app -t doc-driven\n","npx","bash","language-bash shiki shiki-themes material-theme-lighter material-theme material-theme-palenight",[1741],{"type":173,"tag":181,"props":1742,"children":1743},{"__ignoreMap":167},[1744],{"type":173,"tag":199,"props":1745,"children":1746},{"class":201,"line":202},[1747,1752,1757,1762,1767,1772],{"type":173,"tag":199,"props":1748,"children":1750},{"style":1749},"--shiki-light:#E2931D;--shiki-default:#FFCB6B;--shiki-dark:#FFCB6B",[1751],{"type":178,"value":1737},{"type":173,"tag":199,"props":1753,"children":1754},{"style":239},[1755],{"type":178,"value":1756}," nuxi",{"type":173,"tag":199,"props":1758,"children":1759},{"style":239},[1760],{"type":178,"value":1761}," init",{"type":173,"tag":199,"props":1763,"children":1764},{"style":239},[1765],{"type":178,"value":1766}," doc-driven-app",{"type":173,"tag":199,"props":1768,"children":1769},{"style":239},[1770],{"type":178,"value":1771}," -t",{"type":173,"tag":199,"props":1773,"children":1774},{"style":239},[1775],{"type":178,"value":1776}," doc-driven\n",{"type":173,"tag":189,"props":1778,"children":1781},{"code":1779,"filename":1780,"language":1738,"meta":167,"className":1739,"style":167},"pnpm dlx nuxi init doc-driven-app -t doc-driven\n","pnpm",[1782],{"type":173,"tag":181,"props":1783,"children":1784},{"__ignoreMap":167},[1785],{"type":173,"tag":199,"props":1786,"children":1787},{"class":201,"line":202},[1788,1792,1797,1801,1805,1809,1813],{"type":173,"tag":199,"props":1789,"children":1790},{"style":1749},[1791],{"type":178,"value":1780},{"type":173,"tag":199,"props":1793,"children":1794},{"style":239},[1795],{"type":178,"value":1796}," dlx",{"type":173,"tag":199,"props":1798,"children":1799},{"style":239},[1800],{"type":178,"value":1756},{"type":173,"tag":199,"props":1802,"children":1803},{"style":239},[1804],{"type":178,"value":1761},{"type":173,"tag":199,"props":1806,"children":1807},{"style":239},[1808],{"type":178,"value":1766},{"type":173,"tag":199,"props":1810,"children":1811},{"style":239},[1812],{"type":178,"value":1771},{"type":173,"tag":199,"props":1814,"children":1815},{"style":239},[1816],{"type":178,"value":1776},{"type":173,"tag":174,"props":1818,"children":1819},{},[1820,1822,1827],{"type":178,"value":1821},"You can also use an object to configure the behavior of the mode, checkout the ",{"type":173,"tag":1356,"props":1823,"children":1824},{"href":1571},[1825],{"type":178,"value":1826},"configuration section",{"type":178,"value":636},{"type":173,"tag":465,"props":1829,"children":1831},{"id":1830},"catch-all-page",[1832],{"type":178,"value":1833},"Catch-all page",{"type":173,"tag":174,"props":1835,"children":1836},{},[1837,1839,1847],{"type":178,"value":1838},"The document driven mode ships a pre-configured ",{"type":173,"tag":1356,"props":1840,"children":1844},{"href":1841,"rel":1842},"https://nuxt.com/docs/guide/directory-structure/pages#catch-all-route",[1843],"nofollow",[1845],{"type":178,"value":1846},"catch-all route",{"type":178,"value":636},{"type":173,"tag":174,"props":1849,"children":1850},{},[1851,1853,1860],{"type":178,"value":1852},"This ",{"type":173,"tag":1356,"props":1854,"children":1857},{"href":1855,"rel":1856},"https://github.com/nuxt/content/blob/main/src/runtime/pages/document-driven.vue",[1843],[1858],{"type":178,"value":1859},"injected Vue page",{"type":178,"value":1861}," is useful for having a minimal project structure:",{"type":173,"tag":189,"props":1863,"children":1865},{"code":1864},"my-project/\n  content/\n    index.md\n  nuxt.config.ts\n  package.json\n  tsconfig.json\n",[1866],{"type":173,"tag":181,"props":1867,"children":1868},{"__ignoreMap":167},[1869],{"type":178,"value":1864},{"type":173,"tag":174,"props":1871,"children":1872},{},[1873,1875,1880],{"type":178,"value":1874},"It comes with a direct binding between your page's meta data to the OpenGraph tags using the ",{"type":173,"tag":1356,"props":1876,"children":1877},{"href":57},[1878],{"type":178,"value":1879},"useContentHead() composable",{"type":178,"value":1881},", providing effective SEO with no configuration.",{"type":173,"tag":1558,"props":1883,"children":1885},{"id":1884},"page-slots",[1886],{"type":178,"value":1887},"Page slots",{"type":173,"tag":174,"props":1889,"children":1890},{},[1891],{"type":178,"value":1892},"The page comes with 2 slot components that you can replace at your project level.",{"type":173,"tag":174,"props":1894,"children":1895},{},[1896,1898,1904],{"type":178,"value":1897},"To do so, you only have to create a component with the same name in your project ",{"type":173,"tag":181,"props":1899,"children":1901},{"className":1900},[],[1902],{"type":178,"value":1903},"components/",{"type":178,"value":1905}," directory.",{"type":173,"tag":1212,"props":1907,"children":1908},{},[1909],{"type":173,"tag":1268,"props":1910,"children":1911},{},[1912],{"type":173,"tag":181,"props":1913,"children":1915},{"className":1914},[],[1916],{"type":178,"value":1917},"\u003CDocumentDrivenNotFound />",{"type":173,"tag":174,"props":1919,"children":1920},{},[1921],{"type":178,"value":1922},"This component will be shown when no page has been found for the current URL.",{"type":173,"tag":189,"props":1924,"children":1929},{"code":1925,"filename":1926,"language":1927,"meta":167,"className":1928,"style":167},"\u003Ctemplate>\n  \u003Ch1>Page not found\u003C/h1>\n\u003C/template>\n","components/DocumentDrivenNotFound.vue","html","language-html shiki shiki-themes material-theme-lighter material-theme material-theme-palenight",[1930],{"type":173,"tag":181,"props":1931,"children":1932},{"__ignoreMap":167},[1933,1948,1982],{"type":173,"tag":199,"props":1934,"children":1935},{"class":201,"line":202},[1936,1940,1944],{"type":173,"tag":199,"props":1937,"children":1938},{"style":206},[1939],{"type":178,"value":209},{"type":173,"tag":199,"props":1941,"children":1942},{"style":212},[1943],{"type":178,"value":591},{"type":173,"tag":199,"props":1945,"children":1946},{"style":206},[1947],{"type":178,"value":251},{"type":173,"tag":199,"props":1949,"children":1950},{"class":201,"line":254},[1951,1955,1960,1965,1970,1974,1978],{"type":173,"tag":199,"props":1952,"children":1953},{"style":206},[1954],{"type":178,"value":603},{"type":173,"tag":199,"props":1956,"children":1957},{"style":212},[1958],{"type":178,"value":1959},"h1",{"type":173,"tag":199,"props":1961,"children":1962},{"style":206},[1963],{"type":178,"value":1964},">",{"type":173,"tag":199,"props":1966,"children":1967},{"style":282},[1968],{"type":178,"value":1969},"Page not found",{"type":173,"tag":199,"props":1971,"children":1972},{"style":206},[1973],{"type":178,"value":455},{"type":173,"tag":199,"props":1975,"children":1976},{"style":212},[1977],{"type":178,"value":1959},{"type":173,"tag":199,"props":1979,"children":1980},{"style":206},[1981],{"type":178,"value":251},{"type":173,"tag":199,"props":1983,"children":1984},{"class":201,"line":268},[1985,1989,1993],{"type":173,"tag":199,"props":1986,"children":1987},{"style":206},[1988],{"type":178,"value":455},{"type":173,"tag":199,"props":1990,"children":1991},{"style":212},[1992],{"type":178,"value":591},{"type":173,"tag":199,"props":1994,"children":1995},{"style":206},[1996],{"type":178,"value":251},{"type":173,"tag":1212,"props":1998,"children":1999},{},[2000],{"type":173,"tag":1268,"props":2001,"children":2002},{},[2003],{"type":173,"tag":181,"props":2004,"children":2006},{"className":2005},[],[2007],{"type":178,"value":2008},"\u003CDocumentDrivenEmpty />",{"type":173,"tag":174,"props":2010,"children":2011},{},[2012],{"type":178,"value":2013},"This component will be shown when there is no content for the current page, but the page exists.",{"type":173,"tag":189,"props":2015,"children":2018},{"code":2016,"filename":2017,"language":1927,"meta":167,"className":1928,"style":167},"\u003Ctemplate>\n  \u003Ch1>This page is empty\u003C/h1>\n\u003C/template>\n","components/DocumentDrivenEmpty.vue",[2019],{"type":173,"tag":181,"props":2020,"children":2021},{"__ignoreMap":167},[2022,2037,2069],{"type":173,"tag":199,"props":2023,"children":2024},{"class":201,"line":202},[2025,2029,2033],{"type":173,"tag":199,"props":2026,"children":2027},{"style":206},[2028],{"type":178,"value":209},{"type":173,"tag":199,"props":2030,"children":2031},{"style":212},[2032],{"type":178,"value":591},{"type":173,"tag":199,"props":2034,"children":2035},{"style":206},[2036],{"type":178,"value":251},{"type":173,"tag":199,"props":2038,"children":2039},{"class":201,"line":254},[2040,2044,2048,2052,2057,2061,2065],{"type":173,"tag":199,"props":2041,"children":2042},{"style":206},[2043],{"type":178,"value":603},{"type":173,"tag":199,"props":2045,"children":2046},{"style":212},[2047],{"type":178,"value":1959},{"type":173,"tag":199,"props":2049,"children":2050},{"style":206},[2051],{"type":178,"value":1964},{"type":173,"tag":199,"props":2053,"children":2054},{"style":282},[2055],{"type":178,"value":2056},"This page is empty",{"type":173,"tag":199,"props":2058,"children":2059},{"style":206},[2060],{"type":178,"value":455},{"type":173,"tag":199,"props":2062,"children":2063},{"style":212},[2064],{"type":178,"value":1959},{"type":173,"tag":199,"props":2066,"children":2067},{"style":206},[2068],{"type":178,"value":251},{"type":173,"tag":199,"props":2070,"children":2071},{"class":201,"line":268},[2072,2076,2080],{"type":173,"tag":199,"props":2073,"children":2074},{"style":206},[2075],{"type":178,"value":455},{"type":173,"tag":199,"props":2077,"children":2078},{"style":212},[2079],{"type":178,"value":591},{"type":173,"tag":199,"props":2081,"children":2082},{"style":206},[2083],{"type":178,"value":251},{"type":173,"tag":465,"props":2085,"children":2087},{"id":2086},"layout-binding",[2088],{"type":178,"value":2089},"Layout binding",{"type":173,"tag":174,"props":2091,"children":2092},{},[2093],{"type":178,"value":2094},"As the page data is available beforehand, the layout can be defined in the page front-matter:",{"type":173,"tag":189,"props":2096,"children":2100},{"code":2097,"filename":2098,"language":1528,"meta":167,"className":2099,"style":167},"---\nlayout: article\n---\n\nThis page will use the article layout!\n","content/blog/hello-world.md","language-md shiki shiki-themes material-theme-lighter material-theme material-theme-palenight",[2101],{"type":173,"tag":181,"props":2102,"children":2103},{"__ignoreMap":167},[2104,2112,2129,2136,2143],{"type":173,"tag":199,"props":2105,"children":2106},{"class":201,"line":202},[2107],{"type":173,"tag":199,"props":2108,"children":2109},{"style":282},[2110],{"type":178,"value":2111},"---\n",{"type":173,"tag":199,"props":2113,"children":2114},{"class":201,"line":254},[2115,2120,2124],{"type":173,"tag":199,"props":2116,"children":2117},{"style":212},[2118],{"type":178,"value":2119},"layout",{"type":173,"tag":199,"props":2121,"children":2122},{"style":206},[2123],{"type":178,"value":1588},{"type":173,"tag":199,"props":2125,"children":2126},{"style":239},[2127],{"type":178,"value":2128}," article\n",{"type":173,"tag":199,"props":2130,"children":2131},{"class":201,"line":268},[2132],{"type":173,"tag":199,"props":2133,"children":2134},{"style":282},[2135],{"type":178,"value":2111},{"type":173,"tag":199,"props":2137,"children":2138},{"class":201,"line":278},[2139],{"type":173,"tag":199,"props":2140,"children":2141},{"emptyLinePlaceholder":576},[2142],{"type":178,"value":579},{"type":173,"tag":199,"props":2144,"children":2145},{"class":201,"line":293},[2146],{"type":173,"tag":199,"props":2147,"children":2148},{"style":282},[2149],{"type":178,"value":2150},"This page will use the article layout!\n",{"type":173,"tag":174,"props":2152,"children":2153},{},[2154,2156,2162],{"type":178,"value":2155},"By default, it uses the ",{"type":173,"tag":181,"props":2157,"children":2159},{"className":2158},[],[2160],{"type":178,"value":2161},"default",{"type":178,"value":2163}," layout if none is specified.",{"type":173,"tag":174,"props":2165,"children":2166},{},[2167,2169,2175,2176,2181],{"type":178,"value":2168},"If you want to use another layout by default, use the ",{"type":173,"tag":181,"props":2170,"children":2172},{"className":2171},[],[2173],{"type":178,"value":2174},"layoutFallbacks",{"type":178,"value":1580},{"type":173,"tag":181,"props":2177,"children":2179},{"className":2178},[],[2180],{"type":178,"value":1586},{"type":178,"value":1588},{"type":173,"tag":189,"props":2183,"children":2186},{"code":2184,"filename":2185,"language":242,"meta":167,"className":1592,"style":167},"export default defineNuxtConfig({\n  content: {\n    documentDriven: {\n      layoutFallbacks: ['theme'],\n    }\n  }\n})\n","nuxt.config.ts",[2187],{"type":173,"tag":181,"props":2188,"children":2189},{"__ignoreMap":167},[2190,2213,2228,2243,2280,2288,2295],{"type":173,"tag":199,"props":2191,"children":2192},{"class":201,"line":202},[2193,2197,2201,2205,2209],{"type":173,"tag":199,"props":2194,"children":2195},{"style":854},[2196],{"type":178,"value":1604},{"type":173,"tag":199,"props":2198,"children":2199},{"style":854},[2200],{"type":178,"value":1609},{"type":173,"tag":199,"props":2202,"children":2203},{"style":438},[2204],{"type":178,"value":1614},{"type":173,"tag":199,"props":2206,"children":2207},{"style":282},[2208],{"type":178,"value":1619},{"type":173,"tag":199,"props":2210,"children":2211},{"style":206},[2212],{"type":178,"value":1624},{"type":173,"tag":199,"props":2214,"children":2215},{"class":201,"line":254},[2216,2220,2224],{"type":173,"tag":199,"props":2217,"children":2218},{"style":212},[2219],{"type":178,"value":1672},{"type":173,"tag":199,"props":2221,"children":2222},{"style":206},[2223],{"type":178,"value":1588},{"type":173,"tag":199,"props":2225,"children":2226},{"style":206},[2227],{"type":178,"value":265},{"type":173,"tag":199,"props":2229,"children":2230},{"class":201,"line":268},[2231,2235,2239],{"type":173,"tag":199,"props":2232,"children":2233},{"style":212},[2234],{"type":178,"value":1688},{"type":173,"tag":199,"props":2236,"children":2237},{"style":206},[2238],{"type":178,"value":1588},{"type":173,"tag":199,"props":2240,"children":2241},{"style":206},[2242],{"type":178,"value":265},{"type":173,"tag":199,"props":2244,"children":2245},{"class":201,"line":278},[2246,2251,2255,2259,2263,2268,2272,2276],{"type":173,"tag":199,"props":2247,"children":2248},{"style":212},[2249],{"type":178,"value":2250},"      layoutFallbacks",{"type":173,"tag":199,"props":2252,"children":2253},{"style":206},[2254],{"type":178,"value":1588},{"type":173,"tag":199,"props":2256,"children":2257},{"style":282},[2258],{"type":178,"value":1641},{"type":173,"tag":199,"props":2260,"children":2261},{"style":206},[2262],{"type":178,"value":1646},{"type":173,"tag":199,"props":2264,"children":2265},{"style":239},[2266],{"type":178,"value":2267},"theme",{"type":173,"tag":199,"props":2269,"children":2270},{"style":206},[2271],{"type":178,"value":1646},{"type":173,"tag":199,"props":2273,"children":2274},{"style":282},[2275],{"type":178,"value":1660},{"type":173,"tag":199,"props":2277,"children":2278},{"style":206},[2279],{"type":178,"value":290},{"type":173,"tag":199,"props":2281,"children":2282},{"class":201,"line":293},[2283],{"type":173,"tag":199,"props":2284,"children":2285},{"style":206},[2286],{"type":178,"value":2287},"    }\n",{"type":173,"tag":199,"props":2289,"children":2290},{"class":201,"line":306},[2291],{"type":173,"tag":199,"props":2292,"children":2293},{"style":206},[2294],{"type":178,"value":1706},{"type":173,"tag":199,"props":2296,"children":2297},{"class":201,"line":319},[2298,2302],{"type":173,"tag":199,"props":2299,"children":2300},{"style":206},[2301],{"type":178,"value":430},{"type":173,"tag":199,"props":2303,"children":2304},{"style":282},[2305],{"type":178,"value":1718},{"type":173,"tag":174,"props":2307,"children":2308},{},[2309,2311,2316,2318,2324,2326,2331,2333,2338],{"type":178,"value":2310},"This option will search for a ",{"type":173,"tag":181,"props":2312,"children":2314},{"className":2313},[],[2315],{"type":178,"value":2267},{"type":178,"value":2317}," key in ",{"type":173,"tag":181,"props":2319,"children":2321},{"className":2320},[],[2322],{"type":178,"value":2323},"globals",{"type":178,"value":2325},", then search for a ",{"type":173,"tag":181,"props":2327,"children":2329},{"className":2328},[],[2330],{"type":178,"value":2119},{"type":178,"value":2332}," key inside that object. If found, that ",{"type":173,"tag":181,"props":2334,"children":2336},{"className":2335},[],[2337],{"type":178,"value":2119},{"type":178,"value":2339}," key will be used as a fallback.",{"type":173,"tag":465,"props":2341,"children":2343},{"id":2342},"global-variables",[2344],{"type":178,"value":2345},"Global variables",{"type":173,"tag":174,"props":2347,"children":2348},{},[2349,2351,2358],{"type":178,"value":2350},"Queries are being made from a ",{"type":173,"tag":1356,"props":2352,"children":2355},{"href":2353,"rel":2354},"https://nuxt.com/docs/guide/directory-structure/middleware",[1843],[2356],{"type":178,"value":2357},"route middleware",{"type":178,"value":2359}," and are resolved before your page renders.",{"type":173,"tag":174,"props":2361,"children":2362},{},[2363,2365,2373,2375,2381],{"type":178,"value":2364},"This gives access to the ",{"type":173,"tag":1356,"props":2366,"children":2367},{"href":101},[2368],{"type":173,"tag":181,"props":2369,"children":2371},{"className":2370},[],[2372],{"type":178,"value":100},{"type":178,"value":2374}," composable ",{"type":173,"tag":2376,"props":2377,"children":2378},"strong",{},[2379],{"type":178,"value":2380},"anywhere in your app",{"type":178,"value":2382}," with the following variables:",{"type":173,"tag":1212,"props":2384,"children":2385},{},[2386,2394,2403,2412],{"type":173,"tag":1268,"props":2387,"children":2388},{},[2389],{"type":173,"tag":181,"props":2390,"children":2392},{"className":2391},[],[2393],{"type":178,"value":631},{"type":173,"tag":1268,"props":2395,"children":2396},{},[2397],{"type":173,"tag":181,"props":2398,"children":2400},{"className":2399},[],[2401],{"type":178,"value":2402},"surround",{"type":173,"tag":1268,"props":2404,"children":2405},{},[2406],{"type":173,"tag":181,"props":2407,"children":2409},{"className":2408},[],[2410],{"type":178,"value":2411},"navigation",{"type":173,"tag":1268,"props":2413,"children":2414},{},[2415],{"type":173,"tag":181,"props":2416,"children":2418},{"className":2417},[],[2419],{"type":178,"value":2323},{"type":173,"tag":189,"props":2421,"children":2423},{"code":2422,"language":1927,"meta":167,"className":1928,"style":167},"\u003Cscript setup lang=\"ts\">\nconst { navigation, page, surround, globals } = useContent()\n\nconsole.log(page.value)\n\u003C/script>\n",[2424],{"type":173,"tag":181,"props":2425,"children":2426},{"__ignoreMap":167},[2427,2466,2525,2532,2563],{"type":173,"tag":199,"props":2428,"children":2429},{"class":201,"line":202},[2430,2434,2438,2442,2446,2450,2454,2458,2462],{"type":173,"tag":199,"props":2431,"children":2432},{"style":206},[2433],{"type":178,"value":209},{"type":173,"tag":199,"props":2435,"children":2436},{"style":212},[2437],{"type":178,"value":215},{"type":173,"tag":199,"props":2439,"children":2440},{"style":218},[2441],{"type":178,"value":221},{"type":173,"tag":199,"props":2443,"children":2444},{"style":218},[2445],{"type":178,"value":226},{"type":173,"tag":199,"props":2447,"children":2448},{"style":206},[2449],{"type":178,"value":231},{"type":173,"tag":199,"props":2451,"children":2452},{"style":206},[2453],{"type":178,"value":236},{"type":173,"tag":199,"props":2455,"children":2456},{"style":239},[2457],{"type":178,"value":242},{"type":173,"tag":199,"props":2459,"children":2460},{"style":206},[2461],{"type":178,"value":236},{"type":173,"tag":199,"props":2463,"children":2464},{"style":206},[2465],{"type":178,"value":251},{"type":173,"tag":199,"props":2467,"children":2468},{"class":201,"line":254},[2469,2473,2477,2482,2486,2491,2495,2500,2504,2509,2513,2517,2521],{"type":173,"tag":199,"props":2470,"children":2471},{"style":218},[2472],{"type":178,"value":260},{"type":173,"tag":199,"props":2474,"children":2475},{"style":206},[2476],{"type":178,"value":534},{"type":173,"tag":199,"props":2478,"children":2479},{"style":282},[2480],{"type":178,"value":2481}," navigation",{"type":173,"tag":199,"props":2483,"children":2484},{"style":206},[2485],{"type":178,"value":764},{"type":173,"tag":199,"props":2487,"children":2488},{"style":282},[2489],{"type":178,"value":2490}," page",{"type":173,"tag":199,"props":2492,"children":2493},{"style":206},[2494],{"type":178,"value":764},{"type":173,"tag":199,"props":2496,"children":2497},{"style":282},[2498],{"type":178,"value":2499}," surround",{"type":173,"tag":199,"props":2501,"children":2502},{"style":206},[2503],{"type":178,"value":764},{"type":173,"tag":199,"props":2505,"children":2506},{"style":282},[2507],{"type":178,"value":2508}," globals ",{"type":173,"tag":199,"props":2510,"children":2511},{"style":206},[2512],{"type":178,"value":430},{"type":173,"tag":199,"props":2514,"children":2515},{"style":206},[2516],{"type":178,"value":435},{"type":173,"tag":199,"props":2518,"children":2519},{"style":438},[2520],{"type":178,"value":441},{"type":173,"tag":199,"props":2522,"children":2523},{"style":282},[2524],{"type":178,"value":446},{"type":173,"tag":199,"props":2526,"children":2527},{"class":201,"line":268},[2528],{"type":173,"tag":199,"props":2529,"children":2530},{"emptyLinePlaceholder":576},[2531],{"type":178,"value":579},{"type":173,"tag":199,"props":2533,"children":2534},{"class":201,"line":278},[2535,2540,2544,2549,2554,2558],{"type":173,"tag":199,"props":2536,"children":2537},{"style":282},[2538],{"type":178,"value":2539},"console",{"type":173,"tag":199,"props":2541,"children":2542},{"style":206},[2543],{"type":178,"value":636},{"type":173,"tag":199,"props":2545,"children":2546},{"style":438},[2547],{"type":178,"value":2548},"log",{"type":173,"tag":199,"props":2550,"children":2551},{"style":282},[2552],{"type":178,"value":2553},"(page",{"type":173,"tag":199,"props":2555,"children":2556},{"style":206},[2557],{"type":178,"value":636},{"type":173,"tag":199,"props":2559,"children":2560},{"style":282},[2561],{"type":178,"value":2562},"value)\n",{"type":173,"tag":199,"props":2564,"children":2565},{"class":201,"line":293},[2566,2570,2574],{"type":173,"tag":199,"props":2567,"children":2568},{"style":206},[2569],{"type":178,"value":455},{"type":173,"tag":199,"props":2571,"children":2572},{"style":212},[2573],{"type":178,"value":215},{"type":173,"tag":199,"props":2575,"children":2576},{"style":206},[2577],{"type":178,"value":251},{"type":173,"tag":465,"props":2579,"children":2581},{"id":2580},"extend-global-variables",[2582],{"type":178,"value":2583},"Extend global variables",{"type":173,"tag":174,"props":2585,"children":2586},{},[2587],{"type":178,"value":2588},"This mode gives you a convenient way to access file data globally in your application.",{"type":173,"tag":174,"props":2590,"children":2591},{},[2592,2594,2600,2602,2607],{"type":178,"value":2593},"Use the ",{"type":173,"tag":181,"props":2595,"children":2597},{"className":2596},[],[2598],{"type":178,"value":2599},"documentDriven.globals",{"type":178,"value":2601}," key of in your ",{"type":173,"tag":181,"props":2603,"children":2605},{"className":2604},[],[2606],{"type":178,"value":1586},{"type":178,"value":2608}," to specify a query:",{"type":173,"tag":189,"props":2610,"children":2612},{"code":2611,"filename":2185,"language":242,"meta":167,"className":1592,"style":167},"export default defineNuxtConfig({\n  content: {\n    documentDriven: {\n      globals: {\n        theme: {\n          where: [\n            {\n              _id: 'content:_theme.yml'\n            }\n          ],\n          without: ['_']\n        }\n      }\n    }\n  }\n})\n",[2613],{"type":173,"tag":181,"props":2614,"children":2615},{"__ignoreMap":167},[2616,2639,2654,2669,2685,2701,2718,2726,2753,2761,2773,2807,2815,2823,2830,2837],{"type":173,"tag":199,"props":2617,"children":2618},{"class":201,"line":202},[2619,2623,2627,2631,2635],{"type":173,"tag":199,"props":2620,"children":2621},{"style":854},[2622],{"type":178,"value":1604},{"type":173,"tag":199,"props":2624,"children":2625},{"style":854},[2626],{"type":178,"value":1609},{"type":173,"tag":199,"props":2628,"children":2629},{"style":438},[2630],{"type":178,"value":1614},{"type":173,"tag":199,"props":2632,"children":2633},{"style":282},[2634],{"type":178,"value":1619},{"type":173,"tag":199,"props":2636,"children":2637},{"style":206},[2638],{"type":178,"value":1624},{"type":173,"tag":199,"props":2640,"children":2641},{"class":201,"line":254},[2642,2646,2650],{"type":173,"tag":199,"props":2643,"children":2644},{"style":212},[2645],{"type":178,"value":1672},{"type":173,"tag":199,"props":2647,"children":2648},{"style":206},[2649],{"type":178,"value":1588},{"type":173,"tag":199,"props":2651,"children":2652},{"style":206},[2653],{"type":178,"value":265},{"type":173,"tag":199,"props":2655,"children":2656},{"class":201,"line":268},[2657,2661,2665],{"type":173,"tag":199,"props":2658,"children":2659},{"style":212},[2660],{"type":178,"value":1688},{"type":173,"tag":199,"props":2662,"children":2663},{"style":206},[2664],{"type":178,"value":1588},{"type":173,"tag":199,"props":2666,"children":2667},{"style":206},[2668],{"type":178,"value":265},{"type":173,"tag":199,"props":2670,"children":2671},{"class":201,"line":278},[2672,2677,2681],{"type":173,"tag":199,"props":2673,"children":2674},{"style":212},[2675],{"type":178,"value":2676},"      globals",{"type":173,"tag":199,"props":2678,"children":2679},{"style":206},[2680],{"type":178,"value":1588},{"type":173,"tag":199,"props":2682,"children":2683},{"style":206},[2684],{"type":178,"value":265},{"type":173,"tag":199,"props":2686,"children":2687},{"class":201,"line":293},[2688,2693,2697],{"type":173,"tag":199,"props":2689,"children":2690},{"style":212},[2691],{"type":178,"value":2692},"        theme",{"type":173,"tag":199,"props":2694,"children":2695},{"style":206},[2696],{"type":178,"value":1588},{"type":173,"tag":199,"props":2698,"children":2699},{"style":206},[2700],{"type":178,"value":265},{"type":173,"tag":199,"props":2702,"children":2703},{"class":201,"line":306},[2704,2709,2713],{"type":173,"tag":199,"props":2705,"children":2706},{"style":212},[2707],{"type":178,"value":2708},"          where",{"type":173,"tag":199,"props":2710,"children":2711},{"style":206},[2712],{"type":178,"value":1588},{"type":173,"tag":199,"props":2714,"children":2715},{"style":282},[2716],{"type":178,"value":2717}," [\n",{"type":173,"tag":199,"props":2719,"children":2720},{"class":201,"line":319},[2721],{"type":173,"tag":199,"props":2722,"children":2723},{"style":206},[2724],{"type":178,"value":2725},"            {\n",{"type":173,"tag":199,"props":2727,"children":2728},{"class":201,"line":332},[2729,2734,2738,2743,2748],{"type":173,"tag":199,"props":2730,"children":2731},{"style":212},[2732],{"type":178,"value":2733},"              _id",{"type":173,"tag":199,"props":2735,"children":2736},{"style":206},[2737],{"type":178,"value":1588},{"type":173,"tag":199,"props":2739,"children":2740},{"style":206},[2741],{"type":178,"value":2742}," '",{"type":173,"tag":199,"props":2744,"children":2745},{"style":239},[2746],{"type":178,"value":2747},"content:_theme.yml",{"type":173,"tag":199,"props":2749,"children":2750},{"style":206},[2751],{"type":178,"value":2752},"'\n",{"type":173,"tag":199,"props":2754,"children":2755},{"class":201,"line":341},[2756],{"type":173,"tag":199,"props":2757,"children":2758},{"style":206},[2759],{"type":178,"value":2760},"            }\n",{"type":173,"tag":199,"props":2762,"children":2763},{"class":201,"line":354},[2764,2769],{"type":173,"tag":199,"props":2765,"children":2766},{"style":282},[2767],{"type":178,"value":2768},"          ]",{"type":173,"tag":199,"props":2770,"children":2771},{"style":206},[2772],{"type":178,"value":290},{"type":173,"tag":199,"props":2774,"children":2775},{"class":201,"line":367},[2776,2781,2785,2789,2793,2798,2802],{"type":173,"tag":199,"props":2777,"children":2778},{"style":212},[2779],{"type":178,"value":2780},"          without",{"type":173,"tag":199,"props":2782,"children":2783},{"style":206},[2784],{"type":178,"value":1588},{"type":173,"tag":199,"props":2786,"children":2787},{"style":282},[2788],{"type":178,"value":1641},{"type":173,"tag":199,"props":2790,"children":2791},{"style":206},[2792],{"type":178,"value":1646},{"type":173,"tag":199,"props":2794,"children":2795},{"style":239},[2796],{"type":178,"value":2797},"_",{"type":173,"tag":199,"props":2799,"children":2800},{"style":206},[2801],{"type":178,"value":1646},{"type":173,"tag":199,"props":2803,"children":2804},{"style":282},[2805],{"type":178,"value":2806},"]\n",{"type":173,"tag":199,"props":2808,"children":2809},{"class":201,"line":380},[2810],{"type":173,"tag":199,"props":2811,"children":2812},{"style":206},[2813],{"type":178,"value":2814},"        }\n",{"type":173,"tag":199,"props":2816,"children":2817},{"class":201,"line":393},[2818],{"type":173,"tag":199,"props":2819,"children":2820},{"style":206},[2821],{"type":178,"value":2822},"      }\n",{"type":173,"tag":199,"props":2824,"children":2825},{"class":201,"line":402},[2826],{"type":173,"tag":199,"props":2827,"children":2828},{"style":206},[2829],{"type":178,"value":2287},{"type":173,"tag":199,"props":2831,"children":2832},{"class":201,"line":415},[2833],{"type":173,"tag":199,"props":2834,"children":2835},{"style":206},[2836],{"type":178,"value":1706},{"type":173,"tag":199,"props":2838,"children":2839},{"class":201,"line":424},[2840,2844],{"type":173,"tag":199,"props":2841,"children":2842},{"style":206},[2843],{"type":178,"value":430},{"type":173,"tag":199,"props":2845,"children":2846},{"style":282},[2847],{"type":178,"value":1718},{"type":173,"tag":174,"props":2849,"children":2850},{},[2851,2853,2859,2861,2867],{"type":178,"value":2852},"This configuration will search for a ",{"type":173,"tag":181,"props":2854,"children":2856},{"className":2855},[],[2857],{"type":178,"value":2858},"_theme.yml",{"type":178,"value":2860}," file in the ",{"type":173,"tag":181,"props":2862,"children":2864},{"className":2863},[],[2865],{"type":178,"value":2866},"content/",{"type":178,"value":1905},{"type":173,"tag":174,"props":2869,"children":2870},{},[2871,2873,2878,2880,2886],{"type":178,"value":2872},"If found, a ",{"type":173,"tag":181,"props":2874,"children":2876},{"className":2875},[],[2877],{"type":178,"value":2267},{"type":178,"value":2879}," object will be accessible via ",{"type":173,"tag":181,"props":2881,"children":2883},{"className":2882},[],[2884],{"type":178,"value":2885},"useContent().globals",{"type":178,"value":1588},{"type":173,"tag":189,"props":2888,"children":2890},{"code":2889,"language":242,"meta":167,"className":1592,"style":167},"const { theme } = useContent().globals\n",[2891],{"type":173,"tag":181,"props":2892,"children":2893},{"__ignoreMap":167},[2894],{"type":173,"tag":199,"props":2895,"children":2896},{"class":201,"line":202},[2897,2901,2905,2910,2914,2918,2922,2927,2931],{"type":173,"tag":199,"props":2898,"children":2899},{"style":218},[2900],{"type":178,"value":260},{"type":173,"tag":199,"props":2902,"children":2903},{"style":206},[2904],{"type":178,"value":534},{"type":173,"tag":199,"props":2906,"children":2907},{"style":282},[2908],{"type":178,"value":2909}," theme ",{"type":173,"tag":199,"props":2911,"children":2912},{"style":206},[2913],{"type":178,"value":430},{"type":173,"tag":199,"props":2915,"children":2916},{"style":206},[2917],{"type":178,"value":435},{"type":173,"tag":199,"props":2919,"children":2920},{"style":438},[2921],{"type":178,"value":441},{"type":173,"tag":199,"props":2923,"children":2924},{"style":282},[2925],{"type":178,"value":2926},"()",{"type":173,"tag":199,"props":2928,"children":2929},{"style":206},[2930],{"type":178,"value":636},{"type":173,"tag":199,"props":2932,"children":2933},{"style":282},[2934],{"type":178,"value":2935},"globals\n",{"type":173,"tag":174,"props":2937,"children":2938},{},[2939],{"type":178,"value":2940},"Any changes to these files will be automatically reflected in the application during development.",{"type":173,"tag":465,"props":2942,"children":2944},{"id":2943},"disable-or-control-the-page-data",[2945],{"type":178,"value":2946},"Disable or control the page data",{"type":173,"tag":174,"props":2948,"children":2949},{},[2950,2952,2957],{"type":178,"value":2951},"Using special ",{"type":173,"tag":181,"props":2953,"children":2955},{"className":2954},[],[2956],{"type":178,"value":1578},{"type":178,"value":2958}," meta in your pages, you can disable this feature for specific route or control it's behavior.",{"type":173,"tag":1558,"props":2960,"children":2962},{"id":2961},"disable-document-driven",[2963],{"type":178,"value":2964},"Disable document driven",{"type":173,"tag":174,"props":2966,"children":2967},{},[2968,2970,2975,2977,2983,2985,2990,2992,2998],{"type":178,"value":2969},"Setting ",{"type":173,"tag":181,"props":2971,"children":2973},{"className":2972},[],[2974],{"type":178,"value":1578},{"type":178,"value":2976}," to ",{"type":173,"tag":181,"props":2978,"children":2980},{"className":2979},[],[2981],{"type":178,"value":2982},"false",{"type":178,"value":2984}," will disable document driven. This means that exposed refs from ",{"type":173,"tag":181,"props":2986,"children":2988},{"className":2987},[],[2989],{"type":178,"value":100},{"type":178,"value":2991}," will be ",{"type":173,"tag":181,"props":2993,"children":2995},{"className":2994},[],[2996],{"type":178,"value":2997},"undefined",{"type":178,"value":636},{"type":173,"tag":189,"props":3000,"children":3002},{"code":3001,"language":1927,"meta":167,"className":1928,"style":167},"\u003Cscript setup lang=\"ts\">\ndefinePageMeta({\n  documentDriven: false\n})\n\u003C/script>\n",[3003],{"type":173,"tag":181,"props":3004,"children":3005},{"__ignoreMap":167},[3006,3045,3061,3078,3089],{"type":173,"tag":199,"props":3007,"children":3008},{"class":201,"line":202},[3009,3013,3017,3021,3025,3029,3033,3037,3041],{"type":173,"tag":199,"props":3010,"children":3011},{"style":206},[3012],{"type":178,"value":209},{"type":173,"tag":199,"props":3014,"children":3015},{"style":212},[3016],{"type":178,"value":215},{"type":173,"tag":199,"props":3018,"children":3019},{"style":218},[3020],{"type":178,"value":221},{"type":173,"tag":199,"props":3022,"children":3023},{"style":218},[3024],{"type":178,"value":226},{"type":173,"tag":199,"props":3026,"children":3027},{"style":206},[3028],{"type":178,"value":231},{"type":173,"tag":199,"props":3030,"children":3031},{"style":206},[3032],{"type":178,"value":236},{"type":173,"tag":199,"props":3034,"children":3035},{"style":239},[3036],{"type":178,"value":242},{"type":173,"tag":199,"props":3038,"children":3039},{"style":206},[3040],{"type":178,"value":236},{"type":173,"tag":199,"props":3042,"children":3043},{"style":206},[3044],{"type":178,"value":251},{"type":173,"tag":199,"props":3046,"children":3047},{"class":201,"line":254},[3048,3053,3057],{"type":173,"tag":199,"props":3049,"children":3050},{"style":438},[3051],{"type":178,"value":3052},"definePageMeta",{"type":173,"tag":199,"props":3054,"children":3055},{"style":282},[3056],{"type":178,"value":1619},{"type":173,"tag":199,"props":3058,"children":3059},{"style":206},[3060],{"type":178,"value":1624},{"type":173,"tag":199,"props":3062,"children":3063},{"class":201,"line":268},[3064,3069,3073],{"type":173,"tag":199,"props":3065,"children":3066},{"style":212},[3067],{"type":178,"value":3068},"  documentDriven",{"type":173,"tag":199,"props":3070,"children":3071},{"style":206},[3072],{"type":178,"value":1588},{"type":173,"tag":199,"props":3074,"children":3075},{"style":1695},[3076],{"type":178,"value":3077}," false\n",{"type":173,"tag":199,"props":3079,"children":3080},{"class":201,"line":278},[3081,3085],{"type":173,"tag":199,"props":3082,"children":3083},{"style":206},[3084],{"type":178,"value":430},{"type":173,"tag":199,"props":3086,"children":3087},{"style":282},[3088],{"type":178,"value":1718},{"type":173,"tag":199,"props":3090,"children":3091},{"class":201,"line":293},[3092,3096,3100],{"type":173,"tag":199,"props":3093,"children":3094},{"style":206},[3095],{"type":178,"value":455},{"type":173,"tag":199,"props":3097,"children":3098},{"style":212},[3099],{"type":178,"value":215},{"type":173,"tag":199,"props":3101,"children":3102},{"style":206},[3103],{"type":178,"value":251},{"type":173,"tag":1558,"props":3105,"children":3107},{"id":3106},"control-data",[3108],{"type":178,"value":3109},"Control data",{"type":173,"tag":174,"props":3111,"children":3112},{},[3113,3115,3120],{"type":178,"value":3114},"To control document driven data you can pass an object to ",{"type":173,"tag":181,"props":3116,"children":3118},{"className":3117},[],[3119],{"type":178,"value":1578},{"type":178,"value":3121}," meta key and enable/disable specific parts of it.",{"type":173,"tag":189,"props":3123,"children":3125},{"code":3124,"language":1927,"meta":167,"className":1928,"style":167},"\u003Cscript setup lang=\"ts\">\ndefinePageMeta({\n  documentDriven: {\n    page: true, // Keep page fetching enabled\n    surround: false // Disable surround fetching\n  }\n})\n\u003C/script>\n",[3126],{"type":173,"tag":181,"props":3127,"children":3128},{"__ignoreMap":167},[3129,3168,3183,3198,3224,3246,3253,3264],{"type":173,"tag":199,"props":3130,"children":3131},{"class":201,"line":202},[3132,3136,3140,3144,3148,3152,3156,3160,3164],{"type":173,"tag":199,"props":3133,"children":3134},{"style":206},[3135],{"type":178,"value":209},{"type":173,"tag":199,"props":3137,"children":3138},{"style":212},[3139],{"type":178,"value":215},{"type":173,"tag":199,"props":3141,"children":3142},{"style":218},[3143],{"type":178,"value":221},{"type":173,"tag":199,"props":3145,"children":3146},{"style":218},[3147],{"type":178,"value":226},{"type":173,"tag":199,"props":3149,"children":3150},{"style":206},[3151],{"type":178,"value":231},{"type":173,"tag":199,"props":3153,"children":3154},{"style":206},[3155],{"type":178,"value":236},{"type":173,"tag":199,"props":3157,"children":3158},{"style":239},[3159],{"type":178,"value":242},{"type":173,"tag":199,"props":3161,"children":3162},{"style":206},[3163],{"type":178,"value":236},{"type":173,"tag":199,"props":3165,"children":3166},{"style":206},[3167],{"type":178,"value":251},{"type":173,"tag":199,"props":3169,"children":3170},{"class":201,"line":254},[3171,3175,3179],{"type":173,"tag":199,"props":3172,"children":3173},{"style":438},[3174],{"type":178,"value":3052},{"type":173,"tag":199,"props":3176,"children":3177},{"style":282},[3178],{"type":178,"value":1619},{"type":173,"tag":199,"props":3180,"children":3181},{"style":206},[3182],{"type":178,"value":1624},{"type":173,"tag":199,"props":3184,"children":3185},{"class":201,"line":268},[3186,3190,3194],{"type":173,"tag":199,"props":3187,"children":3188},{"style":212},[3189],{"type":178,"value":3068},{"type":173,"tag":199,"props":3191,"children":3192},{"style":206},[3193],{"type":178,"value":1588},{"type":173,"tag":199,"props":3195,"children":3196},{"style":206},[3197],{"type":178,"value":265},{"type":173,"tag":199,"props":3199,"children":3200},{"class":201,"line":278},[3201,3206,3210,3215,3219],{"type":173,"tag":199,"props":3202,"children":3203},{"style":212},[3204],{"type":178,"value":3205},"    page",{"type":173,"tag":199,"props":3207,"children":3208},{"style":206},[3209],{"type":178,"value":1588},{"type":173,"tag":199,"props":3211,"children":3212},{"style":1695},[3213],{"type":178,"value":3214}," true",{"type":173,"tag":199,"props":3216,"children":3217},{"style":206},[3218],{"type":178,"value":764},{"type":173,"tag":199,"props":3220,"children":3221},{"style":272},[3222],{"type":178,"value":3223}," // Keep page fetching enabled\n",{"type":173,"tag":199,"props":3225,"children":3226},{"class":201,"line":293},[3227,3232,3236,3241],{"type":173,"tag":199,"props":3228,"children":3229},{"style":212},[3230],{"type":178,"value":3231},"    surround",{"type":173,"tag":199,"props":3233,"children":3234},{"style":206},[3235],{"type":178,"value":1588},{"type":173,"tag":199,"props":3237,"children":3238},{"style":1695},[3239],{"type":178,"value":3240}," false",{"type":173,"tag":199,"props":3242,"children":3243},{"style":272},[3244],{"type":178,"value":3245}," // Disable surround fetching\n",{"type":173,"tag":199,"props":3247,"children":3248},{"class":201,"line":306},[3249],{"type":173,"tag":199,"props":3250,"children":3251},{"style":206},[3252],{"type":178,"value":1706},{"type":173,"tag":199,"props":3254,"children":3255},{"class":201,"line":319},[3256,3260],{"type":173,"tag":199,"props":3257,"children":3258},{"style":206},[3259],{"type":178,"value":430},{"type":173,"tag":199,"props":3261,"children":3262},{"style":282},[3263],{"type":178,"value":1718},{"type":173,"tag":199,"props":3265,"children":3266},{"class":201,"line":332},[3267,3271,3275],{"type":173,"tag":199,"props":3268,"children":3269},{"style":206},[3270],{"type":178,"value":455},{"type":173,"tag":199,"props":3272,"children":3273},{"style":212},[3274],{"type":178,"value":215},{"type":173,"tag":199,"props":3276,"children":3277},{"style":206},[3278],{"type":178,"value":251},{"type":173,"tag":1558,"props":3280,"children":3282},{"id":3281},"config-content",[3283],{"type":178,"value":3284},"Config content",{"type":173,"tag":174,"props":3286,"children":3287},{},[3288,3290,3295,3297,3302],{"type":178,"value":3289},"You can pass custom path/query to ",{"type":173,"tag":181,"props":3291,"children":3293},{"className":3292},[],[3294],{"type":178,"value":631},{"type":178,"value":3296}," and ",{"type":173,"tag":181,"props":3298,"children":3300},{"className":3299},[],[3301],{"type":178,"value":2402},{"type":178,"value":3303}," options to config documentDriven content.",{"type":173,"tag":189,"props":3305,"children":3307},{"code":3306,"language":1927,"meta":167,"className":1928,"style":167},"\u003Cscript setup lang=\"ts\">\ndefinePageMeta({\n  documentDriven: {\n    // Simple Path\n    page: '/foo',\n    // Rich Query\n    surround: {\n      _path: '/foo/bar'\n    }\n  }\n})\n\u003C/script>\n",[3308],{"type":173,"tag":181,"props":3309,"children":3310},{"__ignoreMap":167},[3311,3350,3365,3380,3388,3416,3424,3439,3464,3471,3478,3489],{"type":173,"tag":199,"props":3312,"children":3313},{"class":201,"line":202},[3314,3318,3322,3326,3330,3334,3338,3342,3346],{"type":173,"tag":199,"props":3315,"children":3316},{"style":206},[3317],{"type":178,"value":209},{"type":173,"tag":199,"props":3319,"children":3320},{"style":212},[3321],{"type":178,"value":215},{"type":173,"tag":199,"props":3323,"children":3324},{"style":218},[3325],{"type":178,"value":221},{"type":173,"tag":199,"props":3327,"children":3328},{"style":218},[3329],{"type":178,"value":226},{"type":173,"tag":199,"props":3331,"children":3332},{"style":206},[3333],{"type":178,"value":231},{"type":173,"tag":199,"props":3335,"children":3336},{"style":206},[3337],{"type":178,"value":236},{"type":173,"tag":199,"props":3339,"children":3340},{"style":239},[3341],{"type":178,"value":242},{"type":173,"tag":199,"props":3343,"children":3344},{"style":206},[3345],{"type":178,"value":236},{"type":173,"tag":199,"props":3347,"children":3348},{"style":206},[3349],{"type":178,"value":251},{"type":173,"tag":199,"props":3351,"children":3352},{"class":201,"line":254},[3353,3357,3361],{"type":173,"tag":199,"props":3354,"children":3355},{"style":438},[3356],{"type":178,"value":3052},{"type":173,"tag":199,"props":3358,"children":3359},{"style":282},[3360],{"type":178,"value":1619},{"type":173,"tag":199,"props":3362,"children":3363},{"style":206},[3364],{"type":178,"value":1624},{"type":173,"tag":199,"props":3366,"children":3367},{"class":201,"line":268},[3368,3372,3376],{"type":173,"tag":199,"props":3369,"children":3370},{"style":212},[3371],{"type":178,"value":3068},{"type":173,"tag":199,"props":3373,"children":3374},{"style":206},[3375],{"type":178,"value":1588},{"type":173,"tag":199,"props":3377,"children":3378},{"style":206},[3379],{"type":178,"value":265},{"type":173,"tag":199,"props":3381,"children":3382},{"class":201,"line":278},[3383],{"type":173,"tag":199,"props":3384,"children":3385},{"style":272},[3386],{"type":178,"value":3387},"    // Simple Path\n",{"type":173,"tag":199,"props":3389,"children":3390},{"class":201,"line":293},[3391,3395,3399,3403,3408,3412],{"type":173,"tag":199,"props":3392,"children":3393},{"style":212},[3394],{"type":178,"value":3205},{"type":173,"tag":199,"props":3396,"children":3397},{"style":206},[3398],{"type":178,"value":1588},{"type":173,"tag":199,"props":3400,"children":3401},{"style":206},[3402],{"type":178,"value":2742},{"type":173,"tag":199,"props":3404,"children":3405},{"style":239},[3406],{"type":178,"value":3407},"/foo",{"type":173,"tag":199,"props":3409,"children":3410},{"style":206},[3411],{"type":178,"value":1646},{"type":173,"tag":199,"props":3413,"children":3414},{"style":206},[3415],{"type":178,"value":290},{"type":173,"tag":199,"props":3417,"children":3418},{"class":201,"line":306},[3419],{"type":173,"tag":199,"props":3420,"children":3421},{"style":272},[3422],{"type":178,"value":3423},"    // Rich Query\n",{"type":173,"tag":199,"props":3425,"children":3426},{"class":201,"line":319},[3427,3431,3435],{"type":173,"tag":199,"props":3428,"children":3429},{"style":212},[3430],{"type":178,"value":3231},{"type":173,"tag":199,"props":3432,"children":3433},{"style":206},[3434],{"type":178,"value":1588},{"type":173,"tag":199,"props":3436,"children":3437},{"style":206},[3438],{"type":178,"value":265},{"type":173,"tag":199,"props":3440,"children":3441},{"class":201,"line":332},[3442,3447,3451,3455,3460],{"type":173,"tag":199,"props":3443,"children":3444},{"style":212},[3445],{"type":178,"value":3446},"      _path",{"type":173,"tag":199,"props":3448,"children":3449},{"style":206},[3450],{"type":178,"value":1588},{"type":173,"tag":199,"props":3452,"children":3453},{"style":206},[3454],{"type":178,"value":2742},{"type":173,"tag":199,"props":3456,"children":3457},{"style":239},[3458],{"type":178,"value":3459},"/foo/bar",{"type":173,"tag":199,"props":3461,"children":3462},{"style":206},[3463],{"type":178,"value":2752},{"type":173,"tag":199,"props":3465,"children":3466},{"class":201,"line":341},[3467],{"type":173,"tag":199,"props":3468,"children":3469},{"style":206},[3470],{"type":178,"value":2287},{"type":173,"tag":199,"props":3472,"children":3473},{"class":201,"line":354},[3474],{"type":173,"tag":199,"props":3475,"children":3476},{"style":206},[3477],{"type":178,"value":1706},{"type":173,"tag":199,"props":3479,"children":3480},{"class":201,"line":367},[3481,3485],{"type":173,"tag":199,"props":3482,"children":3483},{"style":206},[3484],{"type":178,"value":430},{"type":173,"tag":199,"props":3486,"children":3487},{"style":282},[3488],{"type":178,"value":1718},{"type":173,"tag":199,"props":3490,"children":3491},{"class":201,"line":380},[3492,3496,3500],{"type":173,"tag":199,"props":3493,"children":3494},{"style":206},[3495],{"type":178,"value":455},{"type":173,"tag":199,"props":3497,"children":3498},{"style":212},[3499],{"type":178,"value":215},{"type":173,"tag":199,"props":3501,"children":3502},{"style":206},[3503],{"type":178,"value":251},{"type":173,"tag":1535,"props":3505,"children":3507},{"type":3506},"info",[3508,3540],{"type":173,"tag":174,"props":3509,"children":3510},{},[3511,3513,3518,3520,3525,3527,3532,3534,3539],{"type":178,"value":3512},"If you change ",{"type":173,"tag":181,"props":3514,"children":3516},{"className":3515},[],[3517],{"type":178,"value":631},{"type":178,"value":3519}," option and leave ",{"type":173,"tag":181,"props":3521,"children":3523},{"className":3522},[],[3524],{"type":178,"value":2402},{"type":178,"value":3526}," unset, ",{"type":173,"tag":181,"props":3528,"children":3530},{"className":3529},[],[3531],{"type":178,"value":2402},{"type":178,"value":3533}," option will use the same config and ",{"type":173,"tag":181,"props":3535,"children":3537},{"className":3536},[],[3538],{"type":178,"value":631},{"type":178,"value":636},{"type":173,"tag":189,"props":3541,"children":3543},{"code":3542,"language":1927,"meta":167,"className":1928,"style":167},"\u003Cscript setup lang=\"ts\">\ndefinePageMeta({\n  documentDriven: {\n    page: {\n      _path: '/foo/bar'\n    },\n    // surround will use `{ _path: '/foo/bar' }`\n  }\n})\n\u003C/script>\n",[3544],{"type":173,"tag":181,"props":3545,"children":3546},{"__ignoreMap":167},[3547,3586,3601,3616,3631,3654,3662,3670,3677,3688],{"type":173,"tag":199,"props":3548,"children":3549},{"class":201,"line":202},[3550,3554,3558,3562,3566,3570,3574,3578,3582],{"type":173,"tag":199,"props":3551,"children":3552},{"style":206},[3553],{"type":178,"value":209},{"type":173,"tag":199,"props":3555,"children":3556},{"style":212},[3557],{"type":178,"value":215},{"type":173,"tag":199,"props":3559,"children":3560},{"style":218},[3561],{"type":178,"value":221},{"type":173,"tag":199,"props":3563,"children":3564},{"style":218},[3565],{"type":178,"value":226},{"type":173,"tag":199,"props":3567,"children":3568},{"style":206},[3569],{"type":178,"value":231},{"type":173,"tag":199,"props":3571,"children":3572},{"style":206},[3573],{"type":178,"value":236},{"type":173,"tag":199,"props":3575,"children":3576},{"style":239},[3577],{"type":178,"value":242},{"type":173,"tag":199,"props":3579,"children":3580},{"style":206},[3581],{"type":178,"value":236},{"type":173,"tag":199,"props":3583,"children":3584},{"style":206},[3585],{"type":178,"value":251},{"type":173,"tag":199,"props":3587,"children":3588},{"class":201,"line":254},[3589,3593,3597],{"type":173,"tag":199,"props":3590,"children":3591},{"style":438},[3592],{"type":178,"value":3052},{"type":173,"tag":199,"props":3594,"children":3595},{"style":282},[3596],{"type":178,"value":1619},{"type":173,"tag":199,"props":3598,"children":3599},{"style":206},[3600],{"type":178,"value":1624},{"type":173,"tag":199,"props":3602,"children":3603},{"class":201,"line":268},[3604,3608,3612],{"type":173,"tag":199,"props":3605,"children":3606},{"style":212},[3607],{"type":178,"value":3068},{"type":173,"tag":199,"props":3609,"children":3610},{"style":206},[3611],{"type":178,"value":1588},{"type":173,"tag":199,"props":3613,"children":3614},{"style":206},[3615],{"type":178,"value":265},{"type":173,"tag":199,"props":3617,"children":3618},{"class":201,"line":278},[3619,3623,3627],{"type":173,"tag":199,"props":3620,"children":3621},{"style":212},[3622],{"type":178,"value":3205},{"type":173,"tag":199,"props":3624,"children":3625},{"style":206},[3626],{"type":178,"value":1588},{"type":173,"tag":199,"props":3628,"children":3629},{"style":206},[3630],{"type":178,"value":265},{"type":173,"tag":199,"props":3632,"children":3633},{"class":201,"line":293},[3634,3638,3642,3646,3650],{"type":173,"tag":199,"props":3635,"children":3636},{"style":212},[3637],{"type":178,"value":3446},{"type":173,"tag":199,"props":3639,"children":3640},{"style":206},[3641],{"type":178,"value":1588},{"type":173,"tag":199,"props":3643,"children":3644},{"style":206},[3645],{"type":178,"value":2742},{"type":173,"tag":199,"props":3647,"children":3648},{"style":239},[3649],{"type":178,"value":3459},{"type":173,"tag":199,"props":3651,"children":3652},{"style":206},[3653],{"type":178,"value":2752},{"type":173,"tag":199,"props":3655,"children":3656},{"class":201,"line":306},[3657],{"type":173,"tag":199,"props":3658,"children":3659},{"style":206},[3660],{"type":178,"value":3661},"    },\n",{"type":173,"tag":199,"props":3663,"children":3664},{"class":201,"line":319},[3665],{"type":173,"tag":199,"props":3666,"children":3667},{"style":272},[3668],{"type":178,"value":3669},"    // surround will use `{ _path: '/foo/bar' }`\n",{"type":173,"tag":199,"props":3671,"children":3672},{"class":201,"line":332},[3673],{"type":173,"tag":199,"props":3674,"children":3675},{"style":206},[3676],{"type":178,"value":1706},{"type":173,"tag":199,"props":3678,"children":3679},{"class":201,"line":341},[3680,3684],{"type":173,"tag":199,"props":3681,"children":3682},{"style":206},[3683],{"type":178,"value":430},{"type":173,"tag":199,"props":3685,"children":3686},{"style":282},[3687],{"type":178,"value":1718},{"type":173,"tag":199,"props":3689,"children":3690},{"class":201,"line":354},[3691,3695,3699],{"type":173,"tag":199,"props":3692,"children":3693},{"style":206},[3694],{"type":178,"value":455},{"type":173,"tag":199,"props":3696,"children":3697},{"style":212},[3698],{"type":178,"value":215},{"type":173,"tag":199,"props":3700,"children":3701},{"style":206},[3702],{"type":178,"value":251},{"type":173,"tag":1513,"props":3704,"children":3705},{},[3706],{"type":178,"value":1517},{"title":167,"searchDepth":254,"depth":254,"links":3708},[3709,3713,3716,3717,3718,3719],{"id":1553,"depth":254,"text":1556,"children":3710},[3711,3712],{"id":1560,"depth":268,"text":1563},{"id":1721,"depth":268,"text":1724},{"id":1830,"depth":254,"text":1833,"children":3714},[3715],{"id":1884,"depth":268,"text":1887},{"id":2086,"depth":254,"text":2089},{"id":2342,"depth":254,"text":2345},{"id":2580,"depth":254,"text":2583},{"id":2943,"depth":254,"text":2946,"children":3720},[3721,3722,3723],{"id":2961,"depth":268,"text":2964},{"id":3106,"depth":268,"text":3109},{"id":3281,"depth":268,"text":3284},"content:5.document-driven:1.introduction.md","5.document-driven/1.introduction.md","5.document-driven/1.introduction",{"_path":108,"_dir":3728,"_draft":166,"_partial":166,"_locale":167,"title":107,"description":3729,"body":3730,"_type":1523,"_id":4644,"_source":1525,"_file":4645,"_stem":4646,"_extension":1528},"recipes","Nuxt Content exposes hooks to allow you to modify the content before it is parsed and after it is parsed.",{"type":170,"children":3731,"toc":4640},[3732,3737,3756,3769,3840,3850,3855,3863,3877,3885,3890,4180,4190,4195,4204,4217,4224,4229,4636],{"type":173,"tag":174,"props":3733,"children":3734},{},[3735],{"type":178,"value":3736},"The module adds some hooks you can use:",{"type":173,"tag":174,"props":3738,"children":3739},{},[3740,3746,3748,3755],{"type":173,"tag":181,"props":3741,"children":3743},{"className":3742},[],[3744],{"type":178,"value":3745},"content:file:*",{"type":178,"value":3747}," hooks are available in nitro runtime, in order to use them you need to create a custom ",{"type":173,"tag":1356,"props":3749,"children":3752},{"href":3750,"rel":3751},"https://nitro.unjs.io/guide/plugins",[1843],[3753],{"type":178,"value":3754},"nitro plugin",{"type":178,"value":636},{"type":173,"tag":174,"props":3757,"children":3758},{},[3759,3761,3767],{"type":178,"value":3760},"Create a plugin in the ",{"type":173,"tag":181,"props":3762,"children":3764},{"className":3763},[],[3765],{"type":178,"value":3766},"server/plugins/",{"type":178,"value":3768}," directory",{"type":173,"tag":189,"props":3770,"children":3773},{"className":1592,"code":3771,"filename":3772,"language":242,"meta":167,"style":167},"export default defineNitroPlugin((nitroApp) => {\n  // ...\n})\n","server/plugins/content.ts",[3774],{"type":173,"tag":181,"props":3775,"children":3776},{"__ignoreMap":167},[3777,3821,3829],{"type":173,"tag":199,"props":3778,"children":3779},{"class":201,"line":202},[3780,3784,3788,3793,3797,3801,3807,3812,3817],{"type":173,"tag":199,"props":3781,"children":3782},{"style":854},[3783],{"type":178,"value":1604},{"type":173,"tag":199,"props":3785,"children":3786},{"style":854},[3787],{"type":178,"value":1609},{"type":173,"tag":199,"props":3789,"children":3790},{"style":438},[3791],{"type":178,"value":3792}," defineNitroPlugin",{"type":173,"tag":199,"props":3794,"children":3795},{"style":282},[3796],{"type":178,"value":1619},{"type":173,"tag":199,"props":3798,"children":3799},{"style":206},[3800],{"type":178,"value":1619},{"type":173,"tag":199,"props":3802,"children":3804},{"style":3803},"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8;--shiki-light-font-style:italic;--shiki-default-font-style:italic;--shiki-dark-font-style:italic",[3805],{"type":178,"value":3806},"nitroApp",{"type":173,"tag":199,"props":3808,"children":3809},{"style":206},[3810],{"type":178,"value":3811},")",{"type":173,"tag":199,"props":3813,"children":3814},{"style":218},[3815],{"type":178,"value":3816}," =>",{"type":173,"tag":199,"props":3818,"children":3819},{"style":206},[3820],{"type":178,"value":265},{"type":173,"tag":199,"props":3822,"children":3823},{"class":201,"line":254},[3824],{"type":173,"tag":199,"props":3825,"children":3826},{"style":272},[3827],{"type":178,"value":3828},"  // ...\n",{"type":173,"tag":199,"props":3830,"children":3831},{"class":201,"line":268},[3832,3836],{"type":173,"tag":199,"props":3833,"children":3834},{"style":206},[3835],{"type":178,"value":430},{"type":173,"tag":199,"props":3837,"children":3838},{"style":282},[3839],{"type":178,"value":1718},{"type":173,"tag":465,"props":3841,"children":3843},{"id":3842},"contentfilebeforeparse",[3844],{"type":173,"tag":181,"props":3845,"children":3847},{"className":3846},[],[3848],{"type":178,"value":3849},"content:file:beforeParse",{"type":173,"tag":174,"props":3851,"children":3852},{},[3853],{"type":178,"value":3854},"Allows you to modify the contents of a file before it is handled by the parsers.",{"type":173,"tag":174,"props":3856,"children":3857},{},[3858],{"type":173,"tag":2376,"props":3859,"children":3860},{},[3861],{"type":178,"value":3862},"Arguments:",{"type":173,"tag":1212,"props":3864,"children":3865},{},[3866],{"type":173,"tag":1268,"props":3867,"children":3868},{},[3869,3871],{"type":178,"value":3870},"file: ",{"type":173,"tag":181,"props":3872,"children":3874},{"className":3873},[],[3875],{"type":178,"value":3876},"{ _id: string, body: string }",{"type":173,"tag":174,"props":3878,"children":3879},{},[3880],{"type":173,"tag":2376,"props":3881,"children":3882},{},[3883],{"type":178,"value":3884},"Example:",{"type":173,"tag":174,"props":3886,"children":3887},{},[3888],{"type":178,"value":3889},"Changing all occurrences of React to Vue in all Markdown files:",{"type":173,"tag":189,"props":3891,"children":3893},{"className":1592,"code":3892,"filename":3772,"language":242,"meta":167,"style":167},"export default defineNitroPlugin((nitroApp) => {\n  nitroApp.hooks.hook('content:file:beforeParse', (file) => {\n    if (file._id.endsWith('.md')) {\n      file.body = file.body.replace(/react/g, 'vue')\n    }\n  })\n})\n",[3894],{"type":173,"tag":181,"props":3895,"children":3896},{"__ignoreMap":167},[3897,3936,4004,4063,4150,4157,4169],{"type":173,"tag":199,"props":3898,"children":3899},{"class":201,"line":202},[3900,3904,3908,3912,3916,3920,3924,3928,3932],{"type":173,"tag":199,"props":3901,"children":3902},{"style":854},[3903],{"type":178,"value":1604},{"type":173,"tag":199,"props":3905,"children":3906},{"style":854},[3907],{"type":178,"value":1609},{"type":173,"tag":199,"props":3909,"children":3910},{"style":438},[3911],{"type":178,"value":3792},{"type":173,"tag":199,"props":3913,"children":3914},{"style":282},[3915],{"type":178,"value":1619},{"type":173,"tag":199,"props":3917,"children":3918},{"style":206},[3919],{"type":178,"value":1619},{"type":173,"tag":199,"props":3921,"children":3922},{"style":3803},[3923],{"type":178,"value":3806},{"type":173,"tag":199,"props":3925,"children":3926},{"style":206},[3927],{"type":178,"value":3811},{"type":173,"tag":199,"props":3929,"children":3930},{"style":218},[3931],{"type":178,"value":3816},{"type":173,"tag":199,"props":3933,"children":3934},{"style":206},[3935],{"type":178,"value":265},{"type":173,"tag":199,"props":3937,"children":3938},{"class":201,"line":254},[3939,3944,3948,3953,3957,3962,3966,3970,3974,3978,3982,3987,3992,3996,4000],{"type":173,"tag":199,"props":3940,"children":3941},{"style":282},[3942],{"type":178,"value":3943},"  nitroApp",{"type":173,"tag":199,"props":3945,"children":3946},{"style":206},[3947],{"type":178,"value":636},{"type":173,"tag":199,"props":3949,"children":3950},{"style":282},[3951],{"type":178,"value":3952},"hooks",{"type":173,"tag":199,"props":3954,"children":3955},{"style":206},[3956],{"type":178,"value":636},{"type":173,"tag":199,"props":3958,"children":3959},{"style":438},[3960],{"type":178,"value":3961},"hook",{"type":173,"tag":199,"props":3963,"children":3964},{"style":212},[3965],{"type":178,"value":1619},{"type":173,"tag":199,"props":3967,"children":3968},{"style":206},[3969],{"type":178,"value":1646},{"type":173,"tag":199,"props":3971,"children":3972},{"style":239},[3973],{"type":178,"value":3849},{"type":173,"tag":199,"props":3975,"children":3976},{"style":206},[3977],{"type":178,"value":1646},{"type":173,"tag":199,"props":3979,"children":3980},{"style":206},[3981],{"type":178,"value":764},{"type":173,"tag":199,"props":3983,"children":3984},{"style":206},[3985],{"type":178,"value":3986}," (",{"type":173,"tag":199,"props":3988,"children":3989},{"style":3803},[3990],{"type":178,"value":3991},"file",{"type":173,"tag":199,"props":3993,"children":3994},{"style":206},[3995],{"type":178,"value":3811},{"type":173,"tag":199,"props":3997,"children":3998},{"style":218},[3999],{"type":178,"value":3816},{"type":173,"tag":199,"props":4001,"children":4002},{"style":206},[4003],{"type":178,"value":265},{"type":173,"tag":199,"props":4005,"children":4006},{"class":201,"line":268},[4007,4012,4016,4020,4024,4028,4032,4037,4041,4045,4050,4054,4059],{"type":173,"tag":199,"props":4008,"children":4009},{"style":854},[4010],{"type":178,"value":4011},"    if",{"type":173,"tag":199,"props":4013,"children":4014},{"style":212},[4015],{"type":178,"value":3986},{"type":173,"tag":199,"props":4017,"children":4018},{"style":282},[4019],{"type":178,"value":3991},{"type":173,"tag":199,"props":4021,"children":4022},{"style":206},[4023],{"type":178,"value":636},{"type":173,"tag":199,"props":4025,"children":4026},{"style":282},[4027],{"type":178,"value":641},{"type":173,"tag":199,"props":4029,"children":4030},{"style":206},[4031],{"type":178,"value":636},{"type":173,"tag":199,"props":4033,"children":4034},{"style":438},[4035],{"type":178,"value":4036},"endsWith",{"type":173,"tag":199,"props":4038,"children":4039},{"style":212},[4040],{"type":178,"value":1619},{"type":173,"tag":199,"props":4042,"children":4043},{"style":206},[4044],{"type":178,"value":1646},{"type":173,"tag":199,"props":4046,"children":4047},{"style":239},[4048],{"type":178,"value":4049},".md",{"type":173,"tag":199,"props":4051,"children":4052},{"style":206},[4053],{"type":178,"value":1646},{"type":173,"tag":199,"props":4055,"children":4056},{"style":212},[4057],{"type":178,"value":4058},")) ",{"type":173,"tag":199,"props":4060,"children":4061},{"style":206},[4062],{"type":178,"value":1624},{"type":173,"tag":199,"props":4064,"children":4065},{"class":201,"line":278},[4066,4071,4075,4080,4084,4089,4093,4097,4101,4106,4110,4115,4120,4124,4130,4134,4138,4142,4146],{"type":173,"tag":199,"props":4067,"children":4068},{"style":282},[4069],{"type":178,"value":4070},"      file",{"type":173,"tag":199,"props":4072,"children":4073},{"style":206},[4074],{"type":178,"value":636},{"type":173,"tag":199,"props":4076,"children":4077},{"style":282},[4078],{"type":178,"value":4079},"body",{"type":173,"tag":199,"props":4081,"children":4082},{"style":206},[4083],{"type":178,"value":435},{"type":173,"tag":199,"props":4085,"children":4086},{"style":282},[4087],{"type":178,"value":4088}," file",{"type":173,"tag":199,"props":4090,"children":4091},{"style":206},[4092],{"type":178,"value":636},{"type":173,"tag":199,"props":4094,"children":4095},{"style":282},[4096],{"type":178,"value":4079},{"type":173,"tag":199,"props":4098,"children":4099},{"style":206},[4100],{"type":178,"value":636},{"type":173,"tag":199,"props":4102,"children":4103},{"style":438},[4104],{"type":178,"value":4105},"replace",{"type":173,"tag":199,"props":4107,"children":4108},{"style":212},[4109],{"type":178,"value":1619},{"type":173,"tag":199,"props":4111,"children":4112},{"style":206},[4113],{"type":178,"value":4114},"/",{"type":173,"tag":199,"props":4116,"children":4117},{"style":239},[4118],{"type":178,"value":4119},"react",{"type":173,"tag":199,"props":4121,"children":4122},{"style":206},[4123],{"type":178,"value":4114},{"type":173,"tag":199,"props":4125,"children":4127},{"style":4126},"--shiki-light:#F76D47;--shiki-default:#F78C6C;--shiki-dark:#F78C6C",[4128],{"type":178,"value":4129},"g",{"type":173,"tag":199,"props":4131,"children":4132},{"style":206},[4133],{"type":178,"value":764},{"type":173,"tag":199,"props":4135,"children":4136},{"style":206},[4137],{"type":178,"value":2742},{"type":173,"tag":199,"props":4139,"children":4140},{"style":239},[4141],{"type":178,"value":193},{"type":173,"tag":199,"props":4143,"children":4144},{"style":206},[4145],{"type":178,"value":1646},{"type":173,"tag":199,"props":4147,"children":4148},{"style":212},[4149],{"type":178,"value":1718},{"type":173,"tag":199,"props":4151,"children":4152},{"class":201,"line":293},[4153],{"type":173,"tag":199,"props":4154,"children":4155},{"style":206},[4156],{"type":178,"value":2287},{"type":173,"tag":199,"props":4158,"children":4159},{"class":201,"line":306},[4160,4165],{"type":173,"tag":199,"props":4161,"children":4162},{"style":206},[4163],{"type":178,"value":4164},"  }",{"type":173,"tag":199,"props":4166,"children":4167},{"style":212},[4168],{"type":178,"value":1718},{"type":173,"tag":199,"props":4170,"children":4171},{"class":201,"line":319},[4172,4176],{"type":173,"tag":199,"props":4173,"children":4174},{"style":206},[4175],{"type":178,"value":430},{"type":173,"tag":199,"props":4177,"children":4178},{"style":282},[4179],{"type":178,"value":1718},{"type":173,"tag":465,"props":4181,"children":4183},{"id":4182},"contentfileafterparse",[4184],{"type":173,"tag":181,"props":4185,"children":4187},{"className":4186},[],[4188],{"type":178,"value":4189},"content:file:afterParse",{"type":173,"tag":174,"props":4191,"children":4192},{},[4193],{"type":178,"value":4194},"Allows you to modify a document after being parsed by parsers.",{"type":173,"tag":174,"props":4196,"children":4197},{},[4198,4203],{"type":173,"tag":2376,"props":4199,"children":4200},{},[4201],{"type":178,"value":4202},"Arguments",{"type":178,"value":1588},{"type":173,"tag":1212,"props":4205,"children":4206},{},[4207],{"type":173,"tag":1268,"props":4208,"children":4209},{},[4210,4211],{"type":178,"value":3870},{"type":173,"tag":181,"props":4212,"children":4214},{"className":4213},[],[4215],{"type":178,"value":4216},"{ _id: string, body: any }",{"type":173,"tag":174,"props":4218,"children":4219},{},[4220],{"type":173,"tag":2376,"props":4221,"children":4222},{},[4223],{"type":178,"value":3884},{"type":173,"tag":174,"props":4225,"children":4226},{},[4227],{"type":178,"value":4228},"Using content's first picture as cover image.",{"type":173,"tag":189,"props":4230,"children":4232},{"className":1592,"code":4231,"filename":3772,"language":242,"meta":167,"style":167},"import { visit } from 'unist-util-visit'\n\nexport default defineNitroPlugin((nitroApp) => {\n  nitroApp.hooks.hook('content:file:afterParse', (file) => {\n    if (file._id.endsWith('.md')) {\n      visit(file.body, (n: any) => n.tag === 'img', (node) => {\n        file.coverImage = node.props.src\n      })\n    }\n  })\n})\n\n",[4233],{"type":173,"tag":181,"props":4234,"children":4235},{"__ignoreMap":167},[4236,4276,4283,4322,4385,4440,4551,4595,4607,4614,4625],{"type":173,"tag":199,"props":4237,"children":4238},{"class":201,"line":202},[4239,4244,4248,4253,4258,4263,4267,4272],{"type":173,"tag":199,"props":4240,"children":4241},{"style":854},[4242],{"type":178,"value":4243},"import",{"type":173,"tag":199,"props":4245,"children":4246},{"style":206},[4247],{"type":178,"value":534},{"type":173,"tag":199,"props":4249,"children":4250},{"style":282},[4251],{"type":178,"value":4252}," visit",{"type":173,"tag":199,"props":4254,"children":4255},{"style":206},[4256],{"type":178,"value":4257}," }",{"type":173,"tag":199,"props":4259,"children":4260},{"style":854},[4261],{"type":178,"value":4262}," from",{"type":173,"tag":199,"props":4264,"children":4265},{"style":206},[4266],{"type":178,"value":2742},{"type":173,"tag":199,"props":4268,"children":4269},{"style":239},[4270],{"type":178,"value":4271},"unist-util-visit",{"type":173,"tag":199,"props":4273,"children":4274},{"style":206},[4275],{"type":178,"value":2752},{"type":173,"tag":199,"props":4277,"children":4278},{"class":201,"line":254},[4279],{"type":173,"tag":199,"props":4280,"children":4281},{"emptyLinePlaceholder":576},[4282],{"type":178,"value":579},{"type":173,"tag":199,"props":4284,"children":4285},{"class":201,"line":268},[4286,4290,4294,4298,4302,4306,4310,4314,4318],{"type":173,"tag":199,"props":4287,"children":4288},{"style":854},[4289],{"type":178,"value":1604},{"type":173,"tag":199,"props":4291,"children":4292},{"style":854},[4293],{"type":178,"value":1609},{"type":173,"tag":199,"props":4295,"children":4296},{"style":438},[4297],{"type":178,"value":3792},{"type":173,"tag":199,"props":4299,"children":4300},{"style":282},[4301],{"type":178,"value":1619},{"type":173,"tag":199,"props":4303,"children":4304},{"style":206},[4305],{"type":178,"value":1619},{"type":173,"tag":199,"props":4307,"children":4308},{"style":3803},[4309],{"type":178,"value":3806},{"type":173,"tag":199,"props":4311,"children":4312},{"style":206},[4313],{"type":178,"value":3811},{"type":173,"tag":199,"props":4315,"children":4316},{"style":218},[4317],{"type":178,"value":3816},{"type":173,"tag":199,"props":4319,"children":4320},{"style":206},[4321],{"type":178,"value":265},{"type":173,"tag":199,"props":4323,"children":4324},{"class":201,"line":278},[4325,4329,4333,4337,4341,4345,4349,4353,4357,4361,4365,4369,4373,4377,4381],{"type":173,"tag":199,"props":4326,"children":4327},{"style":282},[4328],{"type":178,"value":3943},{"type":173,"tag":199,"props":4330,"children":4331},{"style":206},[4332],{"type":178,"value":636},{"type":173,"tag":199,"props":4334,"children":4335},{"style":282},[4336],{"type":178,"value":3952},{"type":173,"tag":199,"props":4338,"children":4339},{"style":206},[4340],{"type":178,"value":636},{"type":173,"tag":199,"props":4342,"children":4343},{"style":438},[4344],{"type":178,"value":3961},{"type":173,"tag":199,"props":4346,"children":4347},{"style":212},[4348],{"type":178,"value":1619},{"type":173,"tag":199,"props":4350,"children":4351},{"style":206},[4352],{"type":178,"value":1646},{"type":173,"tag":199,"props":4354,"children":4355},{"style":239},[4356],{"type":178,"value":4189},{"type":173,"tag":199,"props":4358,"children":4359},{"style":206},[4360],{"type":178,"value":1646},{"type":173,"tag":199,"props":4362,"children":4363},{"style":206},[4364],{"type":178,"value":764},{"type":173,"tag":199,"props":4366,"children":4367},{"style":206},[4368],{"type":178,"value":3986},{"type":173,"tag":199,"props":4370,"children":4371},{"style":3803},[4372],{"type":178,"value":3991},{"type":173,"tag":199,"props":4374,"children":4375},{"style":206},[4376],{"type":178,"value":3811},{"type":173,"tag":199,"props":4378,"children":4379},{"style":218},[4380],{"type":178,"value":3816},{"type":173,"tag":199,"props":4382,"children":4383},{"style":206},[4384],{"type":178,"value":265},{"type":173,"tag":199,"props":4386,"children":4387},{"class":201,"line":293},[4388,4392,4396,4400,4404,4408,4412,4416,4420,4424,4428,4432,4436],{"type":173,"tag":199,"props":4389,"children":4390},{"style":854},[4391],{"type":178,"value":4011},{"type":173,"tag":199,"props":4393,"children":4394},{"style":212},[4395],{"type":178,"value":3986},{"type":173,"tag":199,"props":4397,"children":4398},{"style":282},[4399],{"type":178,"value":3991},{"type":173,"tag":199,"props":4401,"children":4402},{"style":206},[4403],{"type":178,"value":636},{"type":173,"tag":199,"props":4405,"children":4406},{"style":282},[4407],{"type":178,"value":641},{"type":173,"tag":199,"props":4409,"children":4410},{"style":206},[4411],{"type":178,"value":636},{"type":173,"tag":199,"props":4413,"children":4414},{"style":438},[4415],{"type":178,"value":4036},{"type":173,"tag":199,"props":4417,"children":4418},{"style":212},[4419],{"type":178,"value":1619},{"type":173,"tag":199,"props":4421,"children":4422},{"style":206},[4423],{"type":178,"value":1646},{"type":173,"tag":199,"props":4425,"children":4426},{"style":239},[4427],{"type":178,"value":4049},{"type":173,"tag":199,"props":4429,"children":4430},{"style":206},[4431],{"type":178,"value":1646},{"type":173,"tag":199,"props":4433,"children":4434},{"style":212},[4435],{"type":178,"value":4058},{"type":173,"tag":199,"props":4437,"children":4438},{"style":206},[4439],{"type":178,"value":1624},{"type":173,"tag":199,"props":4441,"children":4442},{"class":201,"line":306},[4443,4448,4452,4456,4460,4464,4468,4472,4477,4481,4486,4490,4494,4499,4503,4508,4513,4517,4522,4526,4530,4534,4539,4543,4547],{"type":173,"tag":199,"props":4444,"children":4445},{"style":438},[4446],{"type":178,"value":4447},"      visit",{"type":173,"tag":199,"props":4449,"children":4450},{"style":212},[4451],{"type":178,"value":1619},{"type":173,"tag":199,"props":4453,"children":4454},{"style":282},[4455],{"type":178,"value":3991},{"type":173,"tag":199,"props":4457,"children":4458},{"style":206},[4459],{"type":178,"value":636},{"type":173,"tag":199,"props":4461,"children":4462},{"style":282},[4463],{"type":178,"value":4079},{"type":173,"tag":199,"props":4465,"children":4466},{"style":206},[4467],{"type":178,"value":764},{"type":173,"tag":199,"props":4469,"children":4470},{"style":206},[4471],{"type":178,"value":3986},{"type":173,"tag":199,"props":4473,"children":4474},{"style":3803},[4475],{"type":178,"value":4476},"n",{"type":173,"tag":199,"props":4478,"children":4479},{"style":206},[4480],{"type":178,"value":1588},{"type":173,"tag":199,"props":4482,"children":4483},{"style":1749},[4484],{"type":178,"value":4485}," any",{"type":173,"tag":199,"props":4487,"children":4488},{"style":206},[4489],{"type":178,"value":3811},{"type":173,"tag":199,"props":4491,"children":4492},{"style":218},[4493],{"type":178,"value":3816},{"type":173,"tag":199,"props":4495,"children":4496},{"style":282},[4497],{"type":178,"value":4498}," n",{"type":173,"tag":199,"props":4500,"children":4501},{"style":206},[4502],{"type":178,"value":636},{"type":173,"tag":199,"props":4504,"children":4505},{"style":282},[4506],{"type":178,"value":4507},"tag",{"type":173,"tag":199,"props":4509,"children":4510},{"style":206},[4511],{"type":178,"value":4512}," ===",{"type":173,"tag":199,"props":4514,"children":4515},{"style":206},[4516],{"type":178,"value":2742},{"type":173,"tag":199,"props":4518,"children":4519},{"style":239},[4520],{"type":178,"value":4521},"img",{"type":173,"tag":199,"props":4523,"children":4524},{"style":206},[4525],{"type":178,"value":1646},{"type":173,"tag":199,"props":4527,"children":4528},{"style":206},[4529],{"type":178,"value":764},{"type":173,"tag":199,"props":4531,"children":4532},{"style":206},[4533],{"type":178,"value":3986},{"type":173,"tag":199,"props":4535,"children":4536},{"style":3803},[4537],{"type":178,"value":4538},"node",{"type":173,"tag":199,"props":4540,"children":4541},{"style":206},[4542],{"type":178,"value":3811},{"type":173,"tag":199,"props":4544,"children":4545},{"style":218},[4546],{"type":178,"value":3816},{"type":173,"tag":199,"props":4548,"children":4549},{"style":206},[4550],{"type":178,"value":265},{"type":173,"tag":199,"props":4552,"children":4553},{"class":201,"line":319},[4554,4559,4563,4568,4572,4577,4581,4586,4590],{"type":173,"tag":199,"props":4555,"children":4556},{"style":282},[4557],{"type":178,"value":4558},"        file",{"type":173,"tag":199,"props":4560,"children":4561},{"style":206},[4562],{"type":178,"value":636},{"type":173,"tag":199,"props":4564,"children":4565},{"style":282},[4566],{"type":178,"value":4567},"coverImage",{"type":173,"tag":199,"props":4569,"children":4570},{"style":206},[4571],{"type":178,"value":435},{"type":173,"tag":199,"props":4573,"children":4574},{"style":282},[4575],{"type":178,"value":4576}," node",{"type":173,"tag":199,"props":4578,"children":4579},{"style":206},[4580],{"type":178,"value":636},{"type":173,"tag":199,"props":4582,"children":4583},{"style":282},[4584],{"type":178,"value":4585},"props",{"type":173,"tag":199,"props":4587,"children":4588},{"style":206},[4589],{"type":178,"value":636},{"type":173,"tag":199,"props":4591,"children":4592},{"style":282},[4593],{"type":178,"value":4594},"src\n",{"type":173,"tag":199,"props":4596,"children":4597},{"class":201,"line":332},[4598,4603],{"type":173,"tag":199,"props":4599,"children":4600},{"style":206},[4601],{"type":178,"value":4602},"      }",{"type":173,"tag":199,"props":4604,"children":4605},{"style":212},[4606],{"type":178,"value":1718},{"type":173,"tag":199,"props":4608,"children":4609},{"class":201,"line":341},[4610],{"type":173,"tag":199,"props":4611,"children":4612},{"style":206},[4613],{"type":178,"value":2287},{"type":173,"tag":199,"props":4615,"children":4616},{"class":201,"line":354},[4617,4621],{"type":173,"tag":199,"props":4618,"children":4619},{"style":206},[4620],{"type":178,"value":4164},{"type":173,"tag":199,"props":4622,"children":4623},{"style":212},[4624],{"type":178,"value":1718},{"type":173,"tag":199,"props":4626,"children":4627},{"class":201,"line":367},[4628,4632],{"type":173,"tag":199,"props":4629,"children":4630},{"style":206},[4631],{"type":178,"value":430},{"type":173,"tag":199,"props":4633,"children":4634},{"style":282},[4635],{"type":178,"value":1718},{"type":173,"tag":1513,"props":4637,"children":4638},{},[4639],{"type":178,"value":1517},{"title":167,"searchDepth":254,"depth":254,"links":4641},[4642,4643],{"id":3842,"depth":254,"text":3849},{"id":4182,"depth":254,"text":4189},"content:6.recipes:1.hooks.md","6.recipes/1.hooks.md","6.recipes/1.hooks",1725981874600]