alina sireneva
690948b8b1
All checks were successful
Build and deploy typedoc / build (push) Successful in 5m15s
Co-authored-by: Kamilla 'ova <me@kamillaova.dev> Co-authored-by: Alina Chebakova <chebakov05@gmail.com> Co-authored-by: Kravets <57632712+kravetsone@users.noreply.github.com> Co-authored-by: starkow <hello@starkow.dev> Co-authored-by: sireneva <150665887+sireneva@users.noreply.github.com>
30 lines
764 B
TypeScript
30 lines
764 B
TypeScript
// https://vitepress.dev/guide/custom-theme
|
|
import type { Theme } from 'vitepress'
|
|
import DefaultTheme from 'vitepress/theme'
|
|
|
|
import vitepressBackToTop from 'vitepress-plugin-back-to-top'
|
|
import 'vitepress-plugin-back-to-top/dist/style.css'
|
|
|
|
// @ts-ignore
|
|
import EmbedPost from '../components/EmbedPost.vue'
|
|
// @ts-ignore
|
|
import VImg from '../components/VImg.vue'
|
|
// @ts-ignore
|
|
import Tag from '../components/Tag.vue'
|
|
// @ts-ignore
|
|
import Layout from './Layout.vue'
|
|
|
|
import './style.css'
|
|
|
|
export default {
|
|
extends: DefaultTheme,
|
|
Layout,
|
|
enhanceApp({ app, router, siteData }) {
|
|
app.component('v-img', VImg)
|
|
app.component('EmbedPost', EmbedPost)
|
|
app.component('Tag', Tag)
|
|
vitepressBackToTop({
|
|
threshold: 300
|
|
})
|
|
}
|
|
} satisfies Theme
|