2025-01-17 08:40:57 +03:00
|
|
|
// https://vitepress.dev/guide/custom-theme
|
|
|
|
import type { Theme } from 'vitepress'
|
|
|
|
import vitepressBackToTop from 'vitepress-plugin-back-to-top'
|
|
|
|
|
2025-01-18 11:18:43 +03:00
|
|
|
import DefaultTheme from 'vitepress/theme'
|
2025-01-17 08:40:57 +03:00
|
|
|
import EmbedPost from '../components/EmbedPost.vue'
|
2025-01-18 11:18:43 +03:00
|
|
|
|
2025-01-17 08:40:57 +03:00
|
|
|
import Tag from '../components/Tag.vue'
|
2025-01-18 11:18:43 +03:00
|
|
|
import VImg from '../components/VImg.vue'
|
2025-01-17 08:40:57 +03:00
|
|
|
import Layout from './Layout.vue'
|
2025-01-18 11:18:43 +03:00
|
|
|
import 'vitepress-plugin-back-to-top/dist/style.css'
|
2025-01-17 08:40:57 +03:00
|
|
|
|
|
|
|
import './style.css'
|
|
|
|
|
|
|
|
export default {
|
2025-01-18 11:18:43 +03:00
|
|
|
extends: DefaultTheme,
|
|
|
|
Layout,
|
|
|
|
enhanceApp({ app }) {
|
|
|
|
app.component('v-img', VImg)
|
|
|
|
app.component('EmbedPost', EmbedPost)
|
|
|
|
app.component('Tag', Tag)
|
|
|
|
vitepressBackToTop({
|
|
|
|
threshold: 300,
|
|
|
|
})
|
|
|
|
},
|
2025-01-17 08:40:57 +03:00
|
|
|
} satisfies Theme
|