Customize deprecated sections
When using the option printTypeOptions.deprecated
set to group
, the rendering can be customized using the CSS class .deprecated
.
Adding a warning
emoji ⚠️ is done with a quick tweak of Docusaurus CSS.
/src/css/custom.css
.deprecated a::after,
span.deprecated::after {
content: "⚠️";
padding-left: 4px !important;
transform: none !important;
}
.deprecated {
padding-top: 1rem;
}
The above CSS will render the deprecated sections as the following