@@ -127,36 +127,52 @@ export function getSeeAlsoLinksForItem(theItem: any): SeeAlsoLinkGroup[] {
127
127
switch ( itemType ) {
128
128
case 'function' :
129
129
seeAlso = shared ?. see_also ?? client ?. see_also ?? server ?. see_also ?? [ ] ;
130
- addToSeeAlso = [ `functions:any:${ itemCategoryName } ` , `events:any:${ itemCategoryName } ` ] ;
130
+ addToSeeAlso = [
131
+ `functions:any:${ itemCategoryName } ` ,
132
+ `events:any:${ itemCategoryName } ` ,
133
+ `elements:any:${ itemCategoryName } ` ,
134
+ `article:Scripting_Functions` ,
135
+ ] ;
131
136
break ;
132
137
case 'event' :
133
138
seeAlso = see_also ?? [ ] ;
134
- addToSeeAlso = [ `events:any:${ itemCategoryName } ` , `functions:any:${ itemCategoryName } ` ] ;
139
+ addToSeeAlso = [
140
+ `events:any:${ itemCategoryName } ` ,
141
+ `functions:any:${ itemCategoryName } ` ,
142
+ `elements:any:${ itemCategoryName } ` ,
143
+ `article:Scripting_Events` ,
144
+ ] ;
135
145
break ;
136
146
case 'element' :
137
147
seeAlso = see_also ?? [ ] ;
138
148
const elementCategory = getElementCategory ( theItem ) ;
139
149
if ( elementCategory === 'GUI' ) {
140
150
// Show GUI functions, events and other GUI element types
151
+ // as well as the Element article
141
152
addToSeeAlso = [
142
153
`functions:any:${ elementCategory } ` ,
143
154
`events:any:${ elementCategory } ` ,
144
155
`elements:any:${ elementCategory } ` ,
156
+ `article:Element` ,
145
157
] ;
146
158
} else if ( elementCategory === 'General' ) {
147
159
// Also show generic Element functions and events if category is General
148
160
addToSeeAlso = [
149
161
`functions:any:${ niceName } ` ,
150
162
`events:any:${ niceName } ` ,
163
+ `elements:any:${ niceName } ` ,
151
164
`functions:any:Element` ,
152
165
`events:any:Element` ,
166
+ `article:Element` ,
153
167
] ;
154
168
}
155
169
else {
156
170
// Show all functions and events for the element type
171
+ // and the Element article
157
172
addToSeeAlso = [
158
173
`functions:any:${ niceName } ` ,
159
174
`events:any:${ niceName } ` ,
175
+ `article:Element` ,
160
176
] ;
161
177
}
162
178
break ;
0 commit comments