Skip to content

Commit 5e4558f

Browse files
committed
fix API links for headings with badges
1 parent 136eb3e commit 5e4558f

File tree

4 files changed

+7
-3
lines changed

4 files changed

+7
-3
lines changed

.vitepress/theme/styles/badges.css

+4
Original file line numberDiff line numberDiff line change
@@ -22,3 +22,7 @@
2222
.vt-badge.experimental:before {
2323
content: 'Experimental';
2424
}
25+
26+
.vt-badge[data-text]:before {
27+
content: attr(data-text);
28+
}

src/api/built-in-directives.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -463,7 +463,7 @@ Render the element and component once only, and skip future updates.
463463
- [Data Binding Syntax - interpolations](/guide/essentials/template-syntax.html#text)
464464
- [v-memo](#v-memo)
465465

466-
## v-memo <sup class="vt-badge">3.2+</sup>
466+
## v-memo <sup class="vt-badge" data-text="3.2+" />
467467

468468
- **Expects:** `any[]`
469469

src/api/composition-api-lifecycle.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -297,7 +297,7 @@ Registers a callback to be called after the component instance is removed from t
297297

298298
- **See also:** [Guide - Lifecycle of Cached Instance](/guide/built-ins/keep-alive.html#lifecycle-of-cached-instance)
299299

300-
## onServerPrefetch() <sup class="vt-badge">SSR only</sup>
300+
## onServerPrefetch() <sup class="vt-badge" data-text="SSR only" />
301301

302302
Registers a async function to be resolved before the component instance is to be rendered on the server.
303303

src/api/options-lifecycle.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -286,7 +286,7 @@ Called after the component instance is removed from the DOM as part of a tree ca
286286

287287
- **See also:** [Guide - Lifecycle of Cached Instance](/guide/built-ins/keep-alive.html#lifecycle-of-cached-instance)
288288

289-
## serverPrefetch <sup class="vt-badge">SSR only</sup>
289+
## serverPrefetch <sup class="vt-badge" data-text="SSR only" />
290290

291291
Async function to be resolved before the component instance is to be rendered on the server.
292292

0 commit comments

Comments
 (0)