import { defineConfig } from 'vitepress' // https://vitepress.dev/reference/site-config export default defineConfig({ srcDir: "markdown", title: "文档中心", description: "日常记录学习所遇的问题和解决方法", vite: { server: { port: 7001, host: true, strictPort: true } }, themeConfig: { // https://vitepress.dev/reference/default-theme-config nav: [ { text: 'Home', link: '/' }, { text: 'Examples', link: '/markdown-examples' } ], sidebar: [ { text: 'Examples', items: [ { text: 'Markdown Examples', link: '/markdown-examples' }, { text: 'Runtime API Examples', link: '/api-examples' } ] } ], socialLinks: [ { icon: 'github', link: 'https://git.xi.plus' } ] } })