diff --git a/website/docusaurus.config.js b/website/docusaurus.config.js
index a7931b746..f286b3e65 100644
--- a/website/docusaurus.config.js
+++ b/website/docusaurus.config.js
@@ -96,6 +96,7 @@ module.exports = {
'important',
'caution',
'impact',
+ 'deprecated'
],
},
},
@@ -114,6 +115,7 @@ module.exports = {
'important',
'caution',
'impact',
+ 'deprecated'
],
},
},
diff --git a/website/src/theme/Admonition/index.js b/website/src/theme/Admonition/index.js
index 8ddb8189c..37ad748e7 100644
--- a/website/src/theme/Admonition/index.js
+++ b/website/src/theme/Admonition/index.js
@@ -61,6 +61,28 @@ function ImpactIcon() {
)
}
+
+function DeprecatedIcon() {
+ return (
+
+ )
+}
+
// eslint-disable-next-line @typescript-eslint/consistent-indexed-object-style
const AdmonitionConfigs = {
note: {
@@ -129,6 +151,17 @@ const AdmonitionConfigs = {
),
},
+ deprecated: {
+ infimaClassName: 'deprecated',
+ iconComponent: DeprecatedIcon,
+ label: (
+
+ Deprecated
+
+ ),
+ },
};
// Legacy aliases, undocumented but kept for retro-compatibility
const aliases = {
diff --git a/website/static/css/custom.css b/website/static/css/custom.css
index 22a637c08..f7d0b91cd 100644
--- a/website/static/css/custom.css
+++ b/website/static/css/custom.css
@@ -232,6 +232,12 @@ body {
--ifm-alert-foreground-color: rgb(66,69,73);
--ifm-alert-border-color: #FF6121;
}
+.alert--deprecated {
+ --ifm-alert-background-color: var(--ifm-color-danger-contrast-background);
+ --ifm-alert-background-color-highlight: rgba(250, 56, 62, 0.15);
+ --ifm-alert-foreground-color: var(--ifm-color-danger-contrast-foreground);
+ --ifm-alert-border-color: var(--ifm-color-danger-dark);
+}
.button.button--secondary {
color: var(--wm-secondary-text-color);
background-color:var(--wm-secondary-bg-color);