alina sireneva
33302a1f4c
All checks were successful
Build and deploy docs / build (push) Successful in 1m31s
Tests / test-deno (push) Successful in 1m50s
Tests / test-bun (push) Successful in 2m0s
Tests / test-node (node22) (push) Successful in 2m10s
Tests / test-node (node20) (push) Successful in 2m13s
Tests / test-node (node18) (push) Successful in 2m16s
Tests / test-web (chromium) (push) Successful in 2m13s
Tests / test-web (firefox) (push) Successful in 2m22s
Build and deploy typedoc / build (push) Successful in 6m16s
Tests / lint (push) Successful in 6m54s
Tests / e2e (push) Successful in 52s
Tests / e2e-deno (push) Successful in 1m3s
26 lines
726 B
TypeScript
26 lines
726 B
TypeScript
// https://vitepress.dev/guide/custom-theme
|
|
import type { Theme } from 'vitepress'
|
|
import vitepressBackToTop from 'vitepress-plugin-back-to-top'
|
|
|
|
import DefaultTheme from 'vitepress/theme'
|
|
import EmbedPost from '../components/EmbedPost.vue'
|
|
|
|
import Tag from '../components/Tag.vue'
|
|
import VImg from '../components/VImg.vue'
|
|
import Layout from './Layout.vue'
|
|
import 'vitepress-plugin-back-to-top/dist/style.css'
|
|
|
|
import './style.css'
|
|
|
|
export default {
|
|
extends: DefaultTheme,
|
|
Layout,
|
|
enhanceApp({ app }) {
|
|
app.component('v-img', VImg)
|
|
app.component('EmbedPost', EmbedPost)
|
|
app.component('Tag', Tag)
|
|
vitepressBackToTop({
|
|
threshold: 300,
|
|
})
|
|
},
|
|
} satisfies Theme
|