fix(theme): twoslash comment error (#881)

* fix(theme): fix incorrect auto-sidebar-link parse

* fix(theme): twoslash comment error
This commit is contained in:
pengzhanbo 2026-04-02 16:38:33 +08:00 committed by GitHub
parent 7febfbf237
commit aede6f5d87
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
5 changed files with 8 additions and 0 deletions

View File

@ -82,6 +82,7 @@ interface SearchBoxLocale {
### 启用 ### 启用
```ts title=".vuepress/config.ts" twoslash ```ts title=".vuepress/config.ts" twoslash
// @errors: 2353
import { defineUserConfig } from 'vuepress' import { defineUserConfig } from 'vuepress'
import { plumeTheme } from 'vuepress-theme-plume' import { plumeTheme } from 'vuepress-theme-plume'

View File

@ -13,6 +13,7 @@ permalink: /config/watermark/
## 使用 ## 使用
```ts title=".vuepress/config.ts" twoslash ```ts title=".vuepress/config.ts" twoslash
// @errors: 7006
import { defineUserConfig } from 'vuepress' import { defineUserConfig } from 'vuepress'
import { plumeTheme } from 'vuepress-theme-plume' import { plumeTheme } from 'vuepress-theme-plume'

View File

@ -82,6 +82,7 @@ Refer to [Algolia DocSearch Reference](/guide/features/content-search/#algolia-d
### Enable ### Enable
```ts title=".vuepress/config.ts" twoslash ```ts title=".vuepress/config.ts" twoslash
// @errors: 2353
import { defineUserConfig } from 'vuepress' import { defineUserConfig } from 'vuepress'
import { plumeTheme } from 'vuepress-theme-plume' import { plumeTheme } from 'vuepress-theme-plume'

View File

@ -13,6 +13,7 @@ Related plugin: [@vuepress/plugin-watermark](https://ecosystem.vuejs.press/zh/pl
## Usage ## Usage
```ts title=".vuepress/config.ts" twoslash ```ts title=".vuepress/config.ts" twoslash
// @errors: 7006
import { defineUserConfig } from 'vuepress' import { defineUserConfig } from 'vuepress'
import { plumeTheme } from 'vuepress-theme-plume' import { plumeTheme } from 'vuepress-theme-plume'

View File

@ -26,3 +26,7 @@
--twoslash-matched-color: var(--vp-c-brand-1); --twoslash-matched-color: var(--vp-c-brand-1);
--twoslash-unmatched-color: var(--vp-c-text-2); --twoslash-unmatched-color: var(--vp-c-text-2);
} }
.v-popper__popper[data-popper-placement^="bottom"] .v-popper__arrow-inner {
top: -4.5px !important;
}