import { defineConfig } from 'vitepress' import { sidebar } from '../sidebar.mts' import { nav } from '../nav.mts' import { GitChangelog, GitChangelogMarkdownSection, } from '@nolebase/vitepress-plugin-git-changelog/vite' // https://vitepress.dev/reference/site-config export default defineConfig({ vite: { server: { port: 5678, }, plugins: [ GitChangelog({ // 填写在此处填写您的仓库链接 repoURL: () => 'https://github.com/coder-xiaomo/tutorials', }), GitChangelogMarkdownSection(), ], }, title: "就这么弄", description: "简单步骤与实用技巧", base: '/tutorials/', locales: { root: { label: '简体中文', lang: 'zh-CN', } }, themeConfig: { // https://vitepress.dev/reference/default-theme-config logo: { src: '/assets/logo.svg', }, nav: nav, sidebar: sidebar, socialLinks: [ // { icon: 'github', link: 'https://github.com/vuejs/vitepress' } { icon: { svg: `` }, link: 'https://github.com/coder-xiaomo/tutorials', }, { // https://gitee.com/static/images/logo-en.svg icon: { svg: `` }, link: 'https://gitee.com/coder-xiaomo/tutorials', } ], search: { provider: 'local' }, lastUpdated: { text: '最近更新', }, } })