import{_ as e,c as r,o as t,a}from"./app.54944ef9.js";const g='{"title":"Differences from VuePress","description":"","frontmatter":{"sidebarDepth":2},"headers":[{"level":2,"title":"General","slug":"general"},{"level":2,"title":"Markdown","slug":"markdown"},{"level":2,"title":"Site Config","slug":"site-config"},{"level":2,"title":"Default Theme Config","slug":"default-theme-config"},{"level":2,"title":"Default Theme","slug":"default-theme"},{"level":2,"title":"Computed Globals","slug":"computed-globals"},{"level":2,"title":"Frontmatter Predefined Variables","slug":"frontmatter-predefined-variables"},{"level":2,"title":"Frontmatter Default Theme Variables","slug":"frontmatter-default-theme-variables"},{"level":2,"title":"siteData","slug":"sitedata"},{"level":2,"title":"pageData","slug":"pagedata"},{"level":2,"title":"Global Components","slug":"global-components"}],"relativePath":"guide/differences-from-vuepress.md","lastUpdated":1652768268000}',o={},l=a('
VitePress and VuePress have different design goals. Both projects share similar config naming conventions. VitePress aims to have the bare minimum features needed for authoring docs. Other features are pushed to Themes. On the other hand, VuePress has more features out-of-the-box or enabled by its ecosystem of plugins.
TIP
If you are using VuePress, there is no need to migrate to VitePress. Both projects are going to continue to co-exist for the foreseeable future.
WARNING
Note this is early WIP! Currently, the focus is on making Vite stable and feature-complete first. It is not recommended to use this for anything serious yet.
In case you decide to move your project to VitePress, this is a list of differences from VuePress v1.7.1 that you need to take into account.
.vitepress/config.js
.vitepress/templates
.vitepress/components
are not auto registered as global components.vitepress/public/
is public/
.vitepress/styles/index.styl
and .vitepress/styles/palette.styl
is not supported. See Customizing CSS..vitepress/enhanceApp.js
is now done in .vitepress/theme/index.js
. See Extending the Default Theme.~
prefix to explicitly specify a url is a webpack module requesttemp
dest
theme
from a dependencypermalink
port
shouldPrefetch
cache
extraWatchFiles
patterns
plugins
markdown.pageSuffix
markdown.slugify
markdown.plugins
markdown.extractHeaders
markdown.extendMarkdown
to markdown.config
configureWebpack
, chainWebpack
, postcss
, Stylus
, scss
, Sass
, less
configsevergreen
smoothScroll
displayAllHeaders
activeHeaderLinks
sidebarDepth
and initialOpenGroupIndex
for sidebar groupssearchMaxSuggestions
is search.maxSuggestions
algolia
is search.algolia
searchPlaceholder
is search.placeholder
$lang
$localePath
description
meta
metaTitle
lang
layout
permalink
canonicalUrl
key
path
regularPath