From bf67a219365d63c9430d4935056752859eaeaa8f Mon Sep 17 00:00:00 2001 From: Matt Mayer <152770+matthewmayer@users.noreply.github.com> Date: Fri, 21 Apr 2023 01:44:26 +0700 Subject: docs: strikethrough deprecated methods on api index (#2067) --- docs/api/ApiIndex.vue | 10 +++++++++- docs/api/api-types.ts | 1 + 2 files changed, 10 insertions(+), 1 deletion(-) (limited to 'docs/api') 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));
@@ -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; } /** -- cgit v1.2.3