File tree Expand file tree Collapse file tree 3 files changed +35
-1
lines changed Expand file tree Collapse file tree 3 files changed +35
-1
lines changed Original file line number Diff line number Diff line change @@ -162,6 +162,27 @@ h3:hover .anchor,
162
162
border-radius : 0.5em ;
163
163
}
164
164
165
+ .deprecation-box {
166
+ display : flex;
167
+ align-items : center;
168
+ gap : 0.75rem ;
169
+ padding : 0.75rem 1rem ;
170
+ margin : 1rem 0 ;
171
+ background : # 8b5a2b ;
172
+ border-left : 5px solid # f59e0b ;
173
+ border-right : 1px solid # f59e0b ;
174
+ border-top : 1px solid # f59e0b ;
175
+ border-bottom : 1px solid # f59e0b ;
176
+ border-radius : 0.5em ;
177
+ }
178
+
179
+ .toc-deprecated {
180
+ color : # f59e0b ;
181
+ font-size : 0.8em ;
182
+ font-weight : normal;
183
+ margin-left : 0.5em ;
184
+ }
185
+
165
186
a : has (code ) {
166
187
text-decoration : none;
167
188
}
Original file line number Diff line number Diff line change 18
18
</ div >
19
19
{% endif %}
20
20
21
+ {% if item.deprecation %}
22
+ < div class ="deprecation-box ">
23
+ < span > < strong > ⚠️ Deprecated:</ strong > {{ item.deprecation }}</ span >
24
+ </ div >
25
+ {% endif %}
26
+
21
27
{{ item.comment | markdown | safe }}
22
28
23
29
{% if section_id == "enums" %}
Original file line number Diff line number Diff line change 16
16
< div class ="toc ">
17
17
< ul >
18
18
{% for item in items %}
19
- < li > < a href ="#{{ item.anchor }} "> {{ item.name }}</ a > </ li >
19
+ < li >
20
+ < a href ="#{{ item.anchor }} ">
21
+ {{ item.name }}
22
+ </ a >
23
+ {% if item.deprecation %}
24
+ < span class ="toc-deprecated "> ⚠️ deprecated</ span >
25
+ {% endif %}
26
+ </ li >
20
27
{% endfor %}
21
28
</ ul >
22
29
</ div >
You can’t perform that action at this time.
0 commit comments