-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.mts
38 lines (36 loc) · 1.09 KB
/
config.mts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
import { defineConfig } from "vitepress";
import VitepressPluginNestedSidebar from "vitepress-plugin-nested-sidebar";
const { generateSidebar } = VitepressPluginNestedSidebar();
// https://vitepress.dev/reference/site-config
export default defineConfig({
title: "My Awesome Project",
description: "A VitePress Site",
cleanUrls: true,
themeConfig: {
// https://vitepress.dev/reference/default-theme-config
nav: [
{ text: "Home", link: "/" },
{ text: "Examples", link: "/markdown-examples" },
{ text: "API", link: "/api-test/api-examples" },
],
sidebar: generateSidebar({
sidebars: {
["/"]: [
{
text: "MARKDOWN",
link: "/markdown-examples",
collapsed: true,
},
],
["/api-test/"]: [
{ text: "API", link: "/api-test/api-examples", collapsed: true },
{ text: "TEST", link: "/api-test/test", collapsed: true },
],
},
excludeFiles: ["test.md"],
}),
socialLinks: [
{ icon: "github", link: "https://github.com/vuejs/vitepress" },
],
},
});