mirror of
https://github.com/gkd-kit/docs.git
synced 2024-11-16 19:22:20 +08:00
57 lines
1.4 KiB
TypeScript
57 lines
1.4 KiB
TypeScript
import { defineConfig } from 'vitepress';
|
|
import { mirror, transformHtml } from './plugins';
|
|
|
|
// https://vitepress.dev/reference/site-config
|
|
export default defineConfig({
|
|
title: 'GKD',
|
|
description: '自定义屏幕点击应用',
|
|
head: [
|
|
[
|
|
'link',
|
|
{
|
|
rel: 'icon',
|
|
type: 'image/svg+xml',
|
|
href: '/logo.svg',
|
|
},
|
|
],
|
|
],
|
|
lastUpdated: true,
|
|
themeConfig: {
|
|
// https://vitepress.dev/reference/default-theme-config
|
|
logo: '/logo.svg',
|
|
nav: [{ text: '首页', link: '/' }],
|
|
sidebar: [
|
|
{
|
|
text: '指引',
|
|
items: [
|
|
{ text: '开始使用', link: '/guide/' },
|
|
{ text: '高级选择器', link: '/selector/' },
|
|
{ text: '订阅规则', link: '/scription/' },
|
|
{ text: '疑难解答', link: '/faq/' },
|
|
],
|
|
},
|
|
],
|
|
outline: { label: '页面导航' },
|
|
editLink: {
|
|
pattern: 'https://github.com/gkd-kit/docs/edit/main/:path',
|
|
text: '为此页提供修改建议',
|
|
},
|
|
search: {
|
|
provider: 'local',
|
|
},
|
|
socialLinks: [{ icon: 'github', link: 'https://github.com/gkd-kit' }],
|
|
footer: {
|
|
message: 'Released under the GPL-v3 License.',
|
|
copyright: `Copyright © ${new Date().getFullYear()} GKD. All rights reserved`,
|
|
},
|
|
},
|
|
transformHtml,
|
|
vite: {
|
|
plugins: [mirror()],
|
|
server: {
|
|
host: '127.0.0.1',
|
|
port: 8633,
|
|
},
|
|
},
|
|
});
|