mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-10-21 02:37:05 +02:00
39 lines
1007 B
TypeScript
39 lines
1007 B
TypeScript
import { compareVersions } from 'compare-versions';
|
|
import { readdirSync } from 'fs';
|
|
import { parse } from 'path';
|
|
import { defineConfig } from 'vitepress';
|
|
import { getSidebar } from 'vitepress-plugin-auto-sidebar';
|
|
|
|
export default defineConfig({
|
|
title: 'blitzkrieg',
|
|
description: '🎉 All-in-one Discord bot for everything World of Tanks Blitz',
|
|
base: '/blitzkrieg/',
|
|
|
|
themeConfig: {
|
|
nav: [
|
|
{ text: 'Home', link: '/' },
|
|
{ text: 'Guide', link: '/guide/about' },
|
|
],
|
|
|
|
sidebar: [
|
|
...getSidebar({
|
|
collapsed: false,
|
|
contentDirs: ['guide', 'legal'],
|
|
contentRoot: '/docs/',
|
|
}),
|
|
|
|
{
|
|
text: 'Changelogs',
|
|
items: readdirSync('./docs/changelogs')
|
|
.map((file) => parse(file).name)
|
|
.sort(compareVersions)
|
|
.map((name) => ({ text: name, link: `/changelogs/${name}.html` })),
|
|
},
|
|
],
|
|
|
|
socialLinks: [
|
|
{ icon: 'github', link: 'https://github.com/tresabhi/blitzkrieg' },
|
|
],
|
|
},
|
|
});
|