Files
slm-design/.vitepress/config.ts
S.Gromov 5874d3604c
All checks were successful
CI/CD Pipeline / build (push) Successful in 20s
CI/CD Pipeline / version (push) Successful in 5s
CI/CD Pipeline / docker (push) Successful in 1m15s
CI/CD Pipeline / deploy (push) Successful in 7s
docs: добавить примеры React
- добавлен раздел примеров React в сайдбар
- добавлены примеры создания и композиции фабрик
- перенесены подробные React-примеры из раздела модулей
- обновлены сгенерированные артефакты документации
2026-05-11 20:56:41 +03:00

46 lines
1.5 KiB
TypeScript

import { defineConfig } from 'vitepress';
const sidebar = [
{
text: 'Архитектура',
items: [
{ text: 'Обзор', link: '/architecture/' },
{ text: 'Слои', link: '/architecture/layers' },
{ text: 'Модули', link: '/architecture/modules' },
{ text: 'Сегменты', link: '/architecture/segments' },
{ text: 'Монорепозитории', link: '/architecture/monorepo' },
],
},
{
text: 'Примеры React',
items: [
{ text: 'Создание фабрики', link: '/examples/react/factory' },
{ text: 'Композиция фабрик', link: '/examples/react/factory-composition' },
{ text: 'Композиция через Provider', link: '/examples/react/composition-provider' },
],
},
];
export default defineConfig({
srcDir: 'docs',
srcExclude: ['public/**'],
outDir: 'public/docs',
title: 'SLM Design',
description: 'Правила и стандарты архитектуры проекта',
base: '/docs/',
cleanUrls: true,
head: [
['meta', { name: 'llms', content: '/llms.txt' }],
['link', { rel: 'alternate llms', type: 'text/plain', href: '/llms.txt', title: 'llms.txt' }],
['link', { rel: 'alternate', type: 'text/plain', href: '/llms-full.txt', title: 'llms-full.txt' }],
['link', { rel: 'alternate', type: 'text/markdown', href: '/ARCHITECTURE.md', title: 'ARCHITECTURE.md' }],
],
themeConfig: {
sidebar,
socialLinks: [
{ icon: 'github', link: 'https://gromlab.ru/gromov/slm-design' },
],
},
});