import { defineConfig } from 'vitepress' import { tabsMarkdownPlugin } from 'vitepress-plugin-tabs' import { overrideComponents } from './override-components' const gitlab = ` ` const new_version = process.env?.VITE_NEW_VERSION; console.log({ base: typeof new_version !== 'undefined' ? '/' : '/docs/' }) // https://vitepress.dev/reference/site-config export default defineConfig({ title: "cloud", description: "Документация Beeline Cloud", head: [['link', { rel: 'icon', type: 'image/png', sizes: '32x32', href: '/bee-favicon.png' }]], base: typeof new_version !== 'undefined' ? '/' : '/docs/', markdown: { config(md) { md.use(tabsMarkdownPlugin) } }, vite: { resolve: { alias: overrideComponents(), } }, locales: { root: { label: 'Русский', lang: 'ru', } }, themeConfig: { logo: { light: '/logo-light-theme.svg', dark: '/logo-dark-theme.svg', alt: 'cloud', }, search: { provider: 'local', options: { locales: { root: { translations: { button: { buttonText: 'Поиск', buttonAriaLabel: 'Поиск' }, modal: { noResultsText: 'Нет результатов для', resetButtonTitle: 'Сбросить', displayDetails: 'Показать расширенный список', footer: { selectText: 'Выбрать', closeText: 'Закрыть', navigateText: 'Перейти', } } } } } } }, // https://vitepress.dev/reference/default-theme-config // nav: [ // { // text: 'Документация', // link: '/guide/', // }, // { // text: 'API', // link: '', // }, // { // text: 'Terraform', // // link: '/terraform/', // link: '', // }, // ], docFooter: { next: 'Вперед', prev: 'Назад' }, outline: { label: 'Содержание' }, sidebar: { '/platform/': [ { text: 'Платформа Beeline Cloud', link: '/platform/index.md', }, {text: 'Сервисы', link: '/platform/services/services.md'}, {text: 'Техническая поддержка', link: '/platform/support/support-overview.md'}, ], '/start/': [ { text: 'Начало работы в Beeline Cloud', link: '/start/index.md', }, {text: 'Начать работу', link: '/start/getting-started.md'}, {text: 'Бесплатный период', link: '/start/trial.md'}, {text: 'Платное использование', link: '/start/organization.md'}, ], // '/billing/': [ // ], '/vdc/': [ { text: 'Виртуальные дата-центры на VMware', link: '/vdc/index.md', }, { text: 'Обзор сервиса', link: '/vdc/vdc-overview.md' }, { text: 'Быстрый старт', link: '/vdc/vdc-getting-started.md' }, { text: 'Виртуальные дата-центры', link: '/vdc/vdc-how-to/vdc-index.md', collapsed: true, items: [ { text: 'Создание дата-центра', link: '/vdc/vdc-how-to/vdc-create.md' }, { text: 'Вход в дата-центр', link: '/vdc/vdc-how-to/vdc-enter.md' }, { text: 'Управление дата-центром', link: '/vdc/vdc-how-to/vdc-manage.md' }, { text: 'Двухфакторная аутентификация', link: '/vdc/vdc-how-to/vdc-2fa.md', collapsed: true, items: [ {text: 'Подключение 2FA', link: '/vdc/vdc-how-to/vdc-2fa-start.md'}, {text: 'Управление 2FA', link: '/vdc/vdc-how-to/vdc-2fa-manage.md'}, ], }, ], }, // { text: 'Тарификация', link: '/vdc/vdc-tarif.md' }, ], '/compute/': [ { text: 'Виртуальные машины', link: '/compute/index.md', }, // {text: 'Быстрый старт', link: '/compute/compute-getting-started.md'}, { text: 'Обзор сервиса', link: '/compute/compute-overview.md' }, { text: 'Виртуальные машины', link: '/compute/compute-how-to/compute-index.md', collapsed: true, items: [ { text: 'Создание ВМ', link: '/compute/compute-how-to/compute-servers-create.md' }, { text: 'Подключение к ВМ', link: '/compute/compute-how-to/compute-connect.md' }, { text: 'Управление ВМ', link: '/compute/compute-how-to/compute-servers-manage.md' }, ], }, { text: 'Диски', link: '/compute/compute-how-to/compute-disks.md' }, { text: 'IP-адреса', link: '/compute/compute-how-to/compute-ip.md' }, { text: 'Группы размещения', link: '/compute/compute-how-to/compute-affinity.md' }, { text: 'Практические руководства', link: '/compute/compute-guide/compute-guide-index.md', collapsed: true, items: [ { text: 'Подключение по SSH к ВМ закрытого контура', link: '/compute/compute-guide/compute-guide-ssh-inside.md' }, { text: 'Настройка site-to-site VPN с помощью VyOS', link: '/compute/compute-guide/compute-guide-vyos.md' }, ], }, ], '/admin/': [ { text: 'Администрирование', link: '/admin/index.md', }, {text: 'Управление ключевыми парами', link: '/admin/ssh.md'}, ], }, }, } )