Some checks failed
Tests / e2e (push) Blocked by required conditions
Tests / e2e-deno (push) Blocked by required conditions
Build and deploy typedoc / build (push) Waiting to run
Build and deploy docs / build (push) Failing after 46s
Tests / lint (push) Has been cancelled
Tests / test-node (node18) (push) Has been cancelled
Tests / test-bun (push) Has been cancelled
Tests / test-node (node22) (push) Has been cancelled
Tests / test-web (chromium) (push) Has been cancelled
Tests / test-deno (push) Has been cancelled
Tests / test-node (node20) (push) Has been cancelled
Tests / test-web (firefox) (push) Has been cancelled
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
|