From 2bfa5246626f1d317eea79ea6f1f9ff634c6b8ee Mon Sep 17 00:00:00 2001 From: marshmallow Date: Sun, 21 Dec 2025 11:26:07 +1100 Subject: [PATCH] drop giscus --- doc/.vitepress/theme/index.ts | 35 +---------------- doc/package.json | 1 - doc/pnpm-lock.yaml | 71 ----------------------------------- 3 files changed, 1 insertion(+), 106 deletions(-) diff --git a/doc/.vitepress/theme/index.ts b/doc/.vitepress/theme/index.ts index 5594d89..edd12c0 100644 --- a/doc/.vitepress/theme/index.ts +++ b/doc/.vitepress/theme/index.ts @@ -1,8 +1,6 @@ import DefaultTheme from "vitepress/theme"; import "virtual:group-icons.css"; -import giscusTalk from "vitepress-plugin-comment-with-giscus"; -import { EnhanceAppContext, useData, useRoute } from "vitepress"; -import { toRefs } from "vue"; +import { EnhanceAppContext } from "vitepress"; import "./style.css"; export default { @@ -10,35 +8,4 @@ export default { enhanceApp(ctx: EnhanceAppContext) { DefaultTheme.enhanceApp(ctx); }, - setup() { - const { frontmatter } = toRefs(useData()); - const route = useRoute(); - - giscusTalk( - { - repo: "mrshmllow/wire", - repoId: "R_kgDOMQQbzw", - category: "giscus", // default: `General` - categoryId: "DIC_kwDOMQQbz84Co4vv", - mapping: "pathname", - inputPosition: "top", - lang: "en", - // i18n setting (Note: This configuration will override the default language set by lang) - // Configured as an object with key-value pairs inside: - // [your i18n configuration name]: [corresponds to the language pack name in Giscus] - locales: { - "en-US": "en", - }, - homePageShowComment: false, - lightTheme: "light", - darkTheme: "transparent_dark", - }, - { - frontmatter, - route, - }, - // Default to false for all pages - false, - ); - }, }; diff --git a/doc/package.json b/doc/package.json index 61233c6..9675387 100644 --- a/doc/package.json +++ b/doc/package.json @@ -18,7 +18,6 @@ }, "dependencies": { "markdown-it-footnote": "^4.0.0", - "vitepress-plugin-comment-with-giscus": "^1.1.15", "vitepress-plugin-group-icons": "^1.6.5" } } diff --git a/doc/pnpm-lock.yaml b/doc/pnpm-lock.yaml index 860700d..4f2fd61 100644 --- a/doc/pnpm-lock.yaml +++ b/doc/pnpm-lock.yaml @@ -11,9 +11,6 @@ importers: markdown-it-footnote: specifier: ^4.0.0 version: 4.0.0 - vitepress-plugin-comment-with-giscus: - specifier: ^1.1.15 - version: 1.1.15(vue@3.5.26) vitepress-plugin-group-icons: specifier: ^1.6.5 version: 1.6.5(vite@5.4.21) @@ -284,11 +281,6 @@ packages: cpu: [x64] os: [win32] - '@giscus/vue@2.4.0': - resolution: {integrity: sha512-QOxKHgsMT91myyQagP2v20YYAei1ByZuc3qcaYxbHx4AwOeyVrybDIuRFwG9YDv6OraC86jYnU4Ixd37ddC/0A==} - peerDependencies: - vue: '>=3.2.0' - '@iconify-json/logos@1.2.10': resolution: {integrity: sha512-qxaXKJ6fu8jzTMPQdHtNxlfx6tBQ0jXRbHZIYy5Ilh8Lx9US9FsAdzZWUR8MXV8PnWTKGDFO4ZZee9VwerCyMA==} @@ -307,12 +299,6 @@ packages: '@jridgewell/sourcemap-codec@1.5.5': resolution: {integrity: sha512-cYQ9310grqxueWbl+WuIUIaiUaDcj7WOq5fVhEljNVgRfOUhY9fy2zTvfoqWsnebh8Sl70VScFbICvJnLKB0Og==} - '@lit-labs/ssr-dom-shim@1.4.0': - resolution: {integrity: sha512-ficsEARKnmmW5njugNYKipTm4SFnbik7CXtoencDZzmzo/dQ+2Q0bgkzJuoJP20Aj0F+izzJjOqsnkd6F/o1bw==} - - '@lit/reactive-element@2.1.1': - resolution: {integrity: sha512-N+dm5PAYdQ8e6UlywyyrgI2t++wFGXfHx+dSJ1oBrg6FAxUj40jId++EaRm80MKX5JnlH1sBsyZ5h0bcZKemCg==} - '@rollup/rollup-android-arm-eabi@4.53.5': resolution: {integrity: sha512-iDGS/h7D8t7tvZ1t6+WPK04KD0MwzLZrG0se1hzBjSi5fyxlsiggoJHwh18PCFNn7tG43OWb6pdZ6Y+rMlmyNQ==} cpu: [arm] @@ -465,9 +451,6 @@ packages: '@types/mdurl@2.0.0': resolution: {integrity: sha512-RGdgjQUZba5p6QEFAVx2OGb8rQDL/cPRG7GiedRzMcJ1tYnUANBncjbSB1NRGwbvjcPeikRABz2nshyPk1bhWg==} - '@types/trusted-types@2.0.7': - resolution: {integrity: sha512-ScaPdn1dQczgbl0QFTeTOmVHFULt394XJgOQNoyVhZ6r2vLnMLJfBPd53SB52T/3G36VI1/g2MZaX0cwDuXsfw==} - '@types/unist@3.0.3': resolution: {integrity: sha512-ko/gIFJRv177XgZsZcBwnqJN5x/Gien8qNOn0D5bQU/zAzVf9Zt3BlcUiLqhV9y4ARk0GbT3tnUiPNgnTXzc/Q==} @@ -639,9 +622,6 @@ packages: engines: {node: ^8.16.0 || ^10.6.0 || >=11.0.0} os: [darwin] - giscus@1.6.0: - resolution: {integrity: sha512-Zrsi8r4t1LVW950keaWcsURuZUQwUaMKjvJgTCY125vkW6OiEBkatE7ScJDbpqKHdZwb///7FVC21SE3iFK3PQ==} - hast-util-to-html@9.0.5: resolution: {integrity: sha512-OguPdidb+fbHQSU4Q4ZiLKnzWo8Wwsf5bZfbvu7//a9oTYoqD/fWpe96NuHkoS9h0ccGOTe0C4NGXdtS0iObOw==} @@ -658,15 +638,6 @@ packages: resolution: {integrity: sha512-oG7cgbmg5kLYae2N5IVd3jm2s+vldjxJzK1pcu9LfpGuQ93MQSzo0okvRna+7y5ifrD+20FE8FvjusyGaz14fw==} engines: {node: '>=18'} - lit-element@4.2.1: - resolution: {integrity: sha512-WGAWRGzirAgyphK2urmYOV72tlvnxw7YfyLDgQ+OZnM9vQQBQnumQ7jUJe6unEzwGU3ahFOjuz1iz1jjrpCPuw==} - - lit-html@3.3.1: - resolution: {integrity: sha512-S9hbyDu/vs1qNrithiNyeyv64c9yqiW9l+DBgI18fL+MTvOtWoFR0FWiyq1TxaYef5wNlpEmzlXoBlZEO+WjoA==} - - lit@3.3.1: - resolution: {integrity: sha512-Ksr/8L3PTapbdXJCk+EJVB78jDodUMaP54gD24W186zGRARvwrsPfS60wae/SSCTCNZVPd1chXqio1qHQmu4NA==} - magic-string@0.30.21: resolution: {integrity: sha512-vd2F4YUyEXKGcLHoq+TEyCjxueSeHnFxyyjNp80yg0XV4vUhnDer/lvvlqM/arB5bXQN5K2/3oinyCRyx8T2CQ==} @@ -842,9 +813,6 @@ packages: terser: optional: true - vitepress-plugin-comment-with-giscus@1.1.15: - resolution: {integrity: sha512-1DJjgN+7SYvn5ZkjuSXPmz7nlqfcrh4qCGGviiZghA2ELXnaO2m9WY7m+RisPSaqCn90xqe0JbO2T4NMq8iUBg==} - vitepress-plugin-group-icons@1.6.5: resolution: {integrity: sha512-+pg4+GKDq2fLqKb1Sat5p1p4SuIZ5tEPxu8HjpwoeecZ/VaXKy6Bdf0wyjedjaTAyZQzXbvyavJegqAcQ+B0VA==} peerDependencies: @@ -1101,11 +1069,6 @@ snapshots: '@esbuild/win32-x64@0.21.5': optional: true - '@giscus/vue@2.4.0(vue@3.5.26)': - dependencies: - giscus: 1.6.0 - vue: 3.5.26 - '@iconify-json/logos@1.2.10': dependencies: '@iconify/types': 2.0.0 @@ -1128,12 +1091,6 @@ snapshots: '@jridgewell/sourcemap-codec@1.5.5': {} - '@lit-labs/ssr-dom-shim@1.4.0': {} - - '@lit/reactive-element@2.1.1': - dependencies: - '@lit-labs/ssr-dom-shim': 1.4.0 - '@rollup/rollup-android-arm-eabi@4.53.5': optional: true @@ -1259,8 +1216,6 @@ snapshots: '@types/mdurl@2.0.0': {} - '@types/trusted-types@2.0.7': {} - '@types/unist@3.0.3': {} '@types/web-bluetooth@0.0.21': {} @@ -1455,10 +1410,6 @@ snapshots: fsevents@2.3.3: optional: true - giscus@1.6.0: - dependencies: - lit: 3.3.1 - hast-util-to-html@9.0.5: dependencies: '@types/hast': 3.0.4 @@ -1483,22 +1434,6 @@ snapshots: is-what@5.5.0: {} - lit-element@4.2.1: - dependencies: - '@lit-labs/ssr-dom-shim': 1.4.0 - '@lit/reactive-element': 2.1.1 - lit-html: 3.3.1 - - lit-html@3.3.1: - dependencies: - '@types/trusted-types': 2.0.7 - - lit@3.3.1: - dependencies: - '@lit/reactive-element': 2.1.1 - lit-element: 4.2.1 - lit-html: 3.3.1 - magic-string@0.30.21: dependencies: '@jridgewell/sourcemap-codec': 1.5.5 @@ -1696,12 +1631,6 @@ snapshots: optionalDependencies: fsevents: 2.3.3 - vitepress-plugin-comment-with-giscus@1.1.15(vue@3.5.26): - dependencies: - '@giscus/vue': 2.4.0(vue@3.5.26) - transitivePeerDependencies: - - vue - vitepress-plugin-group-icons@1.6.5(vite@5.4.21): dependencies: '@iconify-json/logos': 1.2.10 -- 2.51.2