import { defineUserConfig } from "vuepress"; import { viteBundler } from "@vuepress/bundler-vite"; import { mkMyTheme } from "./theme.js"; import { redirectPlugin } from "@vuepress/plugin-redirect"; export default defineUserConfig({ lang: "ru-RU", title: "Дмитрий Плешевский", description: " ", locales: { "/": { lang: "ru-RU", title: "Дмитрий Плешевский", }, "/eng/": { lang: "en-US", title: "Dmitriy Pleshevskiy", }, }, theme: mkMyTheme({ hostname: "https://pleshevski.ru", repo: "https://git.pleshevski.ru/pleshevskiy/pleshevski.ru", locales: { "/": { selectLanguageName: "Русский", navbar: ["/", "/works"], notFound: [ "Верните страницу!", "Мы потеряли страницу...", "Вы заблокированы в лабиринте.", "Искали кота?", "Страница украдена.", "Ошиблись в параллельной вселенной.", ], backToHome: "Вернуться на главную", worksTable: { name: "Название", description: "Описание", role: "Роль", technologies: "Технологии", status: "Статус", dates: "Даты", }, }, "/eng/": { selectLanguageName: "English", navbar: ["/eng/", "/eng/works"], notFound: [ "Return the page!", "We lost a page...", "You're blocked in a labyrinth.", "Looking for a cat?", "The page has been stolen.", "Wrong turn in parallel universe.", ], backToHome: "Back to home", worksTable: { name: "Name", description: "Description", role: "Role", technologies: "Technologies", status: "Status", dates: "Dates", }, }, }, themePlugins: { seo: { autoDescription: false, isArticle: () => false, }, linksCheck: { build: "error", }, mediumZoom: false, sitemap: { changefreq: "monthly", }, }, }), plugins: [ redirectPlugin({ config: { "/rus/": "/", "/rus/works.html": "/works.html", }, }), ], bundler: viteBundler(), });