diff --git a/patches/vitepress-plugin-group-icons.patch b/patches/vitepress-plugin-group-icons.patch new file mode 100644 index 00000000..591b00cf --- /dev/null +++ b/patches/vitepress-plugin-group-icons.patch @@ -0,0 +1,23 @@ +diff --git a/dist/index.js b/dist/index.js +index d607382406f19def4a6a6472c6143ff56f1db205..ed525461280b730d40be93291d17fa05477eb24b 100644 +--- a/dist/index.js ++++ b/dist/index.js +@@ -101,7 +101,7 @@ function groupIconMdPlugin(md, options) { + }); + }; + const fenceRule = md.renderer.rules.fence; +- if (fenceRule) md.renderer.rules.fence = (...args) => { ++ if (false) md.renderer.rules.fence = (...args) => { + const [tokens, idx] = args; + const token = tokens[idx]; + let isOnCodeGroup = false; +@@ -133,7 +133,8 @@ function groupIconMdPlugin(md, options) { + async function generateCSS(labels, options) { + const baseCSS = ` + .vp-code-block-title [data-title]::before, +-.vp-code-group [data-title]::before { ++.vp-code-group [data-title]::before, ++.vp-doc [class*='language-'] [data-title]::before { + display: inline-block; + width: 1em; + height: 1em; diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index c6f9f1ee..2aafb5bc 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -15,6 +15,9 @@ patchedDependencies: markdown-it-anchor@9.2.0: hash: cdc28e7c329be30688ad192126ba505446611fbe526ad51483e4b1287aa35cf9 path: patches/markdown-it-anchor@9.2.0.patch + vitepress-plugin-group-icons: + hash: 771e35a6827c2547da230d52d3b7032b1d1d75926162c95384f77e5528659991 + path: patches/vitepress-plugin-group-icons.patch importers: @@ -335,7 +338,7 @@ importers: version: link:.. vitepress-plugin-group-icons: specifier: ^1.6.3 - version: 1.6.3(@types/node@24.3.0)(esbuild@0.25.9)(jiti@1.21.7)(markdown-it@14.1.0)(yaml@2.8.1) + version: 1.6.3(patch_hash=771e35a6827c2547da230d52d3b7032b1d1d75926162c95384f77e5528659991)(@types/node@24.3.0)(esbuild@0.25.9)(jiti@1.21.7)(markdown-it@14.1.0)(yaml@2.8.1) vitepress-plugin-llms: specifier: ^1.7.3 version: 1.7.3 @@ -6011,7 +6014,7 @@ snapshots: - tsx - yaml - vitepress-plugin-group-icons@1.6.3(@types/node@24.3.0)(esbuild@0.25.9)(jiti@1.21.7)(markdown-it@14.1.0)(yaml@2.8.1): + vitepress-plugin-group-icons@1.6.3(patch_hash=771e35a6827c2547da230d52d3b7032b1d1d75926162c95384f77e5528659991)(@types/node@24.3.0)(esbuild@0.25.9)(jiti@1.21.7)(markdown-it@14.1.0)(yaml@2.8.1): dependencies: '@iconify-json/logos': 1.2.9 '@iconify-json/vscode-icons': 1.2.30 diff --git a/pnpm-workspace.yaml b/pnpm-workspace.yaml index eb3783b5..a75761ba 100644 --- a/pnpm-workspace.yaml +++ b/pnpm-workspace.yaml @@ -14,6 +14,7 @@ overrides: patchedDependencies: '@types/mdurl@2.0.0': patches/@types__mdurl@2.0.0.patch markdown-it-anchor@9.2.0: patches/markdown-it-anchor@9.2.0.patch + vitepress-plugin-group-icons: patches/vitepress-plugin-group-icons.patch autoInstallPeers: false shellEmulator: true