Skip to content

Commit

Permalink
docs: update theme
Browse files Browse the repository at this point in the history
  • Loading branch information
mrholek committed May 30, 2024
1 parent 78f7c60 commit fd9e5e3
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/coreui-vue/src/composables/index.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { useColorModes } from './useColorModes'
import { useUniqueId } from './useUniqueId'
import { usePopper } from './usePopper'
import { useUniqueId } from './useUniqueId'

export { useColorModes, useUniqueId, usePopper }
export { useColorModes, usePopper, useUniqueId }
10 changes: 10 additions & 0 deletions packages/docs/.vuepress/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,16 @@ export default defineUserConfig({
},
}),
tocPlugin({}),
{
name: 'extendsPage',
extendsPage: (page) => {
const frontmatter = page.frontmatter

frontmatter.head = [
['link', { rel: 'canonical', href: `https://coreui.io/vue/docs${page.path}` }],
]
},
},
],
theme: defaultTheme({
sidebar: [
Expand Down
1 change: 1 addition & 0 deletions packages/docs/.vuepress/src/shared/page.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ export interface DefaultThemePageFrontmatter {
navbar?: boolean
pageClass?: string
name?: string
preview_component?: boolean
pro_component?: boolean
other_frameworks?: string
}
Expand Down

0 comments on commit fd9e5e3

Please sign in to comment.