1
0
Code Issues Pull Requests Packages Projects Releases Wiki Activity GitHub Gitee

feat: 引入 @nolebase/vitepress-plugin-git-changelog 插件以实现基于 Git 的页面历史
Some checks are pending
Deploy GitHub Pages / build (push) Waiting to run
Deploy GitHub Pages / Deploy (push) Blocked by required conditions

This commit is contained in:
2025-03-13 16:47:05 +08:00
parent 2a0c858ce9
commit df3480a3eb
4 changed files with 1091 additions and 0 deletions

View File

@@ -1,6 +1,10 @@
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({
@@ -8,12 +12,26 @@ export default defineConfig({
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