File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed
src/generators/legacy-html/utils Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -9,8 +9,9 @@ import { href } from '../../../utils/file.mjs';
99 * Generates the Stability Overview table based on the API metadata nodes.
1010 *
1111 * @param {Array<import('../../metadata/types').MetadataEntry> } headMetadata The API metadata nodes to be used for the Stability Overview
12+ * @param {Array<import('../../metadata/types').MetadataEntry } head The head API node
1213 */
13- const buildStabilityOverview = headMetadata => {
14+ const buildStabilityOverview = ( headMetadata , head ) => {
1415 const headNodesWithStability = headMetadata . filter ( entry => entry . stability ) ;
1516
1617 const mappedHeadNodesIntoTable = headNodesWithStability . map (
@@ -21,7 +22,7 @@ const buildStabilityOverview = headMetadata => {
2122 'td.module_stability' ,
2223 createElement (
2324 'a' ,
24- { href : `${ href ( path , headMetadata . path ) } .html` } ,
25+ { href : `${ href ( path , head . path ) } .html` } ,
2526 heading . data . name
2627 )
2728 ) ,
@@ -61,7 +62,7 @@ export default (headNodes, node) => {
6162 ( node . tags ?? [ ] ) . map ( tag => {
6263 switch ( tag ) {
6364 case 'STABILITY_OVERVIEW_SLOT_BEGIN' :
64- return buildStabilityOverview ( headNodes ) ;
65+ return buildStabilityOverview ( headNodes , node ) ;
6566 case 'STABILITY_OVERVIEW_SLOT_END' :
6667 return createTree ( 'root' ) ;
6768 default :
You can’t perform that action at this time.
0 commit comments