File tree 2 files changed +11
-3
lines changed
2 files changed +11
-3
lines changed Original file line number Diff line number Diff line change @@ -515,6 +515,14 @@ hr {
515
515
padding : 1px 3px ;
516
516
border-radius : 3px ;
517
517
}
518
+ # toc .stability_3 ::after {
519
+ background-color : var (--blue1 );
520
+ color : var (--white );
521
+ content : "legacy" ;
522
+ margin-left : .25rem ;
523
+ padding : 1px 3px ;
524
+ border-radius : 3px ;
525
+ }
518
526
519
527
# apicontent li {
520
528
margin-bottom : .5rem ;
Original file line number Diff line number Diff line change @@ -265,9 +265,9 @@ function preprocessElements({ filename }) {
265
265
const [ , prefix , number , explication ] =
266
266
text . value . match ( STABILITY_RE ) ;
267
267
268
- const isStabilityIndex =
269
- index - 2 === headingIndex || // General .
270
- index - 3 === headingIndex ; // With api_metadata block.
268
+ // Stability indices are never more than 3 nodes away from their
269
+ // heading .
270
+ const isStabilityIndex = index - headingIndex <= 3 ;
271
271
272
272
if ( heading && isStabilityIndex ) {
273
273
heading . stability = number ;
You can’t perform that action at this time.
0 commit comments