diff --git a/.vitepress/config/en.ts b/.vitepress/config/en.ts index 9375a97..e5a1580 100644 --- a/.vitepress/config/en.ts +++ b/.vitepress/config/en.ts @@ -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 = { message: "GPL-3.0 Licensed | Privacy policy", copyright: `Copyright © 2020 - ${new Date().getFullYear()} Kotatsu Developers`, }, + + sections: sections }, } } diff --git a/.vitepress/config/index.ts b/.vitepress/config/index.ts index d9dd45f..ddcfaf3 100644 --- a/.vitepress/config/index.ts +++ b/.vitepress/config/index.ts @@ -94,7 +94,7 @@ export default defineConfigWithTheme({ }, }, - sections, + sections }, locales: { diff --git a/.vitepress/config/ru.ts b/.vitepress/config/ru.ts index 758aec0..37156a1 100644 --- a/.vitepress/config/ru.ts +++ b/.vitepress/config/ru.ts @@ -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 = { sidebarMenuLabel: 'Меню', darkModeSwitchLabel: 'Тема', langMenuLabel: 'Изменить язык', - teamSectionTitle: 'Команда', lastUpdated: { text: 'Последнее обновление', @@ -74,6 +74,8 @@ export const config: LocaleConfig = { message: "Лицензия GPL-3.0 | Политика конфиденциальности", copyright: `Copyright © 2020 - ${new Date().getFullYear()} Kotatsu Developers`, }, + + sections: sections }, } } diff --git a/.vitepress/config/shortcodes.ts b/.vitepress/config/shortcodes.ts index 83f50cd..ca79d3b 100644 --- a/.vitepress/config/shortcodes.ts +++ b/.vitepress/config/shortcodes.ts @@ -1,10 +1,3 @@ -import { type Ref, computed } from 'vue' -import { type PageData, useData } from 'vitepress' - -export interface Data { - lang: Ref -} - const iconMappings = { about: 'information-outline', bookmark: 'bookmark-outline', diff --git a/.vitepress/config/ua.ts b/.vitepress/config/ua.ts index a2182a5..d021924 100644 --- a/.vitepress/config/ua.ts +++ b/.vitepress/config/ua.ts @@ -73,6 +73,8 @@ export const config: LocaleConfig = { message: "Ліцензія GPL-3.0 | Політика конфіденційності", copyright: `Copyright © 2020 - ${new Date().getFullYear()} Kotatsu Developers`, }, + + sections: sections } } } diff --git a/.vitepress/theme/types/index.ts b/.vitepress/theme/types/index.ts index 60ea263..6b6b036 100644 --- a/.vitepress/theme/types/index.ts +++ b/.vitepress/theme/types/index.ts @@ -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