aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFabio Berger <me@fabioberger.com>2018-03-19 01:43:38 +0800
committerFabio Berger <me@fabioberger.com>2018-03-19 01:43:38 +0800
commit4941ffd354a7bbc4fb48cd66acd6db1e36d5ed87 (patch)
treeb9f674aa9d6689dae60166487f3de4a49e9bf627
parentaa8a3ee0555c5870f1bfde3b2acf365e8f111001 (diff)
downloaddexon-sol-tools-4941ffd354a7bbc4fb48cd66acd6db1e36d5ed87.tar
dexon-sol-tools-4941ffd354a7bbc4fb48cd66acd6db1e36d5ed87.tar.gz
dexon-sol-tools-4941ffd354a7bbc4fb48cd66acd6db1e36d5ed87.tar.bz2
dexon-sol-tools-4941ffd354a7bbc4fb48cd66acd6db1e36d5ed87.tar.lz
dexon-sol-tools-4941ffd354a7bbc4fb48cd66acd6db1e36d5ed87.tar.xz
dexon-sol-tools-4941ffd354a7bbc4fb48cd66acd6db1e36d5ed87.tar.zst
dexon-sol-tools-4941ffd354a7bbc4fb48cd66acd6db1e36d5ed87.zip
Add functions to submenu in sidebar
-rw-r--r--packages/react-docs/src/docs_info.ts3
1 files changed, 3 insertions, 0 deletions
diff --git a/packages/react-docs/src/docs_info.ts b/packages/react-docs/src/docs_info.ts
index 68bddef06..0030568a1 100644
--- a/packages/react-docs/src/docs_info.ts
+++ b/packages/react-docs/src/docs_info.ts
@@ -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;