89 lines
2.4 KiB
TypeScript
89 lines
2.4 KiB
TypeScript
import { defineConfig } from 'vitepress'
|
||
|
||
// https://vitepress.dev/reference/site-config
|
||
export default defineConfig({
|
||
title: "Adaptive Video Converter",
|
||
description: "Конвертер видео в адаптивные форматы DASH и HLS с GPU-ускорением",
|
||
base: '/',
|
||
outDir: '../docs-dist',
|
||
lang: 'ru-RU',
|
||
|
||
themeConfig: {
|
||
// https://vitepress.dev/reference/default-theme-config
|
||
|
||
nav: [
|
||
{ text: 'Главная', link: '/' },
|
||
{ text: 'CLI', link: '/cli/' },
|
||
{ text: 'API Библиотеки', link: '/api/' }
|
||
],
|
||
|
||
sidebar: {
|
||
// CLI sidebar
|
||
'/cli/': [
|
||
{
|
||
text: 'CLI Документация',
|
||
items: [
|
||
{ text: 'Обзор', link: '/cli/' },
|
||
{ text: 'Установка', link: '/cli/installation' },
|
||
{ text: 'Использование', link: '/cli/usage' },
|
||
{ text: 'Опции и ключи', link: '/cli/options' },
|
||
{ text: 'Примеры', link: '/cli/examples' }
|
||
]
|
||
}
|
||
],
|
||
|
||
// API sidebar
|
||
'/api/': [
|
||
{
|
||
text: 'API Библиотеки',
|
||
items: [
|
||
{ text: 'Обзор', link: '/api/' },
|
||
{ text: 'convertToDash()', link: '/api/convert' },
|
||
{ text: 'Утилиты', link: '/api/utilities' },
|
||
{ text: 'Профили', link: '/api/profiles' },
|
||
{ text: 'TypeScript типы', link: '/api/types' }
|
||
]
|
||
}
|
||
]
|
||
},
|
||
|
||
socialLinks: [
|
||
{ icon: 'github', link: 'https://gromlab.ru/gromov/adaptive-video-converter' }
|
||
],
|
||
|
||
footer: {
|
||
message: 'Выпущено под лицензией MIT',
|
||
copyright: 'Copyright © 2024 grom13'
|
||
},
|
||
|
||
search: {
|
||
provider: 'local',
|
||
options: {
|
||
locales: {
|
||
root: {
|
||
translations: {
|
||
button: {
|
||
buttonText: 'Поиск',
|
||
buttonAriaLabel: 'Поиск'
|
||
},
|
||
modal: {
|
||
noResultsText: 'Нет результатов для',
|
||
resetButtonTitle: 'Сбросить поиск',
|
||
footer: {
|
||
selectText: 'выбрать',
|
||
navigateText: 'навигация'
|
||
}
|
||
}
|
||
}
|
||
}
|
||
}
|
||
}
|
||
},
|
||
|
||
outline: {
|
||
level: [2, 3],
|
||
label: 'На этой странице'
|
||
}
|
||
}
|
||
})
|