11import { transformerTwoslash } from '@shikijs/vitepress-twoslash'
2+ import { extendConfig } from '@voidzero-dev/vitepress-theme/config'
23import { defineConfig } from 'vitepress'
34import {
45 groupIconMdPlugin ,
@@ -7,26 +8,38 @@ import {
78import { withMermaid } from 'vitepress-plugin-mermaid'
89import { version } from '../../package.json'
910
11+ const DevToolsKitNav = [
12+ { text : 'Introduction' , link : '/kit/' } ,
13+ { text : 'DevTools Plugin' , link : '/kit/devtools-plugin' } ,
14+ { text : 'Dock System' , link : '/kit/dock-system' } ,
15+ { text : 'RPC' , link : '/kit/rpc' } ,
16+ { text : 'Shared State' , link : '/kit/shared-state' } ,
17+ ]
18+
19+ const SocialLinks = [
20+ { icon : 'bluesky' , link : 'https://bsky.app/profile/vite.dev' } ,
21+ { icon : 'mastodon' , link : 'https://elk.zone/m.webtoo.ls/@vite' } ,
22+ { icon : 'x' , link : 'https://x.com/vite_js' } ,
23+ { icon : 'discord' , link : 'https://chat.vite.dev' } ,
24+ { icon : 'github' , link : 'https://github.com/vitejs/devtools' } ,
25+ ]
26+
1027// https://vitepress.dev/reference/site-config
11- export default withMermaid ( defineConfig ( {
28+ export default extendConfig ( withMermaid ( defineConfig ( {
1229 title : 'Vite DevTools' ,
1330 description : 'Visualize and analyze your Vite build process with powerful developer tools. Extensible architecture for building custom DevTools integrations.' ,
1431 head : [
1532 [ 'link' , { rel : 'icon' , type : 'image/svg+xml' , href : '/logo.svg' } ] ,
1633 ] ,
1734 themeConfig : {
35+ variant : 'vite' ,
36+
1837 // https://vitepress.dev/reference/default-theme-config
1938 nav : [
2039 { text : 'Guide' , link : '/guide/' } ,
2140 {
2241 text : 'DevTools Kit' ,
23- items : [
24- { text : 'Introduction' , link : '/kit/' } ,
25- { text : 'DevTools Plugin' , link : '/kit/devtools-plugin' } ,
26- { text : 'Dock System' , link : '/kit/dock-system' } ,
27- { text : 'RPC' , link : '/kit/rpc' } ,
28- { text : 'Shared State' , link : '/kit/shared-state' } ,
29- ] ,
42+ items : DevToolsKitNav ,
3043 } ,
3144 {
3245 text : `v${ version } ` ,
@@ -69,6 +82,22 @@ export default withMermaid(defineConfig({
6982 footer : {
7083 message : `Released under the MIT License.` ,
7184 copyright : 'Copyright © 2025-present VoidZero Inc. & Vite Contributors' ,
85+ nav : [
86+ {
87+ title : 'Vite DevTools' ,
88+ items : [
89+ { text : 'Guide' , link : '/guide/' } ,
90+ { text : 'Features' , link : '/guide/features' } ,
91+ { text : 'Release Notes' , link : 'https://github.com/vitejs/devtools/releases' } ,
92+ { text : 'Contributing' , link : 'https://github.com/vitejs/devtools/blob/main/CONTRIBUTING.md' } ,
93+ ] ,
94+ } ,
95+ {
96+ title : 'DevTools Kit' ,
97+ items : DevToolsKitNav ,
98+ } ,
99+ ] ,
100+ social : SocialLinks ,
72101 } ,
73102
74103 lastUpdated : {
@@ -80,13 +109,7 @@ export default withMermaid(defineConfig({
80109 text : 'Suggest changes to this page' ,
81110 } ,
82111
83- socialLinks : [
84- { icon : 'bluesky' , link : 'https://bsky.app/profile/vite.dev' } ,
85- { icon : 'mastodon' , link : 'https://elk.zone/m.webtoo.ls/@vite' } ,
86- { icon : 'x' , link : 'https://x.com/vite_js' } ,
87- { icon : 'discord' , link : 'https://chat.vite.dev' } ,
88- { icon : 'github' , link : 'https://github.com/vitejs/devtools' } ,
89- ] ,
112+ socialLinks : SocialLinks ,
90113 } ,
91114 markdown : {
92115 codeTransformers : [
@@ -119,4 +142,4 @@ export default withMermaid(defineConfig({
119142 useMaxWidth : true ,
120143 } ,
121144 } ,
122- } ) )
145+ } ) ) )
0 commit comments