File tree 2 files changed +4
-12
lines changed
packages/@vuepress/core/lib/internal-plugins
2 files changed +4
-12
lines changed Original file line number Diff line number Diff line change @@ -26,7 +26,7 @@ module.exports = (options, ctx) => ({
26
26
27
27
const themePalette = ctx . themePalette
28
28
const { palette : userPalette } = ctx . siteConfig
29
- const palettePath = path . resolve ( sourceDir , '.vuepress/palette.styl' )
29
+ const palettePath = path . resolve ( sourceDir , '.vuepress/styles/ palette.styl' )
30
30
31
31
const themePaletteContent = resolvePaletteContent ( themePalette )
32
32
const userPaletteContent = resolvePaletteContent ( userPalette )
Original file line number Diff line number Diff line change @@ -12,21 +12,13 @@ module.exports = (options, context) => ({
12
12
const hasUserOverride = fs . existsSync ( overridePath )
13
13
14
14
if ( hasUserOverride ) {
15
- logger . tip ( `${ chalk . magenta ( 'override.styl' ) } has been deprecated from v1.0.0, using ${ chalk . cyan ( 'config. palette' ) } instead.\n` )
15
+ logger . tip ( `${ chalk . magenta ( 'override.styl' ) } has been deprecated from v1.0.0, using ${ chalk . cyan ( '.vuepress/style/ palette.styl ' ) } instead.\n` )
16
16
}
17
17
18
18
// style.styl API.
19
- const stylePath = path . resolve ( sourceDir , '.vuepress/style .styl' )
19
+ const stylePath = path . resolve ( sourceDir , '.vuepress/styles/index .styl' )
20
20
const hasUserStyle = fs . existsSync ( stylePath )
21
- await writeTemp ( 'style.styl' , hasUserStyle ? `@import(${ JSON . stringify ( stylePath ) } )` : `` )
22
-
23
- // Temporary tip, will be removed at next release.
24
- if ( hasUserOverride && ! hasUserStyle ) {
25
- logger . tip (
26
- `${ chalk . magenta ( 'override.styl' ) } has been split into 2 APIs, we recommend you upgrade to continue.\n` +
27
- ` See: ${ chalk . magenta ( 'https://vuepress.vuejs.org/default-theme-config/#simple-css-override' ) } `
28
- )
29
- }
21
+ await writeTemp ( 'style.styl' , hasUserStyle ? `@import(${ JSON . stringify ( stylePath ) } )` : '' )
30
22
}
31
23
} )
32
24
You can’t perform that action at this time.
0 commit comments