// @ts-check
import { defineConfig } from 'astro/config';
import starlight from '@astrojs/starlight';

// https://astro.build/config
export default defineConfig({
	base: '/',
	integrations: [
		starlight({
			title: 'Шаблоны кода 1С',
			customCss: [
        		// Relative path to your custom CSS file
      	  		'./src/styles/custom.css',
     		 ],
			social: [{ icon: 'github', label: 'GitHub', href: 'https://git.sinenikolsky.ru/wakadakawaka/kb-personal.git' }],
			sidebar: [
				//{
				//	label: 'База знаний',
				//	// Autogenerate a group of links for the 'constellations' directory.
				//	collapsed: true,
				//	autogenerate: { directory: 'knowledge-base' },
				 // },
				  {
					label: 'Общие',
					// Autogenerate a group of links for the 'constellations' directory.
					collapsed: true,
					autogenerate: { directory: 'knowledge-base/Общие' },
				  },
				  {
					label: 'Типовые',
					// Autogenerate a group of links for the 'constellations' directory.
					collapsed: true,
					autogenerate: { directory: 'knowledge-base/Типовые' },
				  },
				  {
					label: 'Администрирование',
					// Autogenerate a group of links for the 'constellations' directory.
					collapsed: true,
					autogenerate: { directory: 'knowledge-base/Администрирование' },
				  },
				  {
					label: 'Прочее',
					// Autogenerate a group of links for the 'constellations' directory.
					collapsed: true,
					autogenerate: { directory: 'knowledge-base/Прочее' },
				  },
			],
		}),
	],
});
