You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
vitepress/docs/guide/differences-from-vuepress.md

5.5 KiB

Differences from VuePress

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.

General

  • Missing
  • Differences
    • Public files that are directly copied to dist root moved from .vitepress/public/ is public/
    • styling .vitepress/styles/index.styl and .vitepress/styles/palette.styl is .vitepress/style.styl
    • App Level Enhancements API, app enhancements .vitepress/enhanceApp.js is .vitepress/theme/index.js.

Markdown

Site Config

Default Theme Config

Default Theme

Computed Globals

  • Missing
    • $lang
    • $localePath

Frontmatter Predefined Variables

Frontmatter Default Theme Variables

siteData

pageData

  • Missing
    • key
    • path
    • regularPath

Default Components