File tree 1 file changed +8
-1
lines changed
1 file changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -941,6 +941,11 @@ const hasTag = page.hasTag;
941
941
const rtlLocales = [' ar' , ' he' , ' fa' ];
942
942
943
943
const pageList = await page .subpagesExpand (' /en-US/docs/Web/CSS' );
944
+
945
+ // Some functions are at depth two.
946
+ // Example: https://developer.mozilla.org/en-US/docs/Web/CSS/color_value/hsl
947
+ pageList .push (... pageList .map ((page ) => page .subpages ).flat ());
948
+
944
949
const standardPages = pageList .filter (page => ! hasTag (page, " Non-standard" ));
945
950
946
951
const groups = [];
@@ -986,7 +991,9 @@ for (const page of standardPages) {
986
991
}
987
992
}
988
993
989
- properties = properties .sort ((a , b ) => a .title .localeCompare (b .title ));
994
+ const sortByTitle = (a , b ) => a .title .localeCompare (b .title );
995
+ properties .sort (sortByTitle);
996
+ functions .sort (sortByTitle);
990
997
991
998
function smartLink (href , title , content , subpath ) {
992
999
let basepath = subpath;
You can’t perform that action at this time.
0 commit comments