Skip to content

Commit fd9e5e3

Browse files
committed
docs: update theme
1 parent 78f7c60 commit fd9e5e3

File tree

3 files changed

+13
-2
lines changed

3 files changed

+13
-2
lines changed
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { useColorModes } from './useColorModes'
2-
import { useUniqueId } from './useUniqueId'
32
import { usePopper } from './usePopper'
3+
import { useUniqueId } from './useUniqueId'
44

5-
export { useColorModes, useUniqueId, usePopper }
5+
export { useColorModes, usePopper, useUniqueId }

packages/docs/.vuepress/config.ts

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,16 @@ export default defineUserConfig({
7070
},
7171
}),
7272
tocPlugin({}),
73+
{
74+
name: 'extendsPage',
75+
extendsPage: (page) => {
76+
const frontmatter = page.frontmatter
77+
78+
frontmatter.head = [
79+
['link', { rel: 'canonical', href: `https://coreui.io/vue/docs${page.path}` }],
80+
]
81+
},
82+
},
7383
],
7484
theme: defaultTheme({
7585
sidebar: [

packages/docs/.vuepress/src/shared/page.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ export interface DefaultThemePageFrontmatter {
1010
navbar?: boolean
1111
pageClass?: string
1212
name?: string
13+
preview_component?: boolean
1314
pro_component?: boolean
1415
other_frameworks?: string
1516
}

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy