You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
48 lines
1.6 KiB
48 lines
1.6 KiB
import { defineConfig } from 'vitepress'; |
|
import react from '@vitejs/plugin-react'; |
|
|
|
// https://vitepress.dev/reference/site-config |
|
export default defineConfig({ |
|
vite: { |
|
plugins: [react()], |
|
}, |
|
title: 'pear-rec', |
|
base: '/pear-rec', |
|
description: '一个跨平台的截图、录屏、录音、录像软件', |
|
head: [['link', { rel: 'icon', href: '/favicon.ico' }]], |
|
themeConfig: { |
|
logo: '/favicon.ico', |
|
siteTitle: '『 pear-rec 』', |
|
outlineTitle: '🔴🟠🟡🟢🔵🟣🟤⚫⚪', |
|
outline: [2, 6], |
|
// 顶部导航 |
|
nav: [ |
|
{ text: 'Home', link: '/' }, |
|
{ text: '文档', link: '/desktop/examples.md' }, |
|
{ text: '下载', link: 'https://github.com/027xiguapi/pear-rec/releases' }, |
|
], |
|
// 侧边栏 |
|
sidebar: [ |
|
{ |
|
text: '文档', |
|
items: [ |
|
{ text: '桌面软件', link: '/desktop/examples.md' }, |
|
{ text: '截图插件', link: '/screenshot/examples' }, |
|
{ text: '录音插件', link: '/recorder/examples.md' }, |
|
{ text: '计时插件', link: '/timer/examples' }, |
|
{ text: '网页应用', link: '/web/examples.md' }, |
|
// { text: "markdown", link: "/markdown-examples.md" }, |
|
// { text: "Runtime API Examples", link: "/api-examples" }, |
|
], |
|
}, |
|
], |
|
|
|
socialLinks: [{ icon: 'github', link: 'https://github.com/027xiguapi/pear-rec' }], |
|
// 页脚 |
|
footer: { |
|
message: |
|
'<a href="https://www.apache.org/licenses/LICENSE-2.0" target="_blank">pear-rec is available under the Apache License V2.</a>', |
|
copyright: 'Copyright © 2023 西瓜皮', |
|
}, |
|
}, |
|
});
|
|
|