Перенос ветки для демо1 из док-ии Vega

This commit is contained in:
Elena Rechkina
2025-03-27 13:43:31 +06:00
parent 5863c6af9d
commit dd15812268
128 changed files with 9520 additions and 89 deletions
+287
View File
@@ -0,0 +1,287 @@
import { defineConfig } from 'vitepress'
import { tabsMarkdownPlugin } from 'vitepress-plugin-tabs'
import { overrideComponents } from './override-components'
const gitlab = `<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<svg
viewBox="0 0 380 380"
version="1.1"
id="svg578"
xmlns="http://www.w3.org/2000/svg"
xmlns:svg="http://www.w3.org/2000/svg">
<defs
id="defs567">
<style
id="style565">.cls-1{fill:#e24329;}.cls-2{fill:#fc6d26;}.cls-3{fill:#fca326;}</style>
</defs>
<path
class="cls-1"
d="m 358.48029,150.34002 -0.48818,-1.24758 -47.26334,-123.347555 a 12.313059,12.313059 0 0 0 -4.86375,-5.858196 12.656595,12.656595 0 0 0 -14.46468,0.777477 12.656595,12.656595 0 0 0 -4.19476,6.364459 l -31.9127,97.636595 H 126.06904 L 94.156344,27.028625 a 12.403463,12.403463 0 0 0 -4.194757,-6.38254 12.656595,12.656595 0 0 0 -14.46468,-0.777477 12.421544,12.421544 0 0 0 -4.863748,5.858196 L 23.279412,149.02012 22.80931,150.2677 a 87.764446,87.764446 0 0 0 29.110169,101.43357 l 0.162727,0.12656 0.433941,0.30738 71.997943,53.91709 35.61928,26.95855 21.69702,16.38125 a 14.591246,14.591246 0 0 0 17.64691,0 l 21.69702,-16.38125 35.61927,-26.95855 72.43189,-54.24255 0.1808,-0.14464 a 87.800608,87.800608 0 0 0 29.07401,-101.32509 z"
id="path569"
style="stroke-width:1.80808" />
<path
class="cls-2"
d="m 358.48029,150.34002 -0.48818,-1.24758 a 159.65391,159.65391 0 0 0 -63.55419,28.56775 l -103.80216,78.48897 c 35.34806,26.74157 66.12167,49.97547 66.12167,49.97547 l 72.43188,-54.24255 0.18081,-0.14465 a 87.800608,87.800608 0 0 0 29.11017,-101.39741 z"
id="path571"
style="stroke-width:1.80808" />
<path
class="cls-3"
d="m 124.51409,306.12463 35.61928,26.95854 21.69702,16.38125 a 14.591246,14.591246 0 0 0 17.64691,0 l 21.69702,-16.38125 35.61927,-26.95854 c 0,0 -30.80977,-23.30622 -66.15783,-49.97547 -35.34806,26.66925 -66.12167,49.97547 -66.12167,49.97547 z"
id="path573"
style="stroke-width:1.80808" />
<path
class="cls-2"
d="M 86.815519,177.66019 A 159.45502,159.45502 0 0 0 23.279412,149.02012 l -0.470102,1.24758 a 87.764446,87.764446 0 0 0 29.110169,101.43357 l 0.162727,0.12656 0.433941,0.30738 71.997943,53.91709 c 0,0 30.73745,-23.23389 66.12167,-49.97547 z"
id="path575"
style="stroke-width:1.80808" />
</svg>
`
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: 'Учебники',
// link: '/tutorials/',
// },
{
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' },
]
},
],
'/tutorials/': [
{
text: 'Виртуальные серверы UNIX',
collapsed: true,
items: [
{ text: 'Управление дисками', link: '/tutorials/servers-unix/unix-disks.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' },
],
},
],
},
}
})