From aede6f5d87f836febb8e5bf9fba74ffad197a327 Mon Sep 17 00:00:00 2001 From: pengzhanbo Date: Thu, 2 Apr 2026 16:38:33 +0800 Subject: [PATCH] fix(theme): twoslash comment error (#881) * fix(theme): fix incorrect auto-sidebar-link parse * fix(theme): twoslash comment error --- docs/config/plugins/search.md | 1 + docs/config/plugins/watermark.md | 1 + docs/en/config/plugins/search.md | 1 + docs/en/config/plugins/watermark.md | 1 + theme/src/client/styles/twoslash.css | 4 ++++ 5 files changed, 8 insertions(+) diff --git a/docs/config/plugins/search.md b/docs/config/plugins/search.md index 579ec846..fc302b58 100644 --- a/docs/config/plugins/search.md +++ b/docs/config/plugins/search.md @@ -82,6 +82,7 @@ interface SearchBoxLocale { ### 启用 ```ts title=".vuepress/config.ts" twoslash +// @errors: 2353 import { defineUserConfig } from 'vuepress' import { plumeTheme } from 'vuepress-theme-plume' diff --git a/docs/config/plugins/watermark.md b/docs/config/plugins/watermark.md index 1188b6f2..08c7e8ed 100644 --- a/docs/config/plugins/watermark.md +++ b/docs/config/plugins/watermark.md @@ -13,6 +13,7 @@ permalink: /config/watermark/ ## 使用 ```ts title=".vuepress/config.ts" twoslash +// @errors: 7006 import { defineUserConfig } from 'vuepress' import { plumeTheme } from 'vuepress-theme-plume' diff --git a/docs/en/config/plugins/search.md b/docs/en/config/plugins/search.md index c5201eaa..0f50be45 100644 --- a/docs/en/config/plugins/search.md +++ b/docs/en/config/plugins/search.md @@ -82,6 +82,7 @@ Refer to [Algolia DocSearch Reference](/guide/features/content-search/#algolia-d ### Enable ```ts title=".vuepress/config.ts" twoslash +// @errors: 2353 import { defineUserConfig } from 'vuepress' import { plumeTheme } from 'vuepress-theme-plume' diff --git a/docs/en/config/plugins/watermark.md b/docs/en/config/plugins/watermark.md index 2b43aaf6..124a7be0 100644 --- a/docs/en/config/plugins/watermark.md +++ b/docs/en/config/plugins/watermark.md @@ -13,6 +13,7 @@ Related plugin: [@vuepress/plugin-watermark](https://ecosystem.vuejs.press/zh/pl ## Usage ```ts title=".vuepress/config.ts" twoslash +// @errors: 7006 import { defineUserConfig } from 'vuepress' import { plumeTheme } from 'vuepress-theme-plume' diff --git a/theme/src/client/styles/twoslash.css b/theme/src/client/styles/twoslash.css index a6c12266..cd6a7190 100644 --- a/theme/src/client/styles/twoslash.css +++ b/theme/src/client/styles/twoslash.css @@ -26,3 +26,7 @@ --twoslash-matched-color: var(--vp-c-brand-1); --twoslash-unmatched-color: var(--vp-c-text-2); } + +.v-popper__popper[data-popper-placement^="bottom"] .v-popper__arrow-inner { + top: -4.5px !important; +}