From 28305a5eccdd2effda3e5adda6ef3614842fcc2f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E2=80=9C=C3=A2jinzhongjia?= Date: Sat, 16 Dec 2023 10:13:21 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E8=AF=84=E8=AE=BA=E5=8A=9F?= =?UTF-8?q?=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- bun.lockb | Bin 83697 -> 87137 bytes learn/.vitepress/theme/index.ts | 35 ++++++++++++++++++++++++++++--- learn/.vitepress/theme/style.css | 0 package.json | 3 +++ 4 files changed, 35 insertions(+), 3 deletions(-) delete mode 100644 learn/.vitepress/theme/style.css diff --git a/bun.lockb b/bun.lockb index 19d80c002cc581079bacdaf3010450adeecea1a6..c2ed265f558e2f63a6169867fc90ac7655605694 100755 GIT binary patch delta 17738 zcmeHPc|cTE+rRfRqYMawf{i!`t}F@y8jHYyuYY-b9r#o{mL4tEy?e!eZV`q=M%Bl8sk zU-0z>A%8QdGw8_NWH~kgxjZ1(2W9=&pzfe?DqSiGLN&P8SdADcFVl#%h8ZY63}>J<%ClPGDBccpw}{ZnSp3Clu_NGbj&) zYiLJq!dYl<4ALdto2FkzZ4F zM6Wt_8+tnr(I)i-!4-7mkkoV@^oJm`eiJBs$5Rx-;Qgc$1vrW*mqZeR+ zYg!pHJNR=0#ZECOS0JyU;^^SP!*ero1i_YNOSPc@XGC(mEg{Q3EI2J&5LHD^LSkY< zVtR5Zh9@^2=3r1#vMu$|x%i|xsLjzw=bkpjuFU*sOG5DJbhdi&r{wIw(eQejF$d<)S!cD6fRf%UC*SZ4BA`9$ZZItsLUm=-A4v!^1ZAqb`+0jQtW0e0`;ZV?p+`wtu|;M*VREJNwkH z`^E7Ylwa95zJ_^RFPB-ZzMDE>X`4HKqZ$}ynmAXdjPlJn+IS=f9tz@qE18zOIHmoz$b`XRYxB%Kv zJJL}VVAC~1+TuWK-OT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w1DXhqN54QBV7ADCnucQ)KNnIAn^aq3{*g#&G{SficM zGzaLZvG*b$cBe~fPuFH6?tbM!$Cdu$$Y`f0U!|-Tlm5ezpWd1=Xr#~n*VL)S&XmL1 zFTFi{np5km5r7tM%`VqHh>}uQp>#NcdrXIOwP|u`jwt$PCoc1&Ph8jxaN=^D62fHG ze;}5+?#h)8n~&aC4?J8#J#v|3<+$Y=%&JEpxj5&Rn`4A5OfmWo)Be^m#O+4sE+0GH zJ^IYWwkbx(R@j>LAG>*edo-f;-OukjZPi1UNmdSA^%}OrI|`h2_*n9bGZ%6OcsRmp zArk$EWSi=TSN{3Jm?7Fx0wo@E=t9nN563Lnn)M&2eJEY&*6f1Z!D*|Wx=gZiGU4qyI|ivztW?XKfisPH&Gnc)|9Fr^9SOB=Zy0lh@i~j+`4^ zZ7b#K`*>-BBLyYo0f~-@1`#QLmFU<6IY$2l&4+$ZtQ5!WxF1J^#p9l+zO#7vDN}pM zlbTIBJ`4vQ=L zL;qz`cF;H13U|C7;w-8Ec4^C*Bj>&;&)n?H*_P~B?uJ@EPgWn0jt!1p(Eb0ue9>9r zT(V;iyz6b!Ym+t0f1p}4vKD`JzV1i2)8)sN)Af2QA7`iM>;AO9ua38VXGeG)VY2JL z*P7m_-oEZ1ziajqv7Oa%)PD;0-Rvu`Tw9y;Cuh!oVx#|l>(j7B-E8CP9@b{10n<_o zMb>F@(&{IKsm>AQtuo$62}k26M2DVkICk*-nt7v(snNxqulPddlW1zGWAc%pp|Q;& z^UVDA%AH-IZ(o}p1DWqtKQ7)o?tOFOCmr~eJFdZ99owD|T^#}S#9c>(hp6vZ7%Ti7 z6TO9(NO%`4|t$xDK^8W-EXn_C# diff --git a/learn/.vitepress/theme/index.ts b/learn/.vitepress/theme/index.ts index 13cf67ab..4fd09b3b 100644 --- a/learn/.vitepress/theme/index.ts +++ b/learn/.vitepress/theme/index.ts @@ -1,5 +1,34 @@ // .vitepress/theme/index.js -import DefaultTheme from "vitepress/theme"; -import "./style.css"; +import DefaultTheme from 'vitepress/theme'; +import giscusTalk from 'vitepress-plugin-comment-with-giscus'; +import { useData, useRoute } from 'vitepress'; -export default DefaultTheme; +export default { + ...DefaultTheme, + enhanceApp(ctx) { + DefaultTheme.enhanceApp(ctx); + }, + setup() { + // Get frontmatter and route + const { frontmatter } = useData(); + const route = useRoute(); + + // Obtain configuration from: https://giscus.app/ + giscusTalk({ + repo: 'learnzig/learnzig', + repoId: 'R_kgDOKRsb5Q', + category: 'Comments', // default: `General` + categoryId: 'DIC_kwDOKRsb5c4Cbx2i', + mapping: 'pathname', // default: `pathname` + inputPosition: 'top', // default: `top` + lang: 'zh-CN', // default: `zh-CN` + strict: "1", + reactionsEnabled: "1", + theme: "preferred_color_scheme", + }, { + frontmatter, route + }, + true + ); + } +}; \ No newline at end of file diff --git a/learn/.vitepress/theme/style.css b/learn/.vitepress/theme/style.css deleted file mode 100644 index e69de29b..00000000 diff --git a/package.json b/package.json index 0fd31508..c72c2efc 100644 --- a/package.json +++ b/package.json @@ -9,5 +9,8 @@ "medium-zoom": "^1.0.8", "prettier": "^3.0.3", "vitepress": "^1.0.0-rc.11" + }, + "dependencies": { + "vitepress-plugin-comment-with-giscus": "^1.1.11" } }