Fix build

pull/1/head
Zakhar Timoshenko 3 years ago
parent 108d24a1c8
commit 0d931300d6

@ -1,5 +1,6 @@
import type { DefaultTheme, LocaleConfig } from 'vitepress'
import type { Theme } from '../theme/types'
import { sections } from '../theme/plugins/section'
import 'dotenv/config'
export const SITE_NAME = 'Kotatsu Website'
@ -64,6 +65,8 @@ export const config: LocaleConfig<Theme.Config> = {
message: "<a href=\"https://www.gnu.org/licenses/gpl-3.0.en.html\" target=\"_blank\">GPL-3.0 Licensed</a> <span class=\"divider\">|</span> <a href=\"/privacy/\">Privacy policy</a>",
copyright: `Copyright © 2020 - ${new Date().getFullYear()} Kotatsu Developers`,
},
sections: sections
},
}
}

@ -94,7 +94,7 @@ export default defineConfigWithTheme<Theme.Config>({
},
},
sections,
sections
},
locales: {

@ -1,5 +1,6 @@
import type { DefaultTheme, LocaleConfig } from 'vitepress'
import type { Theme } from '../theme/types'
import { sections } from '../theme/plugins/section'
import 'dotenv/config'
export const SITE_NAME = 'Kotatsu Website'
@ -56,7 +57,6 @@ export const config: LocaleConfig<Theme.Config> = {
sidebarMenuLabel: 'Меню',
darkModeSwitchLabel: 'Тема',
langMenuLabel: 'Изменить язык',
teamSectionTitle: 'Команда',
lastUpdated: {
text: 'Последнее обновление',
@ -74,6 +74,8 @@ export const config: LocaleConfig<Theme.Config> = {
message: "<a href=\"https://www.gnu.org/licenses/gpl-3.0.en.html\" target=\"_blank\">Лицензия GPL-3.0</a> <span class=\"divider\">|</span> <a href=\"/privacy/\">Политика конфиденциальности</a>",
copyright: `Copyright © 2020 - ${new Date().getFullYear()} Kotatsu Developers`,
},
sections: sections
},
}
}

@ -1,10 +1,3 @@
import { type Ref, computed } from 'vue'
import { type PageData, useData } from 'vitepress'
export interface Data {
lang: Ref<string>
}
const iconMappings = {
about: '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><title>information-outline</title><path d="M11,9H13V7H11M12,20C7.59,20 4,16.41 4,12C4,7.59 7.59,4 12,4C16.41,4 20,7.59 20,12C20,16.41 16.41,20 12,20M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10,10 0 0,0 12,2M11,17H13V11H11V17Z" /></svg>',
bookmark: '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><title>bookmark-outline</title><path d="M17,18L12,15.82L7,18V5H17M17,3H7A2,2 0 0,0 5,5V21L12,18L19,21V5C19,3.89 18.1,3 17,3Z" /></svg>',

@ -73,6 +73,8 @@ export const config: LocaleConfig<Theme.Config> = {
message: "<a href=\"https://www.gnu.org/licenses/gpl-3.0.en.html\" target=\"_blank\">Ліцензія GPL-3.0</a> <span class=\"divider\">|</span> <a href=\"/privacy/\">Політика конфіденційності</a>",
copyright: `Copyright © 2020 - ${new Date().getFullYear()} Kotatsu Developers`,
},
sections: sections
}
}
}

@ -2,12 +2,6 @@ import { DefaultTheme } from 'vitepress'
import type { SectionData } from '../plugins/section'
export namespace Theme {
export interface Sponsor {
message?: string
linkText?: string
link?: string
}
export interface Config extends DefaultTheme.Config {
titleSeparator?: string
sections?: Array<SectionData>

Loading…
Cancel
Save