Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit fd9e5e3

Browse filesBrowse files
committed
docs: update theme
1 parent 78f7c60 commit fd9e5e3
Copy full SHA for fd9e5e3

File tree

3 files changed

+13
-2
lines changed
Filter options

3 files changed

+13
-2
lines changed
+2-2Lines 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

Copy file name to clipboardExpand all lines: packages/docs/.vuepress/config.ts
+10Lines 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

Copy file name to clipboardExpand all lines: packages/docs/.vuepress/src/shared/page.ts
+1Lines 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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.