@@ -5,6 +5,11 @@ import { withMermaid } from "vitepress-plugin-mermaid";
55const docsBase = "/learn-harness-engineering/" ;
66const brandLogo = 'data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="%23D95C41" stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round"><line x1="12.1" y1="11.9" x2="18.9" y2="8.2" /><line x1="12.1" y1="12.1" x2="20.3" y2="12.9" /><line x1="12.2" y1="12.4" x2="16.6" y2="19.1" /><line x1="11.8" y1="12.4" x2="7.3" y2="19.2" /><line x1="11.9" y1="12.1" x2="3.7" y2="13.3" /><line x1="11.8" y1="11.7" x2="7.8" y2="4.4" /></svg>' ;
77const githubRepoTreeLink = "https://github.com/walkinglabs/learn-harness-engineering/tree/main" ;
8+ const discordInviteLink = "https://discord.gg/XU7DQmpqk" ;
9+ const socialLinks = [
10+ { icon : "github" , link : githubRepoTreeLink } ,
11+ { icon : "discord" , link : discordInviteLink }
12+ ] as const ;
813
914const zhLectureItems = [
1015 { text : "欢迎" , link : "/zh/" } ,
@@ -602,7 +607,7 @@ const createLocaleTheme = (
602607 darkModeSwitchLabel : labels . darkModeSwitch || "Theme" ,
603608 lightModeSwitchTitle : labels . lightModeSwitchTitle || "Switch to light theme" ,
604609 darkModeSwitchTitle : labels . darkModeSwitchTitle || "Switch to dark theme" ,
605- socialLinks : [ { icon : "github" , link : githubRepoTreeLink } ]
610+ socialLinks
606611 } ;
607612} ;
608613
@@ -635,7 +640,7 @@ export default withMermaid(
635640 search : {
636641 provider : "local"
637642 } ,
638- socialLinks : [ { icon : "github" , link : githubRepoTreeLink } ]
643+ socialLinks
639644 } ,
640645 markdown : {
641646 theme : {
@@ -678,7 +683,7 @@ export default withMermaid(
678683 '/en/skills/' : [ { text : "Skills" , items : enSkillItems } ] ,
679684 '/en/' : [ { text : "Lectures" , items : enLectureItems } ]
680685 } ,
681- socialLinks : [ { icon : "github" , link : githubRepoTreeLink } ]
686+ socialLinks
682687 } ,
683688 } ,
684689 zh : {
@@ -731,7 +736,7 @@ export default withMermaid(
731736 darkModeSwitchLabel : "主题" ,
732737 lightModeSwitchTitle : "切换到浅色模式" ,
733738 darkModeSwitchTitle : "切换到深色模式" ,
734- socialLinks : [ { icon : "github" , link : githubRepoTreeLink } ] ,
739+ socialLinks,
735740 } ,
736741 } ,
737742 "zh-TW" : {
@@ -943,7 +948,7 @@ export default withMermaid(
943948 darkModeSwitchLabel : "Giao diện" ,
944949 lightModeSwitchTitle : "Chuyển sang chế độ sáng" ,
945950 darkModeSwitchTitle : "Chuyển sang chế độ tối" ,
946- socialLinks : [ { icon : "github" , link : githubRepoTreeLink } ] ,
951+ socialLinks,
947952 } ,
948953 } ,
949954 ko : {
@@ -997,7 +1002,7 @@ export default withMermaid(
9971002 darkModeSwitchLabel : "테마" ,
9981003 lightModeSwitchTitle : "라이트 모드로 전환" ,
9991004 darkModeSwitchTitle : "다크 모드로 전환" ,
1000- socialLinks : [ { icon : "github" , link : githubRepoTreeLink } ] ,
1005+ socialLinks,
10011006 } ,
10021007 } ,
10031008 uz : {
@@ -1057,7 +1062,7 @@ export default withMermaid(
10571062 darkModeSwitchLabel : "Mavzu" ,
10581063 lightModeSwitchTitle : "Yorugʻ rejimga oʻtish" ,
10591064 darkModeSwitchTitle : "Qorongʻi rejimga oʻtish" ,
1060- socialLinks : [ { icon : "github" , link : githubRepoTreeLink } ] ,
1065+ socialLinks,
10611066 } ,
10621067 } ,
10631068 ru : {
@@ -1115,7 +1120,7 @@ export default withMermaid(
11151120 darkModeSwitchLabel : "Тема" ,
11161121 lightModeSwitchTitle : "Включить светлую тему" ,
11171122 darkModeSwitchTitle : "Включить тёмную тему" ,
1118- socialLinks : [ { icon : "github" , link : githubRepoTreeLink } ] ,
1123+ socialLinks,
11191124 } ,
11201125 } ,
11211126 "pt-BR" : {
@@ -1175,7 +1180,7 @@ export default withMermaid(
11751180 darkModeSwitchLabel : "Tema" ,
11761181 lightModeSwitchTitle : "Ativar tema claro" ,
11771182 darkModeSwitchTitle : "Ativar tema escuro" ,
1178- socialLinks : [ { icon : "github" , link : githubRepoTreeLink } ] ,
1183+ socialLinks,
11791184 } ,
11801185 } ,
11811186 } ,
0 commit comments