This commit is contained in:
2026-04-30 18:54:23 +08:00
parent b78808558b
commit 132b2fc310
14 changed files with 235 additions and 9033 deletions
+78
View File
@@ -0,0 +1,78 @@
import { defineConfig } from 'vitepress'
export default defineConfig({
title: 'Jiscuss',
description: 'Jiscuss,一个简单的、基于 Java 的开源论坛。',
lang: 'zh-CN',
lastUpdated: true,
cleanUrls: true,
outDir: '../public',
head: [
['link', { rel: 'icon', href: '/favicon.ico' }],
['meta', { name: 'viewport', content: 'width=device-width,initial-scale=1,user-scalable=no' }]
],
markdown: {
lineNumbers: true
},
themeConfig: {
logo: '/head.png',
siteTitle: 'Jiscuss',
nav: [
{ text: '首页', link: '/' },
{ text: '文档', link: '/views/other/guide' },
{ text: '时间线', link: '/timeLine/' },
{ text: 'Jiscuss Demo', link: 'http://demo.jiscuss.com' },
{
text: '联系作者',
items: [
{ text: 'Yaoyuan.io', link: 'http://www.yaoyuan.io' },
{ text: 'GitHub', link: 'https://github.com/chuyaoyuan' },
{ text: 'WeChat', link: 'http://www.chuyaoyuan.com' }
]
}
],
sidebar: {
'/views/': [
{
text: 'Jiscuss 文档',
items: [
{ text: '快速上手', link: '/views/other/guide' }
]
}
],
'/timeLine/': [
{
text: '项目时间线',
items: [
{ text: 'Time Line', link: '/timeLine/' }
]
}
]
},
search: {
provider: 'local'
},
outline: {
label: '本页目录',
level: [2, 3]
},
docFooter: {
prev: '上一页',
next: '下一页'
},
lastUpdated: {
text: '最后更新',
formatOptions: {
dateStyle: 'short',
timeStyle: 'medium'
}
},
footer: {
message: 'Released under the MIT License.',
copyright: 'Copyright © 2018-present Yaoyuan'
},
socialLinks: [
{ icon: 'github', link: 'https://github.com/chuyaoyuan' }
]
}
})
+4
View File
@@ -0,0 +1,4 @@
import DefaultTheme from 'vitepress/theme'
import './styles.css'
export default DefaultTheme
+18
View File
@@ -0,0 +1,18 @@
:root {
--vp-c-brand-1: #424242;
--vp-c-brand-2: #5f5f5f;
--vp-c-brand-3: #232321;
--vp-home-hero-name-color: transparent;
--vp-home-hero-name-background: linear-gradient(120deg, #232321 30%, #6b7280);
--vp-home-hero-image-background-image: linear-gradient(-45deg, #424242 50%, #d1d5db 50%);
--vp-home-hero-image-filter: blur(56px);
}
.VPHomeHero .image-src {
max-width: 600px;
border-radius: 1rem;
}
.VPFeature {
border-color: rgba(66, 66, 66, 0.12);
}