Skip to content

Commit

Permalink
.vitepress: fix vitepress-plugin-enhanced-readabilities, error deploy
Browse files Browse the repository at this point in the history
  • Loading branch information
OlegShchavelev committed Jul 11, 2024
1 parent 323df25 commit fd544ae
Show file tree
Hide file tree
Showing 10 changed files with 1,789 additions and 206 deletions.
5 changes: 5 additions & 0 deletions .vitepress/config/shared.ts
Original file line number Diff line number Diff line change
@@ -1,19 +1,24 @@
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",
titleTemplate: ':title — ALT Mobile Wiki',
base: '/ALTMobileWiki/',
srcDir: './docs',
vite: {
plugins: [
UnoCSS()
],
optimizeDeps: {
exclude: ['@nolebase/vitepress-plugin-enhanced-readabilities/client']
},
ssr: {
noExternal: [
'@nolebase/vitepress-plugin-enhanced-readabilities',
'@nolebase/ui'
]
}
},
Expand Down
2 changes: 1 addition & 1 deletion .vitepress/theme/components/AMWAsideMetaKeyword.vue
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ export interface Keywords {
type: string
}
const props = defineProps<{
defineProps<{
keywords: Keywords[]
}>();
Expand Down
2 changes: 1 addition & 1 deletion .vitepress/theme/components/AMWAsideMetaLink.vue
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ export interface Links {
style: string;
}
const props = defineProps<{
defineProps<{
links: Links[]
}>();
Expand Down
2 changes: 1 addition & 1 deletion .vitepress/theme/components/AMWAsideMetaList.vue
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ export interface Lists {
link: string;
}
const props = defineProps<{
defineProps<{
lists: Lists[]
}>();
Expand Down
2 changes: 1 addition & 1 deletion .vitepress/theme/components/AMWContribution.vue
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import { useData } from 'vitepress'
const { frontmatter } = useData();
const { members, size } = defineProps({
const { members } = defineProps({
size: {
type: String,
default: 'medium',
Expand Down
2 changes: 1 addition & 1 deletion .vitepress/theme/components/AMWDocsAsideMeta.vue
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<script setup lang="ts">
import { type Ref, computed } from 'vue'
import { mergeConfig, useData } from 'vitepress'
import { useData } from 'vitepress'
import VPImage from 'vitepress/dist/client/theme-default/components/VPImage.vue';
import { getThumb, getDeveloper, getKeywords, getLists, getLinks } from '../composables/asidemeta'
Expand Down
2 changes: 1 addition & 1 deletion .vitepress/theme/index.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
// https://vitepress.dev/guide/custom-theme
import { h } from 'vue'
import type { Theme } from 'vitepress'
import DefaultTheme from 'vitepress/theme'
Expand All @@ -19,6 +18,7 @@ import { enhanceAppWithTabs } from 'vitepress-plugin-tabs/client'

import './styles/style.css'
import './styles/theme.css'
import 'uno.css'
import '@nolebase/vitepress-plugin-enhanced-readabilities/client/style.css'
import "vitepress-markdown-timeline/dist/theme/index.css"
import { ERlocales } from '../data/lexicon'
Expand Down
Loading

0 comments on commit fd544ae

Please sign in to comment.