File tree Expand file tree Collapse file tree 5 files changed +31
-26
lines changed
PluginComponentReference/client/components Expand file tree Collapse file tree 5 files changed +31
-26
lines changed Original file line number Diff line number Diff line change @@ -140,7 +140,7 @@ export default defineComponent({
140
140
}, {})
141
141
})
142
142
const githubURL: ComputedRef <string > = computed (() => {
143
- const name = component .name ?? ' '
143
+ const name = component .name ?? component . __name ?? ' '
144
144
if (name .indexOf (' {' ) !== - 1 ) {
145
145
// Example component (most likely an auto generated component)
146
146
return ' '
@@ -154,7 +154,7 @@ export default defineComponent({
154
154
// component name kebab
155
155
156
156
const componentName: ComputedRef <string > = computed (() => {
157
- return hyphenate (component .name ?? ' ' )
157
+ return hyphenate (component .name ?? component . __name ?? ' ' )
158
158
})
159
159
const tag: ComputedRef <string > = computed (() => {
160
160
return ` <${componentName .value }> `
Original file line number Diff line number Diff line change
1
+ import { defineClientConfig } from '@vuepress/client'
2
+ import 'bootstrap/scss/bootstrap.scss'
3
+ import 'bootstrap-vue-3/dist/bootstrap-vue-3.css'
4
+ import DocReference from './components/DocReference.vue'
5
+ import ReferenceSection from './PluginComponentReference/client/components/reference-section'
6
+ import { h } from 'vue'
7
+
8
+ export default defineClientConfig ( {
9
+ async enhance ( { app, router, siteData} ) {
10
+ if ( ! __VUEPRESS_SSR__ ) {
11
+ const { BootstrapVue3, BToastPlugin} = await import ( '../../dist/bootstrap-vue-3.es' )
12
+ app . use ( BootstrapVue3 )
13
+ app . use ( BToastPlugin )
14
+ app . component ( 'doc-reference' , DocReference )
15
+ app . component ( 'ComponentReference' , ( props ) => h ( ReferenceSection , { } ) )
16
+ }
17
+ } ,
18
+ setup ( ) { } ,
19
+ rootComponents : [ ] ,
20
+ } )
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1
- import { defineUserConfig , viteBundler } from 'vuepress'
2
- import { componentReference } from './PluginComponentReference '
1
+ import { viteBundler } from '@ vuepress/bundler-vite '
2
+ import { defineUserConfig } from '@vuepress/cli '
3
3
import { defaultTheme } from '@vuepress/theme-default'
4
- import type { DefaultThemeOptions } from 'vuepress'
5
- const { searchPlugin } = require ( '@vuepress/plugin-search' )
4
+ import { searchPlugin } from '@ vuepress/plugin-search '
5
+ import { componentReference } from './PluginComponentReference'
6
6
7
- export default defineUserConfig < DefaultThemeOptions > ( {
7
+ export default defineUserConfig ( {
8
8
lang : 'en-US' ,
9
9
base : '/bootstrap-vue-3/' ,
10
10
title : 'BootstrapVue 3' ,
@@ -27,8 +27,7 @@ export default defineUserConfig<DefaultThemeOptions>({
27
27
editLink : true ,
28
28
contributors : false ,
29
29
lastUpdated : true ,
30
- darkMode : false ,
31
- bundler : '@vuepress/bundler-webpack' ,
30
+ colorMode : 'light' ,
32
31
themePlugins : {
33
32
mediumZoom : false ,
34
33
} ,
Original file line number Diff line number Diff line change 11
11
"bootstrap" : " 5.x.x"
12
12
},
13
13
"devDependencies" : {
14
- "@vuepress/plugin-search" : " ^2.0.0-beta.41" ,
14
+ "@vuepress/plugin-search" : " ^2.0.0-beta.48" ,
15
+ "@vuepress/plugin-register-components" : " ^2.0.0-beta.48" ,
15
16
"bootstrap-vue-3" : " file:../" ,
16
- "vuepress" : " ^2.0.0-beta.41 "
17
+ "vuepress" : " ^2.0.0-beta.48 "
17
18
}
18
19
}
You can’t perform that action at this time.
0 commit comments