Migration from 0.x

Site Config

ga replaced

GA has been separated into a standalone plugin @vuepress/plugin-google-analytics.

Upgrade Path

  1. Install @vuepress/plugin-google-analytics:
yarn add -D @vuepress/plugin-google-analytics@next
# OR npm install -D @vuepress/plugin-google-analytics@next
  1. Update vuepress/config.js:
module.exports = {
-  ga: 'UA-12345678-9'
+  plugins: [
+    ['@vuepress/google-analytics', {
+      ga: 'UA-12345678-9'
+    }]
+ ]
}

markdown.config renamed

Using extendMarkdown:。

Upgrade Path

Update vuepress/config.js:

// vuepress/config.js
module.exports = {
-  markdown: {
-    config(md) { /* ... */ }
-  },
+  extendMarkdown(md) { /* ... */ }
}

serviceWorker replaced

Service Worker related features have been separated into a standalone plugin @vuepress/plugin-pwa.

Default Theme Config

.vuepress/override.styl replaced

Replaced by .vuepress/styles/palette.styl.

Upgrade Path

See: Config > palette.styl

.vuepress/style.styl replaced

Replaced by .vuepress/styles/index.styl.

Upgrade Path

See: Config > index.styl