diff options
author | Fabio Berger <me@fabioberger.com> | 2018-03-19 01:43:38 +0800 |
---|---|---|
committer | Fabio Berger <me@fabioberger.com> | 2018-03-19 01:43:38 +0800 |
commit | 4941ffd354a7bbc4fb48cd66acd6db1e36d5ed87 (patch) | |
tree | b9f674aa9d6689dae60166487f3de4a49e9bf627 /packages | |
parent | aa8a3ee0555c5870f1bfde3b2acf365e8f111001 (diff) | |
download | dexon-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
Diffstat (limited to 'packages')
-rw-r--r-- | packages/react-docs/src/docs_info.ts | 3 |
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; |