From 9988b45be02ba14f3920ea9deaca119629634ddd Mon Sep 17 00:00:00 2001 From: sfaqer Date: Thu, 31 Oct 2024 12:05:48 +1000 Subject: [PATCH] =?UTF-8?q?=D0=A1=D0=B0=D0=B9=D0=B4=D0=B1=D0=B0=D1=80=20?= =?UTF-8?q?=D1=81=D0=B4=D0=B5=D0=BB=D0=B0=D0=BD=20=D1=80=D0=B0=D0=B7=D0=BB?= =?UTF-8?q?=D0=B8=D1=87=D0=BD=D1=8B=D0=BC=20=D0=B4=D0=BB=D1=8F=20=D1=80?= =?UTF-8?q?=D0=B0=D0=B7=D0=BB=D0=B8=D1=87=D0=BD=D1=8B=D1=85=20=D1=80=D0=B0?= =?UTF-8?q?=D0=B7=D0=B4=D0=B5=D0=BB=D0=BE=D0=B2=20=D0=B4=D0=BE=D0=BA=D1=83?= =?UTF-8?q?=D0=BC=D0=B5=D0=BD=D1=82=D0=B0=D1=86=D0=B8=D0=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .vitepress/config.mts | 25 +++++++++++++++++-------- 1 file changed, 17 insertions(+), 8 deletions(-) diff --git a/.vitepress/config.mts b/.vitepress/config.mts index 7194c98..ba65e47 100644 --- a/.vitepress/config.mts +++ b/.vitepress/config.mts @@ -48,14 +48,23 @@ export default defineConfig({ { text: 'API', link: '/api/' }, // TODO: посмотреть, где красиво был сделан index.md (какая-то из либ), генератор MD в плагине генерирует лишний уровень # в заголовках ], - sidebar: getSidebar({ - contentRoot: 'docs/', - contentDirs: [ - { text: 'Начало работы', dir: 'getting-started' }, - { text: 'Использование фреймворка', dir: 'framework-elements' }, - ], - collapsed: false, - }), + sidebar: { + "/": getSidebar({ + contentRoot: 'docs/', + contentDirs: [ + { text: 'Начало работы', dir: 'getting-started' }, + { text: 'Использование фреймворка', dir: 'framework-elements' }, + ], + collapsed: false, + }), + "/api/": getSidebar({ + contentRoot: 'docs/', + contentDirs: [ + { text: 'API', dir: 'api' }, + ], + collapsed: false, + }) + }, editLink: { pattern: 'https://github.com/autumn-library/docs/edit/master/docs/:path'