60 lines
1.3 KiB
TypeScript
60 lines
1.3 KiB
TypeScript
|
|
import { defineConfig } from 'vitepress';
|
||
|
|
|
||
|
|
const ruSidebar = [
|
||
|
|
{
|
||
|
|
text: 'Введение',
|
||
|
|
link: '/',
|
||
|
|
},
|
||
|
|
{
|
||
|
|
text: 'Справочник',
|
||
|
|
items: [
|
||
|
|
{ text: 'Слои', link: '/reference/layers' },
|
||
|
|
{ text: 'Модули', link: '/reference/modules' },
|
||
|
|
{ text: 'Сегменты', link: '/reference/segments' },
|
||
|
|
],
|
||
|
|
},
|
||
|
|
|
||
|
|
];
|
||
|
|
|
||
|
|
const enSidebar = [
|
||
|
|
{
|
||
|
|
text: 'Architecture',
|
||
|
|
items: [
|
||
|
|
{ text: 'Overview', link: '/en/architecture/overview' },
|
||
|
|
{ text: 'Terminology', link: '/en/architecture/terminology' },
|
||
|
|
{ text: 'Layers', link: '/en/architecture/layers' },
|
||
|
|
{ text: 'Module', link: '/en/architecture/module' },
|
||
|
|
{ text: 'Edge Cases', link: '/en/architecture/edge-cases' },
|
||
|
|
{ text: 'Rationale', link: '/en/architecture/rationale' },
|
||
|
|
],
|
||
|
|
},
|
||
|
|
];
|
||
|
|
|
||
|
|
export default defineConfig({
|
||
|
|
srcDir: 'docs',
|
||
|
|
title: 'SLM Design',
|
||
|
|
description: 'Правила и стандарты архитектуры проекта',
|
||
|
|
|
||
|
|
rewrites: {
|
||
|
|
'ru/:rest*': ':rest*',
|
||
|
|
},
|
||
|
|
|
||
|
|
locales: {
|
||
|
|
root: {
|
||
|
|
label: 'Русский',
|
||
|
|
lang: 'ru-RU',
|
||
|
|
themeConfig: {
|
||
|
|
sidebar: ruSidebar,
|
||
|
|
},
|
||
|
|
},
|
||
|
|
en: {
|
||
|
|
label: 'English',
|
||
|
|
lang: 'en-US',
|
||
|
|
link: '/en/',
|
||
|
|
themeConfig: {
|
||
|
|
sidebar: enSidebar,
|
||
|
|
},
|
||
|
|
},
|
||
|
|
},
|
||
|
|
});
|