Skip to content

Commit 39744f5

Browse files
committed
Перенос документации по winos в отдельный раздел
1 parent c7a97e1 commit 39744f5

11 files changed

+37
-7
lines changed

.vitepress/config.mts

Lines changed: 20 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ import fs from 'fs';
55
import path from 'path';
66

77
const bslLanguage = JSON.parse(fs.readFileSync('docs/bsl.json', 'utf8'))
8+
const contentRoot = 'docs/';
89

910
// https://vitepress.dev/reference/site-config
1011
export default defineConfig({
@@ -63,27 +64,39 @@ export default defineConfig({
6364

6465
nav: [
6566
{ text: 'Главная', link: '/' },
66-
{ text: 'Документация', link: '/getting-started/about-autumn' },
67-
{ text: 'API', link: '/api/Autumn' }, // TODO: посмотреть, где красиво был сделан index.md (какая-то из либ), генератор MD в плагине генерирует лишний уровень # в заголовках
67+
{
68+
text: 'Документация',
69+
items: [
70+
{ text: 'autumn', link: '/getting-started/about-autumn' },
71+
{ text: 'winow', link: '/winow/' },
72+
]
73+
},
74+
{ text: 'API', link: '/api/autumn' },
6875
],
6976

7077
sidebar: {
7178
"/": getSidebar({
72-
contentRoot: 'docs/',
79+
contentRoot,
7380
contentDirs: [
7481
{ text: 'Начало работы', dir: 'getting-started' },
7582
{ text: 'Использование фреймворка', dir: 'framework-elements' },
76-
{ text: 'Winow', dir: 'winow' }
7783
],
7884
collapsed: false,
7985
}),
8086
"/api/": getSidebar({
81-
contentRoot: 'docs/',
87+
contentRoot,
8288
contentDirs: [
83-
{ text: 'Autumn', dir: 'api/Autumn' }
89+
{ text: 'autumn', dir: 'api/autumn' }
8490
],
8591
collapsed: false,
86-
})
92+
}),
93+
"/winow/": getSidebar({
94+
contentRoot,
95+
contentDirs: [
96+
// { text: 'winow', dir: 'winow' }
97+
],
98+
collapsed: false,
99+
}),
87100
},
88101

89102
socialLinks: [
File renamed without changes.
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
# Напильник
2+
3+
## ПриСозданииОбъекта
4+
5+
```bsl
6+
&Аннотация("Напильник")
7+
&Прозвище("Напильник")
8+
Процедура ПриСозданииОбъекта(Повторяемый = ПрименяетсяТолькоНа = Неопределено)
9+
```
10+
11+
## МожетПрименятьсяНа
12+
13+
```bsl
14+
15+
Функция МожетПрименятьсяНа(ОпределениеЖелудя) Экспорт
16+
```
17+
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)