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/en/guide/migration-from-vuepress.md

949 B

Migration from VuePress

Config

Sidebar

The sidebar is no longer automatically populated from frontmatter. You can read the frontmatter yourself to dynamically populate the sidebar. Additional utilities for this may be provided in the future.

Markdown

Images

Unlike VuePress, VitePress handles base of your config automatically when you use static image.

Hence, now you can render images without img tag.

- <img :src="$withBase('/foo.png')" alt="foo">
+ ![foo](/foo.png)

::: warning For dynamic images you still need withBase as shown in Base URL guide. :::

Use <img.*withBase\('(.*)'\).*alt="([^"]*)".*> regex to find and replace it with ![$2]($1) to replace all the images with ![](...) syntax.


more to follow...