Skip to content

Commit 0111fac

Browse files
authored
Merge pull request #373 from messenjer/fix/vuepress-beta-41-breaking-changes
Fix/vuepress beta 41 breaking changes
2 parents aead8f0 + 535ab30 commit 0111fac

File tree

4 files changed

+1438
-7157
lines changed

4 files changed

+1438
-7157
lines changed

docs/.vuepress/config.ts

Lines changed: 12 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,26 @@
1-
import {defineUserConfig} from 'vuepress'
1+
import {defineUserConfig, viteBundler} from 'vuepress'
22
import {componentReference} from './PluginComponentReference'
3+
import {defaultTheme} from '@vuepress/theme-default'
34
import type {DefaultThemeOptions} from 'vuepress'
4-
import type {WebpackBundlerOptions} from '@vuepress/bundler-webpack'
5+
const {searchPlugin} = require('@vuepress/plugin-search')
56

6-
export default defineUserConfig<DefaultThemeOptions, WebpackBundlerOptions>({
7+
export default defineUserConfig<DefaultThemeOptions>({
78
lang: 'en-US',
89
base: '/bootstrap-vue-3/',
910
title: 'BootstrapVue 3',
1011
head: [['link', {rel: 'icon', href: '/bootstrap-vue-3/favicon.ico'}]],
1112
plugins: [
12-
[
13-
'@vuepress/plugin-search',
14-
{
15-
locales: {
16-
'/': {
17-
placeholder: 'Search',
18-
},
13+
searchPlugin({
14+
locales: {
15+
'/': {
16+
placeholder: 'Search',
1917
},
2018
},
21-
],
19+
}),
2220
componentReference,
2321
],
24-
themeConfig: {
22+
bundler: viteBundler(),
23+
theme: defaultTheme({
2524
logo: '/logo.png',
2625
repo: 'https://github.com/cdmoro/bootstrap-vue-3',
2726
docsDir: 'docs',
@@ -85,5 +84,5 @@ export default defineUserConfig<DefaultThemeOptions, WebpackBundlerOptions>({
8584
},
8685
],
8786
},
88-
},
87+
}),
8988
})

0 commit comments

Comments
 (0)