Skip to content

Commit 2ff899b

Browse files
committed
docs: add gitcode social link
1 parent 72c01a2 commit 2ff899b

File tree

3 files changed

+19
-1
lines changed

3 files changed

+19
-1
lines changed

.cspell.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,14 @@
44
"covector",
55
"deepseek",
66
"devui",
7+
"gitcode",
78
"jbolda",
89
"matechat",
910
"nanoevents",
1011
"rolldown",
1112
"rspress",
1213
"tsdown",
13-
"unbundle"
14+
"unbundle",
15+
"xlink"
1416
]
1517
}

docs/assets/gitcode.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
export default `<?xml version="1.0" encoding="UTF-8"?>
2+
<svg width="100%" viewBox="0 0 28 28" fill="none"
3+
xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
4+
<defs />
5+
<path id="Union"
6+
d="M18.85 5.55L18.74 5.03L17.64 5.65C17.55 5.7 17.47 5.75 17.38 5.8C16.37 6.43 15.17 6.73 13.98 6.63C13.23 6.55 12.48 6.6 11.76 6.77C10.48 7.12 9.32 6.9 8.14 6.43C7.83 6.33 7.53 6.25 7.21 6.18L7.24 6.84C7.26 7.24 7.27 7.61 7.3 7.98C7.37 8.84 7.13 9.62 6.71 10.39C5.78 12.02 5.31 13.88 5.33 15.76C5.4 18.81 7.23 21.07 10.32 22.05C13.03 22.9 15.75 22.86 18.47 22.2C19.97 21.84 21.31 21.04 22.35 19.91C22.6 19.63 22.83 19.33 23.02 19.01C23.81 17.68 23.28 16.44 21.75 16.18C21.34 16.12 20.93 16.1 20.52 16.09L20.11 16.08C19.72 16.08 19.34 16.08 18.96 16.05C17.64 15.94 16.32 15.82 15.02 15.61C14.37 15.51 13.83 15.08 13.75 14.37C13.67 13.59 13.88 12.81 14.61 12.43C15.26 12.08 15.98 11.86 16.71 11.79C18.93 11.63 21.16 11.77 23.33 12.21C27.15 13 29.14 16.76 27.31 20.2C24.72 25.06 20.68 27.86 15.06 27.99C10.67 28.09 6.81 26.7 3.76 23.47C-3.35 15.92 0.08 3.61 10.1 0.65C14.75 -0.72 19.07 0.07 22.99 2.9C24.41 3.92 24.77 5.61 23.94 6.99C23.25 8.14 21.96 8.66 20.6 8.35C19.73 8.14 19.1 7.28 18.93 6.09L18.9 5.87C18.89 5.77 18.87 5.66 18.85 5.55Z"
7+
fill="#DA203E" fill-opacity="1" fill-rule="evenodd" />
8+
</svg>`;

docs/rspress.config.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import * as path from "node:path";
22
import { pluginPlayground } from "@rspress/plugin-playground";
33
import { defineConfig } from "rspress/config";
4+
import GitCodeIcon from "./assets/gitcode.ts";
45

56
export default defineConfig({
67
plugins: [pluginPlayground()],
@@ -25,6 +26,13 @@ export default defineConfig({
2526
],
2627
themeConfig: {
2728
socialLinks: [
29+
{
30+
icon: {
31+
svg: GitCodeIcon,
32+
},
33+
mode: "link",
34+
content: "https://gitcode.com/DevCloudFE/matechat-react",
35+
},
2836
{
2937
icon: "github",
3038
mode: "link",

0 commit comments

Comments
 (0)