-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.js
More file actions
34 lines (26 loc) · 1.1 KB
/
index.js
File metadata and controls
34 lines (26 loc) · 1.1 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
import DefaultTheme, { VPBadge } from 'vitepress/theme'
import './custom.css'
import 'virtual:group-icons.css'
import StackTable from './components/StackTable.vue'
import LatestVersion from './components/LatestVersion.vue'
import YouTubeEmbed from './components/YouTubeEmbed.vue'
import CopyButton from '@cssnr/vitepress-plugin-copybutton'
import '@cssnr/vitepress-plugin-copybutton/style.css'
import Contributors from '@cssnr/vitepress-plugin-contributors'
import '@cssnr/vitepress-plugin-contributors/style.css'
import contributors from '../contributors.json'
// https://vitepress.dev/guide/extending-default-theme
// noinspection JSUnusedGlobalSymbols
/** @type {import('vitepress').Theme} */
export default {
...DefaultTheme,
enhanceApp({ app }) {
app.component('Badge', VPBadge)
app.component('StackTable', StackTable)
app.component('LatestVersion', LatestVersion)
app.component('YouTubeEmbed', YouTubeEmbed)
app.component('CB', CopyButton)
app.component('Contributors', Contributors)
app.config.globalProperties.$contributors = contributors
},
}