You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+3-134Lines changed: 3 additions & 134 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -7,16 +7,7 @@
7
7
8
8
## Status: Beta
9
9
10
-
The codebase has been completely refactored with TypeScript. Some major changes:
11
-
12
-
- Fully migrated to Vue 3
13
-
- Extract `@vuepress/cli` from `vuepress` package
14
-
- Extract `@vuepress/client` from `@vuepress/core` package
15
-
- Extract `@vuepress/plugin-palette` from `@vuepress/core` package - stylus is no longer the default CSS pre-processor, and the way of styles customization should be determined by theme
16
-
- Extract `@vuepress/bundler-webpack` from `@vuepress/core` package and migrate to webpack 5
17
-
- Provide `@vuepress/bundler-vite` for [Vite](https://vitejs.dev/) support
18
-
19
-
The migration guide has not finished yet. For now you can check out the breaking changes list below as reference.
10
+
For users from VuePress v1, please check out the [migration guide](https://vuepress2.netlify.app/guide/migration.html).
20
11
21
12
## Documentation
22
13
@@ -26,128 +17,6 @@ https://vuepress2.netlify.app
26
17
27
18
See [Contributing Guide](https://github.com/vuepress/vuepress-next/blob/main/docs/contributing.md).
28
19
29
-
## Breaking Changes
30
-
31
-
Temporarily record some breaking changes here.
32
-
33
-
### Core
34
-
35
-
#### User config
36
-
37
-
-`shouldPrefetch` -> the default value is changed to `false`
38
-
-`patterns` -> `pagePatterns`
39
-
-`extraWatchFiles` -> removed, watch files manually in `onWatched` hook
40
-
-`evergreen` -> the default value is changed to `true`
41
-
-`markdown`
42
-
-`markdown.lineNumbers` -> `markdown.code.lineNumbers`, and the default value is changed to `true`
-`.vuepress/components` -> will not auto register components, and you need to register your components manually in `.vuepress/clientAppEnhance.{js,ts}`
63
-
64
-
#### Permalink patterns
65
-
66
-
-`:i_month` -> removed
67
-
-`:i_day` -> removed
68
-
-`:minutes` -> removed (undocumented in 1.0)
69
-
-`:seconds` -> removed (undocumented in 1.0)
70
-
-`:regular` -> `:raw`
71
-
72
-
#### Stylus Palette system
73
-
74
-
The stylus palette system of VuePress v1 (i.e. `styles/palette.styl` and `styles/index.styl`) is extracted to `@vuepress/plugin-palette`.
75
-
76
-
Theme authors can use their own way for users to configure styles (not be limited with stylus).
77
-
78
-
#### Frontmatter
79
-
80
-
-`meta` -> `head`, which uses the same type with `siteConfig.head`
81
-
82
-
For example:
83
-
84
-
```yaml
85
-
head:
86
-
- - meta
87
-
- name: foo
88
-
content: bar
89
-
- - link
90
-
- rel: canonical
91
-
href: foobar
92
-
- - script
93
-
- {}
94
-
- console.log('hello from frontmatter');
95
-
```
96
-
97
-
Has the same structure with:
98
-
99
-
```js
100
-
// .vuepress/config.js
101
-
module.exports = {
102
-
// ...
103
-
head: [
104
-
['meta', { name: 'foo', content: 'bar' }],
105
-
['link', { rel: 'canonical', href: 'foobar' }],
106
-
['script', {}, `console.log('hello from frontmatter');`],
107
-
],
108
-
// ...
109
-
}
110
-
```
111
-
112
-
#### Plugin API
113
-
114
-
-`ready` -> `onPrepared`
115
-
-`updated` -> `onWatched`
116
-
-`generated` -> `onGenerated`
117
-
-`additionalPages` -> removed, use `app.pages.push(createPage())` in `onInitialized` hook
118
-
-`clientDynamicModules` -> removed, use `app.writeTemp()` in `onPrepared` hook
0 commit comments