File tree 2 files changed +3
-5
lines changed
packages/vuepress/vuepress-plugin-apidocs
2 files changed +3
-5
lines changed Original file line number Diff line number Diff line change 5
5
</h2 >
6
6
7
7
<div v-for =" (constant, index) in constants" :key =" constant.name" >
8
- <div class =" member-header" >
9
- <h4 :id =" constant.name.toLowerCase()" >
8
+ <div class =" member-header" :id = " `${constant.name.toLowerCase()}` " >
9
+ <h4 :id =" `constants_${ constant.name.toLowerCase()}` " >
10
10
<a :href =" `#${constant.name.toLowerCase()}`" class =" header-anchor" >#</a > {{constant.name}} <Badge v-if =" constant.deprecated" text =" DEPRECATED" type =" warn" />
11
11
</h4 >
12
12
<AvailabilityInfo :platforms =" constant.platforms" />
Original file line number Diff line number Diff line change @@ -117,9 +117,7 @@ class MetadataProcessor {
117
117
title : memberType . charAt ( 0 ) . toUpperCase ( ) + memberType . slice ( 1 ) ,
118
118
slug : memberType
119
119
} )
120
- if ( memberType !== 'constants' ) {
121
- this . additionalHeaders = this . additionalHeaders . concat ( headers )
122
- }
120
+ this . additionalHeaders = this . additionalHeaders . concat ( headers )
123
121
}
124
122
}
125
123
You can’t perform that action at this time.
0 commit comments