diff options
Diffstat (limited to 'docs/api')
| -rw-r--r-- | docs/api/ApiIndex.vue | 10 | ||||
| -rw-r--r-- | docs/api/api-types.ts | 1 |
2 files changed, 10 insertions, 1 deletions
diff --git a/docs/api/ApiIndex.vue b/docs/api/ApiIndex.vue index 53e89c49..608385b4 100644 --- a/docs/api/ApiIndex.vue +++ b/docs/api/ApiIndex.vue @@ -101,7 +101,11 @@ onUnmounted(() => window.removeEventListener('keydown', apiSearchFocusHandler)); </h3> <ul> <li v-for="h of item.headers" :key="h.anchor"> - <a :href="item.link + '#' + slugify(h.anchor)">{{ h.text }}</a> + <a + :href="item.link + '#' + slugify(h.anchor)" + :class="{ deprecated: h.deprecated }" + >{{ h.text }}</a + > </li> </ul> </div> @@ -166,6 +170,10 @@ h3 { transition: color 0.5s; } +.api-groups ul a.deprecated { + text-decoration: line-through; +} + .dark .api-groups ul a { font-weight: 400; } diff --git a/docs/api/api-types.ts b/docs/api/api-types.ts index f5dcd659..d8678f9d 100644 --- a/docs/api/api-types.ts +++ b/docs/api/api-types.ts @@ -6,6 +6,7 @@ export interface APIHeader { anchor: string; text: string; + deprecated: boolean; } /** |
