Add functions to submenu in sidebar

This commit is contained in:
Fabio Berger
2018-03-18 18:43:38 +01:00
parent aa8a3ee055
commit 4941ffd354

View File

@@ -97,6 +97,9 @@ export class DocsInfo {
const sortedMethodNames = _.sortBy(docSection.methods, 'name');
const methodNames = _.map(sortedMethodNames, m => m.name);
menuSubsectionsBySection[sectionName] = [...methodNames, ...eventNames];
const sortedFunctionNames = _.sortBy(docSection.functions, 'name');
const functionNames = _.map(sortedFunctionNames, m => m.name);
menuSubsectionsBySection[sectionName] = [...eventNames, ...functionNames, ...methodNames];
}
});
return menuSubsectionsBySection;