Skip to content

Fix API links for headings with badges #1458

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jan 25, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions .vitepress/theme/styles/badges.css
Original file line number Diff line number Diff line change
Expand Up @@ -22,3 +22,7 @@
.vt-badge.experimental:before {
content: 'Experimental';
}

.vt-badge[data-text]:before {
content: attr(data-text);
}
2 changes: 1 addition & 1 deletion src/api/built-in-directives.md
Original file line number Diff line number Diff line change
Expand Up @@ -463,7 +463,7 @@ Render the element and component once only, and skip future updates.
- [Data Binding Syntax - interpolations](/guide/essentials/template-syntax.html#text)
- [v-memo](#v-memo)

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

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

Expand Down
2 changes: 1 addition & 1 deletion src/api/composition-api-lifecycle.md
Original file line number Diff line number Diff line change
Expand Up @@ -297,7 +297,7 @@ Registers a callback to be called after the component instance is removed from t

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

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

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

Expand Down
2 changes: 1 addition & 1 deletion src/api/options-lifecycle.md
Original file line number Diff line number Diff line change
Expand Up @@ -286,7 +286,7 @@ Called after the component instance is removed from the DOM as part of a tree ca

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

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

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

Expand Down