Skip to content

Commit 2ea383e

Browse files
author
张恕征
committed
🎨 config
1 parent 3df2f49 commit 2ea383e

File tree

6 files changed

+66
-6
lines changed

6 files changed

+66
-6
lines changed

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@
186186
same "printed page" as the copyright notice for easier
187187
identification within third-party archives.
188188

189-
Copyright [yyyy] [name of copyright owner]
189+
Copyright 2025 java-ai.cn
190190

191191
Licensed under the Apache License, Version 2.0 (the "License");
192192
you may not use this file except in compliance with the License.

docs/.vitepress/config.mjs

Lines changed: 22 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,26 @@ import { defineConfig } from 'vitepress'
33
// https://vitepress.dev/reference/site-config
44
export default defineConfig({
55
title: "Java-AI",
6+
titleTemplate: 'JAVA-AI.cn',
67
description: "Java ♾️ AI",
7-
editLink: true,
8+
head: [['link', { rel: 'icon', href: '/favicon.ico' }]],
9+
editLink: {
10+
pattern: 'https://github.com/javay/java-ai/edit/main/docs/:path'
11+
},
812
lastUpdated: true,
13+
footer: true,
914
themeConfig: {
1015
// https://vitepress.dev/reference/default-theme-config
16+
logo: '/logo.png',
17+
18+
search: {
19+
provider: 'local'
20+
},
21+
1122
nav: [
12-
{ text: 'Home', link: '/' },
13-
{ text: 'Examples', link: '/markdown-examples' }
23+
{ text: '首页', link: '/' },
24+
{ text: 'Examples', link: '/markdown-examples' },
25+
{ text: '关于我', link: '/team' }
1426
],
1527

1628
sidebar: [
@@ -24,7 +36,12 @@ export default defineConfig({
2436
],
2537

2638
socialLinks: [
27-
{ icon: 'github', link: 'https://github.com/vuejs/vitepress' }
28-
]
39+
{ icon: 'github', link: 'https://github.com/javay/java-ai' }
40+
],
41+
42+
footer: {
43+
message: 'Released under the <a href="https://github.com/javay/java-ai/blob/main/LICENSE">Apache License 2.0</a>',
44+
copyright: 'Copyright © 2025 java-ai.cn All Rights Reserved <a href="/"><img src="/logo.png" width="16" height="16" alt="java-ai.cn" /></a>'
45+
}
2946
}
3047
})

docs/.vitepress/theme/style.css

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -137,3 +137,11 @@
137137
--docsearch-primary-color: var(--vp-c-brand-1) !important;
138138
}
139139

140+
.copyright a {
141+
display: inline-block;
142+
vertical-align: text-bottom;
143+
}
144+
.copyright a img {
145+
filter: brightness(0) invert(1);
146+
}
147+

docs/public/favicon.ico

16.6 KB
Binary file not shown.

docs/public/logo.png

85 KB
Loading

docs/team.md

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
---
2+
layout: page
3+
---
4+
<script setup>
5+
import {
6+
VPTeamPage,
7+
VPTeamPageTitle,
8+
VPTeamMembers
9+
} from 'vitepress/theme'
10+
11+
const members = [
12+
{
13+
avatar: 'https://www.github.com/shuzheng.png',
14+
name: 'shuzheng',
15+
title: '作者',
16+
links: [
17+
{ icon: 'github', link: 'https://github.com/shuzheng' },
18+
{ icon: 'gitee', link: 'https://gitee.com/shuzheng' }
19+
]
20+
}
21+
]
22+
</script>
23+
24+
<VPTeamPage>
25+
<VPTeamPageTitle>
26+
<template #title>
27+
Our Team
28+
</template>
29+
<template #lead>
30+
The development of VitePress is guided by an international
31+
team, some of whom have chosen to be featured below.
32+
</template>
33+
</VPTeamPageTitle>
34+
<VPTeamMembers :members />
35+
</VPTeamPage>

0 commit comments

Comments
 (0)