import{_ as o,c as t,ag as a,o as i}from"./chunks/framework.C1C4sYC0.js";const h=JSON.parse('{"title":"","description":"","frontmatter":{},"headers":[],"relativePath":"zh/guide/migration-from-vitepress-0.md","filePath":"zh/guide/migration-from-vitepress-0.md","lastUpdated":1704773074000}'),r={name:"zh/guide/migration-from-vitepress-0.md"};function d(c,e,l,n,s,f){return i(),t("div",null,e[0]||(e[0]=[a('
n# 从 VitePress 0.x 迁移
如果你来自 VitePress 0.x 版本,VitePress 有了一些重大更改。请按照本指南了解如何将应用程序迁移到最新的 VitePress。
sidebar 选项改变了它的结构。 children 现在命名为 items。link。我们打算把它改回来。repo、repoLabel、docsDir、docsBranch、editLinks、editLinkText,以支持更灵活的api。 lastUpdated 选项现在分为 config.lastUpdated 和 themeConfig.lastUpdatedText。carbonAds.carbon 更改为 carbonAds.code.home: true 选项已更改为 layout: home。此外,还修改了许多与主页相关的设置以提供附加功能。详情请参阅 主页指南。footer 选项移至 themeConfig.footer.