8000 docs: update theme · coreui/coreui-vue@e3c2850 · GitHub
[go: up one dir, main page]

Skip to content

Commit e3c2850

Browse files
committed
docs: update theme
1 parent 3650639 commit e3c2850

19 files changed

+545
-257
lines changed

packages/docs/.vuepress/clientAppEnhance.ts renamed to packages/docs/.vuepress/client.ts

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import type { ClientAppEnhance } from '@vuepress/client'
1+
import { defineClientConfig } from '@vuepress/client'
22
import { CIcon } from '@coreui/icons-vue'
33
import CChartPlugin from '@coreui/vue-chartjs/src/'
44
import CoreuiVue from '@coreui/vue/src'
@@ -61,11 +61,12 @@ export const icons = {
6161
cilWarning,
6262
}
6363

64-
const clientAppEnhance: ClientAppEnhance = ({ app }) => {
65-
app.use(CoreuiVue)
66-
app.provide('icons', icons)
67-
app.component('CIcon', CIcon)
68-
app.use(CChartPlugin)
69-
}
70-
71-
export default clientAppEnhance
64+
export default defineClientConfig({
65+
enhance({ app, router }) {
66+
app.use(CoreuiVue)
67+
app.provide('icons', icons)
68+
app.component('CIcon', CIcon)
69+
app.use(CChartPlugin),
70+
router.addRoute({ path: '', redirect: '/getting-started/introduction.html' })
71+
},
72+
})

0 commit comments

Comments
 (0)
0