Skip to content

Commit d02a4f7

Browse files
committed
refactor: simplify href construction in API index links
1 parent dfc58e1 commit d02a4f7

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

docs/api/ApiIndex.vue

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -69,13 +69,8 @@ const filtered = computed(() => {
6969
</h3>
7070
<ul>
7171
<li v-for="h of item.headers" :key="h.anchor">
72-
<!-- TODO @ST-DDT 2024-09-25: Remove this in v10 -->
7372
<a
74-
:href="
75-
item.link +
76-
'#' +
77-
(h.anchor === 'userName' ? 'username-1' : slugify(h.anchor))
78-
"
73+
:href="item.link + '#' + slugify(h.anchor)"
7974
:class="{ deprecated: h.deprecated }"
8075
>{{ h.text }}</a
8176
>

0 commit comments

Comments
 (0)