diff --git a/.vitepress/config.mts b/.vitepress/config.mts index 7eefe0f..6158960 100644 --- a/.vitepress/config.mts +++ b/.vitepress/config.mts @@ -5,6 +5,7 @@ import fs from 'fs'; import path from 'path'; const bslLanguage = JSON.parse(fs.readFileSync('docs/bsl.json', 'utf8')) +const contentRoot = 'docs/'; // https://vitepress.dev/reference/site-config export default defineConfig({ @@ -63,27 +64,39 @@ export default defineConfig({ nav: [ { text: 'Главная', link: '/' }, - { text: 'Документация', link: '/getting-started/about-autumn' }, - { text: 'API', link: '/api/Autumn' }, // TODO: посмотреть, где красиво был сделан index.md (какая-то из либ), генератор MD в плагине генерирует лишний уровень # в заголовках + { + text: 'Документация', + items: [ + { text: 'autumn', link: '/getting-started/about-autumn' }, + { text: 'winow', link: '/winow/' }, + ] + }, + { text: 'API', link: '/api/autumn' }, ], sidebar: { "/": getSidebar({ - contentRoot: 'docs/', + contentRoot, contentDirs: [ { text: 'Начало работы', dir: 'getting-started' }, { text: 'Использование фреймворка', dir: 'framework-elements' }, - { text: 'Winow', dir: 'winow' } ], collapsed: false, }), "/api/": getSidebar({ - contentRoot: 'docs/', + contentRoot, contentDirs: [ - { text: 'Autumn', dir: 'api/Autumn' } + { text: 'autumn', dir: 'api/autumn' } ], collapsed: false, - }) + }), + "/winow/": getSidebar({ + contentRoot, + contentDirs: [ + // { text: 'winow', dir: 'winow' } + ], + collapsed: false, + }), }, socialLinks: [ diff --git a/docs/api/Autumn/index.md b/docs/api/autumn/index.md similarity index 100% rename from docs/api/Autumn/index.md rename to docs/api/autumn/index.md diff --git "a/docs/api/autumn/\320\220\320\275\320\275\320\276\321\202\320\260\321\206\320\270\320\270/\320\235\320\260\320\277\320\270\320\273\321\214\320\275\320\270\320\272.md" "b/docs/api/autumn/\320\220\320\275\320\275\320\276\321\202\320\260\321\206\320\270\320\270/\320\235\320\260\320\277\320\270\320\273\321\214\320\275\320\270\320\272.md" new file mode 100644 index 0000000..19f2a21 --- /dev/null +++ "b/docs/api/autumn/\320\220\320\275\320\275\320\276\321\202\320\260\321\206\320\270\320\270/\320\235\320\260\320\277\320\270\320\273\321\214\320\275\320\270\320\272.md" @@ -0,0 +1,17 @@ +# Напильник + +## ПриСозданииОбъекта + +```bsl +&Аннотация("Напильник") +&Прозвище("Напильник") +Процедура ПриСозданииОбъекта(Повторяемый = ПрименяетсяТолькоНа = Неопределено) +``` + +## МожетПрименятьсяНа + +```bsl + +Функция МожетПрименятьсяНа(ОпределениеЖелудя) Экспорт +``` + diff --git "a/docs/api/Autumn/\320\232\320\273\320\260\321\201\321\201\321\213/10-\320\237\320\276\320\264\320\265\320\273\320\272\320\260.md" "b/docs/api/autumn/\320\232\320\273\320\260\321\201\321\201\321\213/10-\320\237\320\276\320\264\320\265\320\273\320\272\320\260.md" similarity index 100% rename from "docs/api/Autumn/\320\232\320\273\320\260\321\201\321\201\321\213/10-\320\237\320\276\320\264\320\265\320\273\320\272\320\260.md" rename to "docs/api/autumn/\320\232\320\273\320\260\321\201\321\201\321\213/10-\320\237\320\276\320\264\320\265\320\273\320\272\320\260.md" diff --git "a/docs/api/Autumn/\320\232\320\273\320\260\321\201\321\201\321\213/20-\320\241\320\276\320\262\320\265\321\202\320\224\321\200\321\203\320\263\320\276\320\263\320\276\320\234\320\260\321\201\321\202\320\265\321\200\320\260.md" "b/docs/api/autumn/\320\232\320\273\320\260\321\201\321\201\321\213/20-\320\241\320\276\320\262\320\265\321\202\320\224\321\200\321\203\320\263\320\276\320\263\320\276\320\234\320\260\321\201\321\202\320\265\321\200\320\260.md" similarity index 100% rename from "docs/api/Autumn/\320\232\320\273\320\260\321\201\321\201\321\213/20-\320\241\320\276\320\262\320\265\321\202\320\224\321\200\321\203\320\263\320\276\320\263\320\276\320\234\320\260\321\201\321\202\320\265\321\200\320\260.md" rename to "docs/api/autumn/\320\232\320\273\320\260\321\201\321\201\321\213/20-\320\241\320\276\320\262\320\265\321\202\320\224\321\200\321\203\320\263\320\276\320\263\320\276\320\234\320\260\321\201\321\202\320\265\321\200\320\260.md" diff --git "a/docs/api/Autumn/\320\232\320\273\320\260\321\201\321\201\321\213/30-\320\227\320\260\320\262\321\217\320\267\321\214.md" "b/docs/api/autumn/\320\232\320\273\320\260\321\201\321\201\321\213/30-\320\227\320\260\320\262\321\217\320\267\321\214.md" similarity index 100% rename from "docs/api/Autumn/\320\232\320\273\320\260\321\201\321\201\321\213/30-\320\227\320\260\320\262\321\217\320\267\321\214.md" rename to "docs/api/autumn/\320\232\320\273\320\260\321\201\321\201\321\213/30-\320\227\320\260\320\262\321\217\320\267\321\214.md" diff --git "a/docs/api/Autumn/\320\232\320\273\320\260\321\201\321\201\321\213/40-\320\242\320\260\320\261\320\260\320\272\320\265\321\200\320\272\320\260.md" "b/docs/api/autumn/\320\232\320\273\320\260\321\201\321\201\321\213/40-\320\242\320\260\320\261\320\260\320\272\320\265\321\200\320\272\320\260.md" similarity index 100% rename from "docs/api/Autumn/\320\232\320\273\320\260\321\201\321\201\321\213/40-\320\242\320\260\320\261\320\260\320\272\320\265\321\200\320\272\320\260.md" rename to "docs/api/autumn/\320\232\320\273\320\260\321\201\321\201\321\213/40-\320\242\320\260\320\261\320\260\320\272\320\265\321\200\320\272\320\260.md" diff --git "a/docs/api/Autumn/\320\232\320\273\320\260\321\201\321\201\321\213/50-\320\236\320\277\321\200\320\265\320\264\320\265\320\273\320\265\320\275\320\270\320\265\320\226\320\265\320\273\321\203\320\264\321\217.md" "b/docs/api/autumn/\320\232\320\273\320\260\321\201\321\201\321\213/50-\320\236\320\277\321\200\320\265\320\264\320\265\320\273\320\265\320\275\320\270\320\265\320\226\320\265\320\273\321\203\320\264\321\217.md" similarity index 100% rename from "docs/api/Autumn/\320\232\320\273\320\260\321\201\321\201\321\213/50-\320\236\320\277\321\200\320\265\320\264\320\265\320\273\320\265\320\275\320\270\320\265\320\226\320\265\320\273\321\203\320\264\321\217.md" rename to "docs/api/autumn/\320\232\320\273\320\260\321\201\321\201\321\213/50-\320\236\320\277\321\200\320\265\320\264\320\265\320\273\320\265\320\275\320\270\320\265\320\226\320\265\320\273\321\203\320\264\321\217.md" diff --git "a/docs/api/Autumn/\320\232\320\273\320\260\321\201\321\201\321\213/60-\320\237\321\200\320\270\320\273\320\265\320\277\320\273\321\217\320\265\320\274\320\260\321\217\320\247\320\260\321\201\321\202\320\270\321\206\320\260.md" "b/docs/api/autumn/\320\232\320\273\320\260\321\201\321\201\321\213/60-\320\237\321\200\320\270\320\273\320\265\320\277\320\273\321\217\320\265\320\274\320\260\321\217\320\247\320\260\321\201\321\202\320\270\321\206\320\260.md" similarity index 100% rename from "docs/api/Autumn/\320\232\320\273\320\260\321\201\321\201\321\213/60-\320\237\321\200\320\270\320\273\320\265\320\277\320\273\321\217\320\265\320\274\320\260\321\217\320\247\320\260\321\201\321\202\320\270\321\206\320\260.md" rename to "docs/api/autumn/\320\232\320\273\320\260\321\201\321\201\321\213/60-\320\237\321\200\320\270\320\273\320\265\320\277\320\273\321\217\320\265\320\274\320\260\321\217\320\247\320\260\321\201\321\202\320\270\321\206\320\260.md" diff --git "a/docs/api/Autumn/\320\237\320\265\321\200\320\265\321\207\320\270\321\201\320\273\320\265\320\275\320\270\321\217/10-\320\242\320\270\320\277\321\213\320\237\321\200\320\270\320\273\320\265\320\277\320\273\321\217\320\265\320\274\321\213\321\205\320\247\320\260\321\201\321\202\320\270\321\206.md" "b/docs/api/autumn/\320\237\320\265\321\200\320\265\321\207\320\270\321\201\320\273\320\265\320\275\320\270\321\217/10-\320\242\320\270\320\277\321\213\320\237\321\200\320\270\320\273\320\265\320\277\320\273\321\217\320\265\320\274\321\213\321\205\320\247\320\260\321\201\321\202\320\270\321\206.md" similarity index 100% rename from "docs/api/Autumn/\320\237\320\265\321\200\320\265\321\207\320\270\321\201\320\273\320\265\320\275\320\270\321\217/10-\320\242\320\270\320\277\321\213\320\237\321\200\320\270\320\273\320\265\320\277\320\273\321\217\320\265\320\274\321\213\321\205\320\247\320\260\321\201\321\202\320\270\321\206.md" rename to "docs/api/autumn/\320\237\320\265\321\200\320\265\321\207\320\270\321\201\320\273\320\265\320\275\320\270\321\217/10-\320\242\320\270\320\277\321\213\320\237\321\200\320\270\320\273\320\265\320\277\320\273\321\217\320\265\320\274\321\213\321\205\320\247\320\260\321\201\321\202\320\270\321\206.md" diff --git "a/docs/api/Autumn/\320\237\320\265\321\200\320\265\321\207\320\270\321\201\320\273\320\265\320\275\320\270\321\217/20-\320\245\320\260\321\200\320\260\320\272\321\202\320\265\321\200\321\213\320\226\320\265\320\273\321\203\320\264\320\265\320\271.md" "b/docs/api/autumn/\320\237\320\265\321\200\320\265\321\207\320\270\321\201\320\273\320\265\320\275\320\270\321\217/20-\320\245\320\260\321\200\320\260\320\272\321\202\320\265\321\200\321\213\320\226\320\265\320\273\321\203\320\264\320\265\320\271.md" similarity index 100% rename from "docs/api/Autumn/\320\237\320\265\321\200\320\265\321\207\320\270\321\201\320\273\320\265\320\275\320\270\321\217/20-\320\245\320\260\321\200\320\260\320\272\321\202\320\265\321\200\321\213\320\226\320\265\320\273\321\203\320\264\320\265\320\271.md" rename to "docs/api/autumn/\320\237\320\265\321\200\320\265\321\207\320\270\321\201\320\273\320\265\320\275\320\270\321\217/20-\320\245\320\260\321\200\320\260\320\272\321\202\320\265\321\200\321\213\320\226\320\265\320\273\321\203\320\264\320\265\320\271.md"