Skip to content

Commit 4c596ac

Browse files
authored
Merge pull request #12146 from hasezoey/docsDeprecated
docs(api_split): add basic DEPRECATED output
2 parents d2d0c01 + 5f86151 commit 4c596ac

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

docs/api_split.pug

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,8 @@ block content
5050
h3(id=prop.anchorId)
5151
a(href='#' + prop.anchorId)
5252
| #{prop.string}
53+
if prop.deprecated
54+
<span class="deprecated">~DEPRECATED~</span>
5355
if prop.param != null
5456
h5 Parameters
5557
ul.params

docs/css/api.css

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -155,3 +155,7 @@ hr.separate-api {
155155
text-transform: uppercase;
156156
letter-spacing: .2px;
157157
}
158+
159+
.deprecated {
160+
color: #ff0000;
161+
}

0 commit comments

Comments
 (0)