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: "BeeCloud Docs", description: "Документация публичного облака", head: [['link', { rel: 'icon', href: '/favicon.svg' }]], base: typeof new_version !== 'undefined' ? '/' : '/docs/', markdown: { config(md) { md.use(tabsMarkdownPlugin) } }, vite: { resolve: { alias: overrideComponents(), } }, locales: { root: { label: 'Русский', lang: 'ru', } }, themeConfig: { logo: '/favicon.svg', 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: 'Wiki-DF', // link: '/wikidf/', // }, { text: 'Terraform', link: '/terraform/', }, { text: 'Консоль управления', link: 'https://console.cloud.dfcloud.ru' } ], // socialLinks: [ // { icon: { svg: gitlab }, link: 'https://git.vimpelcom.ru/common/vega/docs' } // ], // editLink: { // pattern: 'https://git.vimpelcom.ru/-/ide/project/common/vega/docs/edit/develop/-/src/:path', // text: 'Отредактируйте эту страницу на GitLab' // }, docFooter: { next: 'Вперед', prev: 'Назад' }, lastUpdated: { text: 'Обновлена', formatOptions: { dateStyle: 'long', } }, outline: { label: 'Содержание' }, sidebar: { '/guide/': [ { text: 'Облачные вычисления', collapsed: true, items: [ { text: 'Обзор сервиса', link: '/guide/compute/compute-overview.md' }, { text: 'Быстрый старт', link: '/guide/compute/compute-getting-started.md' }, { text: 'Виртуальные серверы', link: '/guide/compute/compute-instructions/compute-servers-create.md' }, { text: 'Управление виртуальными серверами', link: '/guide/compute/compute-instructions/compute-servers-manage.md' }, { text: 'Диски', link: '/guide/compute/compute-instructions/compute-disks.md' }, { text: 'Группы размещения', link: '/guide/compute/compute-instructions/compute-affinity.md' }, { text: 'IP-адрес', link: '/guide/compute/compute-instructions/compute-ip.md' }, { text: 'Квоты и лимиты', link: '/guide/compute/compute-limits.md' }, { text: 'Уровень обслуживания', link: '/guide/compute/compute-ola.md' }, ] }, { text: 'Объектное хранилище', collapsed: true, items: [ { text: 'Обзор сервиса', link: '/guide/storage/storage-overview.md' }, { text: 'Подключение к хранилищу', collapsed: true, items: [ { text: 'WinSCP', link: '/guide/storage/storage-instructions/s3-connect/winscp.md' }, { text: 'S3cmd', link: '/guide/storage/storage-instructions/s3-connect/s3cmd.md' }, ] }, { text: 'Управление хранилищем', link: '/guide/storage/storage-instructions/storage-s3.md' }, { text: 'Квоты и лимиты', link: '/guide/storage/storage-limits.md' }, { text: 'Уровень обслуживания', link: '/guide/storage/storage-ola.md' }, ] }, { text: 'DNS', collapsed: true, items: [ { text: 'Обзор сервиса', link: '/guide/dns/dns-overview.md' }, { text: 'Ресурсные записи', link: '/guide/dns/dns-instructions/dns-create.md' }, { text: 'Квоты и лимиты', link: '/guide/dns/dns-limits.md' }, ] }, { text: 'Аккаунт', collapsed: true, items: [ { text: 'Проекты', link: '/guide/admin/projects.md' }, { text: 'Ролевая модель', link: '/guide/admin/roles.md' }, { text: 'Квоты и лимиты', link: '/guide/admin/limits.md' }, { text: 'Регионы', link: '/guide/admin/availability-matrix.md' }, { text: 'SSH ключи', link: '/guide/admin/ssh.md' }, { text: 'Участники проекта', link: '/guide/admin/users.md' }, ] }, { text: 'Wiki DF', collapsed: true, items: [ { text: 'Cертификаты и лицензии beeline cloud', collapsed: true, items: [ { text: 'Лицензии', link: '/guide/wikidf/01-lic-sert/lic.md' }, { text: 'Cертификаты', link: '/guide/wikidf/01-lic-sert/sert.md' }, ] }, { text: 'База знаний beeline cloud', link: '/guide/wikidf/02-kb/02-kb-overview.md' }, { text: 'Инфраструктурные сервисы', collapsed: true, items: [ { text: 'Инфраструктурные сервисы - Обзор', link: '/guide/wikidf/03-iaas/03-0-iaas-overview.md' }, { text: 'BeeCloud Stack', collapsed: true, items: [ { text: 'BeeCloud Stack - Обзор сервиса', link: '/guide/wikidf/03-iaas/03-1-stack/03-1-0-stack-overview.md' }, { text: '1. Архитектура сервиса', link: '/guide/wikidf/03-iaas/03-1-stack/03-1-1.md' }, { text: '2. Роли и авторизация', link: '/guide/wikidf/03-iaas/03-1-stack/03-1-2.md' }, { text: '3. Инструкция', collapsed: true, items: [ { text: 'Вычисления', collapsed: true, items: [ { text: 'A. Создание ВМ', link: '/guide/wikidf/03-iaas/03-1-stack/03-1-3/03-1-3-1/03-1-3-1-a.md' }, { text: 'B. Старт, стоп и рестарт ВМ', link: '/guide/wikidf/03-iaas/03-1-stack/03-1-3/03-1-3-1/03-1-3-1-b.md' }, { text: 'C. Модификация ВМ', link: '/guide/wikidf/03-iaas/03-1-stack/03-1-3/03-1-3-1/03-1-3-1-c.md' }, { text: 'D. Создание, удаление и откат к снимку ВМ', link: '/guide/wikidf/03-iaas/03-1-stack/03-1-3/03-1-3-1/03-1-3-1-d.md' }, { text: 'E. Доступ к консоли ВМ', link: '/guide/wikidf/03-iaas/03-1-stack/03-1-3/03-1-3-1/03-1-3-1-e.md' }, { text: 'F. Использование носителя для восстановления ВМ', link: '/guide/wikidf/03-iaas/03-1-stack/03-1-3/03-1-3-1/03-1-3-1-f.md' }, { text: 'G. Удаление ВМ', link: '/guide/wikidf/03-iaas/03-1-stack/03-1-3/03-1-3-1/03-1-3-1-g.md' }, { text: 'H. Cдувание ОЗУ гостевой ОС ВМ', link: '/guide/wikidf/03-iaas/03-1-stack/03-1-3/03-1-3-1/03-1-3-1-h.md' }, { text: 'I. Просмотр истории ВМ', link: '/guide/wikidf/03-iaas/03-1-stack/03-1-3/03-1-3-1/03-1-3-1-i.md' }, ] }, { text: 'Программно-определяемый маршрутизатор (Edge)', collapsed: true, items: [ { text: 'Edge - Обзор', link: '/guide/wikidf/03-iaas/03-1-stack/03-1-3/03-1-3-2/03-1-3-2-0-overview.md' }, { text: 'A. Создание роутера', link: '/guide/wikidf/03-iaas/03-1-stack/03-1-3/03-1-3-2/03-1-3-2-a.md' }, { text: 'B. Удаление роутера', link: '/guide/wikidf/03-iaas/03-1-stack/03-1-3/03-1-3-2/03-1-3-2-b.md' }, { text: 'C. Старт, стоп и рестарт роутера', link: '/guide/wikidf/03-iaas/03-1-stack/03-1-3/03-1-3-2/03-1-3-2-c.md' }, { text: 'D. Добавление правил фаервола', link: '/guide/wikidf/03-iaas/03-1-stack/03-1-3/03-1-3-2/03-1-3-2-d.md' }, { text: 'E. Удаление правил фаервола', link: '/guide/wikidf/03-iaas/03-1-stack/03-1-3/03-1-3-2/03-1-3-2-e.md' }, { text: 'F. Добавление правил NAT', link: '/guide/wikidf/03-iaas/03-1-stack/03-1-3/03-1-3-2/03-1-3-2-f.md' }, { text: 'G. Добавление виртуального сетевого порта', link: '/guide/wikidf/03-iaas/03-1-stack/03-1-3/03-1-3-2/03-1-3-2-g.md' }, { text: 'H. Получение отчета о работе маршрутизатора', link: '/guide/wikidf/03-iaas/03-1-stack/03-1-3/03-1-3-2/03-1-3-2-h.md' }, ] }, { text: 'Сети', collapsed: true, items: [ { text: 'Сети - Обзор', link: '/guide/wikidf/03-iaas/03-1-stack/03-1-3/03-1-3-3/03-1-3-3-0-overview.md' }, { text: 'A. Создание изолированных виртуальных сетей', link: '/guide/wikidf/03-iaas/03-1-stack/03-1-3/03-1-3-3/03-1-3-3-a.md' }, { text: 'B. Удаление изолированных виртуальных сетей', link: '/guide/wikidf/03-iaas/03-1-stack/03-1-3/03-1-3-3/03-1-3-3-b.md' }, { text: 'C. Функциональность пула IP-адресов', link: '/guide/wikidf/03-iaas/03-1-stack/03-1-3/03-1-3-3/03-1-3-3-c.md' }, ] }, ] }, ] }, ] }, ] }, ], '/terraform/': [ { text: 'Terraform', items: [ { text: 'BeeCloud провайдер', link: '/terraform/providers/beecloud/index.md', collapsed: true, items: [ { text: 'Облачные вычисления', collapsed: true, items: [ { text: 'Источники данных', items: [ { text: 'beecloud_affinity_groups', link: '/terraform/providers/beecloud/compute/data-sources/beecloud_affinity_groups.md' }, { text: 'beecloud_flavors', link: '/terraform/providers/beecloud/compute/data-sources/beecloud_flavors.md' }, { text: 'beecloud_images', link: '/terraform/providers/beecloud/compute/data-sources/beecloud_images.md' }, { text: 'beecloud_regions', link: '/terraform/providers/beecloud/compute/data-sources/beecloud_regions.md' }, { text: 'beecloud_server', link: '/terraform/providers/beecloud/compute/data-sources/beecloud_server.md' }, { text: 'beecloud_servers', link: '/terraform/providers/beecloud/compute/data-sources/beecloud_servers.md' }, { text: 'beecloud_volume', link: '/terraform/providers/beecloud/compute/data-sources/beecloud_volume.md' }, { text: 'beecloud_volumes', link: '/terraform/providers/beecloud/compute/data-sources/beecloud_volumes.md' }, ], }, { text: 'Ресурсы', items: [ { text: 'beecloud_address_ip', link: '/terraform/providers/beecloud/compute/resources/beecloud_address_ip.md' }, { text: 'beecloud_affinity_group', link: '/terraform/providers/beecloud/compute/resources/beecloud_affinity_group.md' }, { text: 'beecloud_server', link: '/terraform/providers/beecloud/compute/resources/beecloud_server.md' }, { text: 'beecloud_volume_bind', link: '/terraform/providers/beecloud/compute/resources/beecloud_volume_bind.md' }, { text: 'beecloud_volume', link: '/terraform/providers/beecloud/compute/resources/beecloud_volume.md' }, ] }, ] }, { text: 'DNS', collapsed: true, items: [ { text: 'Источники данных', items: [ { text: 'beecloud_dns_records', link: '/terraform/providers/beecloud/dns/data-sources/beecloud_dns_records.md' }, { text: 'beecloud_dns_zones', link: '/terraform/providers/beecloud/dns/data-sources/beecloud_dns_zones.md' }, ], }, { text: 'Ресурсы', items: [ { text: 'beecloud_dns_record', link: '/terraform/providers/beecloud/dns/resources/beecloud_dns_record.md' }, ] }, ] }, ] }, { text: 'Null провайдер', link: '/terraform/providers/null/index.md', collapsed: true, items: [ { text: 'Источники данных', collapsed: true, items: [ { text: 'null_resource', link: '/terraform/providers/null/resources/null_resource.md' }, ], }, { text: 'Ресурсы', collapsed: true, items: [ { text: 'null_data_source', link: '/terraform/providers/null/data-sources/null_data_source.md' }, ] }, ] }, { text: 'Вопросы и ответы', link: '/terraform/faq.md' }, ], }, ], }, } })