fix-index

This commit is contained in:
Rusovich Violetta
2025-12-25 16:16:46 +03:00
parent 7fd1755a7d
commit abdc7bd70e
6 changed files with 38 additions and 17 deletions
+4 -1
View File
@@ -3,6 +3,7 @@ import { tabsMarkdownPlugin } from 'vitepress-plugin-tabs'
import { overrideComponents } from './override-components'
import { autoSectionLinksPlugin } from './plugins/auto-section-links'
import { resolve } from 'path'
import { SidebarItem } from './plugins/utils/types'
const gitlab = `<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<svg
@@ -41,6 +42,7 @@ const gitlab = `<?xml version="1.0" encoding="UTF-8" standalone="no"?>
const new_version = process.env?.VITE_NEW_VERSION;
console.log({ base: typeof new_version !== 'undefined' ? '/' : '/docs/' })
const sidebarConfig = {
'/platform/': [
{
@@ -181,7 +183,7 @@ const sidebarConfig = {
{ text: 'Квоты и лимиты', link: '/compute/compute-quatos.md' },
]
},
{text: 'Быстрый старт', link: '/compute/compute-getting-started.md'},
{text: 'Быстрый старт', link: '/compute/compute-getting-started.md', excludeFromIndex: true },
{ text: 'Виртуальные машины', link: '/compute/compute-how-to/compute-index.md',
collapsed: true,
items: [
@@ -207,6 +209,7 @@ const sidebarConfig = {
{ text: 'Настройка site-to-site VPN с помощью VyOS', link: '/compute/compute-how-to/compute-network/compute-vpn-vyos.md' },
{ text: 'Подключение ВМ закрытого контура к интернету', link: '/compute/compute-how-to/compute-network/compute-network-inside.md' },
],
excludeFromIndex: true,
},
],
'/admin/': [