From fd544ae52887dce98b1976099e0d2d314dca485d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=9E=D0=BB=D0=B5=D0=B3=20=D0=A9=D0=B0=D0=B2=D0=B5=D0=BB?= =?UTF-8?q?=D0=B5=D0=B2?= Date: Thu, 11 Jul 2024 18:29:49 +0300 Subject: [PATCH] .vitepress: fix vitepress-plugin-enhanced-readabilities, error deploy --- .vitepress/config/shared.ts | 5 + .../theme/components/AMWAsideMetaKeyword.vue | 2 +- .../theme/components/AMWAsideMetaLink.vue | 2 +- .../theme/components/AMWAsideMetaList.vue | 2 +- .../theme/components/AMWContribution.vue | 2 +- .../theme/components/AMWDocsAsideMeta.vue | 2 +- .vitepress/theme/index.ts | 2 +- package-lock.json | 1952 +++++++++++++++-- package.json | 5 + uno.config.ts | 21 + 10 files changed, 1789 insertions(+), 206 deletions(-) create mode 100644 uno.config.ts diff --git a/.vitepress/config/shared.ts b/.vitepress/config/shared.ts index 3f21f23..44e1dfb 100644 --- a/.vitepress/config/shared.ts +++ b/.vitepress/config/shared.ts @@ -1,6 +1,7 @@ import { defineConfigWithTheme } from 'vitepress' import markdownTimeline from "vitepress-markdown-timeline" import { tabsMarkdownPlugin } from 'vitepress-plugin-tabs' +import UnoCSS from 'unocss/vite' export const shared = defineConfigWithTheme({ title: "ALT Mobile Wiki", @@ -8,12 +9,16 @@ export const shared = defineConfigWithTheme({ base: '/ALTMobileWiki/', srcDir: './docs', vite: { + plugins: [ + UnoCSS() + ], optimizeDeps: { exclude: ['@nolebase/vitepress-plugin-enhanced-readabilities/client'] }, ssr: { noExternal: [ '@nolebase/vitepress-plugin-enhanced-readabilities', + '@nolebase/ui' ] } }, diff --git a/.vitepress/theme/components/AMWAsideMetaKeyword.vue b/.vitepress/theme/components/AMWAsideMetaKeyword.vue index 8d2dfd0..d3b1953 100644 --- a/.vitepress/theme/components/AMWAsideMetaKeyword.vue +++ b/.vitepress/theme/components/AMWAsideMetaKeyword.vue @@ -4,7 +4,7 @@ export interface Keywords { type: string } -const props = defineProps<{ +defineProps<{ keywords: Keywords[] }>(); diff --git a/.vitepress/theme/components/AMWAsideMetaLink.vue b/.vitepress/theme/components/AMWAsideMetaLink.vue index 4fed1ff..540dcca 100644 --- a/.vitepress/theme/components/AMWAsideMetaLink.vue +++ b/.vitepress/theme/components/AMWAsideMetaLink.vue @@ -8,7 +8,7 @@ export interface Links { style: string; } -const props = defineProps<{ +defineProps<{ links: Links[] }>(); diff --git a/.vitepress/theme/components/AMWAsideMetaList.vue b/.vitepress/theme/components/AMWAsideMetaList.vue index a9d31ea..4c17037 100644 --- a/.vitepress/theme/components/AMWAsideMetaList.vue +++ b/.vitepress/theme/components/AMWAsideMetaList.vue @@ -8,7 +8,7 @@ export interface Lists { link: string; } -const props = defineProps<{ +defineProps<{ lists: Lists[] }>(); diff --git a/.vitepress/theme/components/AMWContribution.vue b/.vitepress/theme/components/AMWContribution.vue index c2c1a92..4f04943 100644 --- a/.vitepress/theme/components/AMWContribution.vue +++ b/.vitepress/theme/components/AMWContribution.vue @@ -6,7 +6,7 @@ import { useData } from 'vitepress' const { frontmatter } = useData(); -const { members, size } = defineProps({ +const { members } = defineProps({ size: { type: String, default: 'medium', diff --git a/.vitepress/theme/components/AMWDocsAsideMeta.vue b/.vitepress/theme/components/AMWDocsAsideMeta.vue index f01ad86..1d919d9 100644 --- a/.vitepress/theme/components/AMWDocsAsideMeta.vue +++ b/.vitepress/theme/components/AMWDocsAsideMeta.vue @@ -1,6 +1,6 @@