import { defineConfig } from 'vitepress' import { tabsMarkdownPlugin } from 'vitepress-plugin-tabs' import { overrideComponents } from './override-components' import { fileURLToPath, URL } from 'node:url' 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({ srcDir: ".", title: 'Beeline 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(), { find: '@', replacement: fileURLToPath(new URL('./theme', import.meta.url)) }, ], } }, locales: { root: { label: 'Русский', lang: 'ru', } }, themeConfig: { siteTitle: false, notFound: { title: 'Страница не найдена', quote: 'Похоже, вы зашли в тупик. Но не волнуйтесь — всегда можно вернуться на главную.', linkLabel: 'вернуться на главную', linkText: 'Вернуться на главную', code: '404', }, logo: { light: '/img/logo-cloud.svg', dark: '/img/logo-cloud.svg', alt: '', }, 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', collapsed: true, items: [ {text: 'Обзор', link: '/platform/about.md'}, {text: 'Техническая поддержка', link: '/platform/support/support-overview.md'}, ], }, ], '/legal/': [ { text: 'Юридические документы', link: '/legal/index.md' }, ], '/security/': [ { text: 'Сервисы информационной безопасности в Beeline Cloud', link: '/security/index.md', }, { text: 'Cloud Security Awareness (SA)', link: '/security/Cloud-SA/SA-index.md', collapsed: true, items: [ { text: 'Состав сервиса SA', link: '/security/Cloud-SA/compond-index.md', collapsed: true, items: [ { text: 'Обзор сервиса', link: '/security/Cloud-SA/compond-SA/about.md' }, { text: 'Состав сервиса', link: '/security/Cloud-SA/compond-SA/compond-SA.md' }, { text: 'Настройки сервиса по умолчанию', link: '/security/Cloud-SA/compond-SA/default-service.md' }, { text: 'Почтовый ретранслятор (SMTP relay)', link: '/security/Cloud-SA/compond-SA/mail-relay.md' }, { text: 'Мониторинг работоспособности платформы', link: '/security/Cloud-SA/compond-SA/monitoring.md' }, { text: 'Модули платформы', link: '/security/Cloud-SA/compond-SA/platform-modules.md' }, { text: 'Ограничения платформы', link: '/security/Cloud-SA/compond-SA/restrictions.md' }, { text: 'Отказоустойчивость сервиса', link: '/security/Cloud-SA/compond-SA/stability.md' }, { text: 'Шаблоны почтовых сообщений и веб-форм', link: '/security/Cloud-SA/compond-SA/templates.md' }, { text: 'Дополнительные работы ', link: '/security/Cloud-SA/compond-SA/work.md' }, ] }, { text: 'Качественные характеристики сервиса', link: '/security/Cloud-SA/characteristics.md' }, { text: 'Инструкции для начала работы с сревисом', link: '/security/Cloud-SA/instructions.md' }, { text: 'Порядок платежей', link: '/security/Cloud-SA/payment-procedure.md' }, { text: 'Сроки и условия предоставления сервиса', link: '/security/Cloud-SA/provision.md' }, ] }, { text: 'Cloud Vulnerability Scanner (VS)', link: '/security/Cloud-VS/VS-index.md', collapsed: true, items: [ { text: 'Обзор сервиса VS', link: '/security/Cloud-VS/about.md'}, { text: 'Варианты предоставления сервиса', link: '/security/Cloud-VS/provision-service.md' }, { text: 'Мониторинг работоспособности и отказоустойчивость сервиса', link: '/security/Cloud-VS/monitoring.md' }, { text: 'Состав работ', link: '/security/Cloud-VS/scope-work.md' }, { text: 'Дополнительные работы', link: '/security/Cloud-VS/work.md' }, { text: 'Зоны ответсвенности', link: '/security/Cloud-VS/areas-responsibility.md' }, { text: 'Качественные характеристики сервиса', link: '/security/Cloud-VS/characteristics.md' }, { text: 'Сроки предоставления сервиса', link: '/security/Cloud-VS/provision.md' }, { text: 'Порядок платежей', link: '/security/Cloud-VS/payment-procedure.md' }, ] }, { text: 'Cloud Mobile Device Management (MDM)', link: '/security/Cloud-MDM/MDM-index.md', collapsed: true, items: [ { text: 'Обзор сервиса', link: '/security/Cloud-MDM/about.md' }, { text: 'Описание сервиса MDM', link: '/security/Cloud-MDM/discription-index.md', collapsed: true, items: [ { text: 'Состав сервиса', link: '/security/Cloud-MDM/description/compound.md' }, { text: 'Архитектура сервиса', link: '/security/Cloud-MDM/description/architecture.md' }, { text: 'Зоны ответственности', link: '/security/Cloud-MDM/description/areas-responsibility.md' }, { text: 'Мониторинг работоспособности и отказоустойчивость сервиса', link: '/security/Cloud-MDM/description/monitoring.md' }, { text: 'Дополнительные работы', link: '/security/Cloud-MDM/description/work.md' }, ] }, { text: 'Качественные характеристики сервиса', link: '/security/Cloud-MDM/characteristics.md' }, { text: 'Сроки и условия предоставления сервиса', link: '/security/Cloud-MDM/provision.md' }, { text: 'Порядок платежей', link: '/security/Cloud-MDM/payments.md' }, { text: 'Инструкиця', link: '/security/Cloud-MDM/instructions-index.md', collapsed: true, items: [ { text: 'Инструкция', link: '/security/Cloud-MDM/instructions/instructions.md' }, { text: 'Активация учетной записи', link: '/security/Cloud-MDM/instructions/activation.md' }, { text: 'Режим Device Owner', link: '/security/Cloud-MDM/instructions/device-owner.md' }, ] }, ], }, { text: 'Cloud NGFW', link: '/security/Cloud-NGFW/NGFW-index.md', collapsed: true, items: [ {text: 'Обзор сервиса', link: '/PaaS/PostgreSQL/about.md'}, {text: 'Описание технических параметров', link: '/PaaS/PostgreSQL/cluster-parameter.md'}, {text: 'Общая схема подключения', link: '/PaaS/PostgreSQL/connection.md'}, {text: 'Возможности пользователя', link: '/PaaS/PostgreSQL/user-capabilities.md'}, {text: 'Веб-интерфейс pgAdmin', link: '/PaaS/PostgreSQL/pgadmin.md'}, {text: 'Веб-интерфейс Grafana', link: '/PaaS/PostgreSQL/grafana.md'}, ], }, {text: 'Параметры конфигурации IPSEC', link: '/PaaS/IPSEC.md'}, ], '/Apache-Kafka/': [ { text: 'Apache-Kafka', link: '/Apache-Kafka/Kafka-index.md', collapsed: true, items: [ {text: 'Обзор сервиса', link: '/Apache-Kafka/about-service.md'}, {text: 'Работа с кластером Kafka по тарифу Base', link: '/Apache-Kafka/base-tier-connection.md'}, {text: 'Настройка топика по тарифу Base', link: '/Apache-Kafka/base-tier-topics-guide.md'}, {text: 'Конфигурация кластера', link: '/Apache-Kafka/cluster-configuretion.md'}, {text: 'Работа с кластером Kafka по тарифу Full', link: '/Apache-Kafka/full-tier-connection.md'}, ], } ], // '/billing/': [ // ], '/backups/': [ { text: 'Резервное копирование', link: '/backups/index.md', }, { text: 'Обзор сервиса', link: '/backups/backups-overview.md', collapsed: true, items: [ {text: 'О сервисе', link: '/backups/about.md'}, {text: 'Квоты и лимиты', link: '/backups/backup-quatos.md'}, ] }, { text: 'Cloud NGFW F', link: '/security/Cloud-NGFW-F/NGFW-F-index.md', collapsed: true, items: [ { text: 'Обзор сервиса', link: '/security/Cloud-NGFW-F/about.md'}, { text: 'Порядок подключения сервиса', link: '/security/Cloud-NGFW-F/connection.md' }, { text: 'Варианты предоставления', link: '/security/Cloud-NGFW-F/delivery-options.md' }, { text: 'Состав сервиса', link: '/security/Cloud-NGFW-F/compound.md' }, { text: 'Функциональные возможности', link: '/security/Cloud-NGFW-F/functional-capabilities.md' }, { text: 'Порядок платежей', link: '/security/Cloud-NGFW-F/payment.md' }, { text: 'Тестирование сервиса', link: '/security/Cloud-NGFW-F/testing.md' }, ] }, { text: 'Cloud NGFW Pro', link: '/security/Cloud-NGFW-Pro/NGFW-Pro-index.md', collapsed: true, items: [ { text: 'Обзор сервиса', link: '/security/Cloud-NGFW-Pro/about.md'}, { text: 'Основные возможности', link: '/security/Cloud-NGFW-Pro/possibilities.md' }, { text: 'Спецификация сервиса', link: '/security/Cloud-NGFW-Pro/specification.md' }, { text: 'Состав сервиса', link: '/security/Cloud-NGFW-Pro/compound.md' }, { text: 'Сроки и условия предоставления сервиса', link: '/security/Cloud-NGFW-Pro/provision.md' }, { text: 'Демодоступ к сервису', link: '/security/Cloud-NGFW-Pro/demo-access.md' }, { text: 'Порядок платежей', link: '/security/Cloud-NGFW-Pro/payment.md' }, ] }, ], '/PaaS/': [ { text: 'PostgreSQL', link: '/PaaS/PostgreSQL/PostgreSQL-index.md' }, { text: 'Обзор сервиса', link: '/PaaS/PostgreSQL/about.md' }, { text: 'Параметры кластера', link: '/PaaS/PostgreSQL/cluster-parameter.md' }, { text: 'Подключение', link: '/PaaS/PostgreSQL/connection.md' }, { text: 'Grafana', link: '/PaaS/PostgreSQL/grafana.md' }, { text: 'pgAdmin', link: '/PaaS/PostgreSQL/pgadmin.md' }, { text: 'Возможности пользователя', link: '/PaaS/PostgreSQL/user-capabilities.md' }, ], '/finance/': [ { text: 'Финансы', link: '/finance/about.md' }, { text: 'Счета', wip: true }, { text: 'Анализ затрат', link: '/finance/cost-analysis.md' }, { text: 'Бюджеты', wip: true }, { text: 'Прогнозирование', wip: true }, { text: 'Рекомендации', wip: true }, { text: 'Управление тегами', wip: true }, ], '/vdc/': [ { text: 'Виртуальные дата-центры на VMware', link: '/vdc/index.md', }, { text: 'Обзор сервиса', link: '/vdc/vdc-overview.md', collapsed: true, items: [ { text: 'О сервисе', link: '/vdc/vdc-about.md' }, { text: 'Техническое описание', link: '/vdc/vdc-tech.md' }, ] }, { text: 'Подключиться к виртуальному дата-центру', link: '/vdc/vdc-getting-started.md' }, { text: 'Виртуальные машины', link: '/vdc/vdc-how-to/vm/vm-index.md', collapsed: true, items: [ {text: 'Создание ВМ', link: '/vdc/vdc-how-to/vm/create-vm.md'}, {text: 'Создание vApp', link: '/vdc/vdc-how-to/vm/create-vapp.md'}, {text: 'Управление состоянием ВМ', link: '/vdc/vdc-how-to/vm/manage-vm.md'}, {text: 'Клонирование ВМ', link: '/vdc/vdc-how-to/vm/clone-vm.md'}, {text: 'Изменение конфигурации ВМ', link: '/vdc/vdc-how-to/vm/edit-vm.md'}, {text: 'Удаление ВМ', link: '/vdc/vdc-how-to/vm/delete-vm.md'}, {text: 'Группы размещения', link: '/vdc/vdc-how-to/vm/create-affinity-rules.md'}, {text: 'Снимки ВМ', link: '/vdc/vdc-how-to/vm/create-snapshot.md'}, {text: 'VMware Tools', link: '/vdc/vdc-how-to/vm/vmware-tools.md'}, ], }, { text: 'Диски', collapsed: true, items: [ {text: 'Обзор', link: '/vdc/vdc-how-to/disks/about.md'}, {text: 'Создание диска', link: '/vdc/vdc-how-to/disks/create-disk.md'}, {text: 'Проверка состояния диска', link: '/vdc/vdc-how-to/disks/view-disk.md'}, {text: 'Подключение выделенного диска к ВМ', link: '/vdc/vdc-how-to/disks/attach-disk.md'}, {text: 'Изменение политики хранения дисков ВМ', link: '/vdc/vdc-how-to/disks/change-storage-policy-of-vm.md'}, {text: 'Редактирование параметров диска', link: '/vdc/vdc-how-to/disks/edit-disk.md'}, {text: 'Удаление диска', link: '/vdc/vdc-how-to/disks/delete-disk.md'}, ], }, { text: 'Сети', link: '/vdc/vdc-how-to/networks/networks-index.md', collapsed: true, items: [ {text: 'Обзор', link: '/vdc/vdc-how-to/networks/about.md'}, {text: 'Настройка доступа к ВМ из интернета', link: '/vdc/vdc-how-to/networks/allow-external-connections-to-vm.md'}, {text: 'Подключение ВМ в vApp к сети', link: '/vdc/vdc-how-to/networks/connect-vapp-to-network.md'}, {text: 'Подключение ВМ к интернету', link: '/vdc/vdc-how-to/networks/connect-vm-to-network.md'}, {text: 'Создание сети в организации и подключение к Edge Gateway', link: '/vdc/vdc-how-to/networks/create-network.md'}, {text: 'Подключение сети к Edge Gateway', link: '/vdc/vdc-how-to/networks/connect-to-edge-gateway.md'}, {text: 'Создание Pre-Shared Key', link: '/vdc/vdc-how-to/networks/create-psk.md'}, {text: 'Настройка site-to-site подключения с помощью IPSec', link: '/vdc/vdc-how-to/networks/how-to-setup-ipsec-vpn.md', collapsed: true, items: [ {text: 'Настройка IPSec VPN', link: '/vdc/vdc-how-to/networks/ipsec/setup-ipsec-vpn.md'}, {text: 'Настройка ASAv для IPsec VPN', link: '/vdc/vdc-how-to/networks/ipsec/asav.md'}, {text: 'Настройка CSR 1000v для IPsec VPN', link: '/vdc/vdc-how-to/networks/ipsec/csr1000v.md'}, {text: 'Настройка Fortigate для IPsec VPN', link: '/vdc/vdc-how-to/networks/ipsec/fortigate.md'}, {text: 'Проверить сетевую связанность', link: '/vdc/vdc-how-to/networks/ipsec/check-vpn-status.md'}, ], }, ], }, { text: 'Пользователи и роли', link: '/vdc/vdc-how-to/users/users-index.md', collapsed: true, items: [ {text: 'Ролевая модель', link: '/vdc/vdc-how-to/users/roles.md'}, {text: 'Создание пользователя', link: '/vdc/vdc-how-to/users/add-user.md'}, {text: 'Изменение пароля пользователя', link: '/vdc/vdc-how-to/users/change-users-password.md'}, {text: 'Настройка квот', link: '/vdc/vdc-how-to/users/quotas.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' }, '/monitoring/': [ { text: 'Мониторинг', link: '/monitoring/about.md', }, ], }, }, } )