aboutsummaryrefslogtreecommitdiffstats
path: root/packages/react-docs
diff options
context:
space:
mode:
authorFabio Berger <me@fabioberger.com>2018-08-07 03:27:28 +0800
committerFabio Berger <me@fabioberger.com>2018-08-07 03:27:28 +0800
commitfdcb42d8e17f4f5f324dd644077a07cbd4be65c7 (patch)
tree246241c4cfbdc7167063d76a2f2f8d176fe0bce0 /packages/react-docs
parent4e6322beb55302e10770c4e16bf480e17bbf27e9 (diff)
downloaddexon-sol-tools-fdcb42d8e17f4f5f324dd644077a07cbd4be65c7.tar
dexon-sol-tools-fdcb42d8e17f4f5f324dd644077a07cbd4be65c7.tar.gz
dexon-sol-tools-fdcb42d8e17f4f5f324dd644077a07cbd4be65c7.tar.bz2
dexon-sol-tools-fdcb42d8e17f4f5f324dd644077a07cbd4be65c7.tar.lz
dexon-sol-tools-fdcb42d8e17f4f5f324dd644077a07cbd4be65c7.tar.xz
dexon-sol-tools-fdcb42d8e17f4f5f324dd644077a07cbd4be65c7.tar.zst
dexon-sol-tools-fdcb42d8e17f4f5f324dd644077a07cbd4be65c7.zip
Fix bug where we only rendered one TypeDoc JSON key per export, instead of all of them
Diffstat (limited to 'packages/react-docs')
-rw-r--r--packages/react-docs/src/utils/typedoc_utils.ts11
1 files changed, 7 insertions, 4 deletions
diff --git a/packages/react-docs/src/utils/typedoc_utils.ts b/packages/react-docs/src/utils/typedoc_utils.ts
index 01385c982..9ee1de2b4 100644
--- a/packages/react-docs/src/utils/typedoc_utils.ts
+++ b/packages/react-docs/src/utils/typedoc_utils.ts
@@ -60,14 +60,16 @@ export const typeDocUtils = {
},
convertToDocAgnosticFormat(generatedDocJson: GeneratedDocJson, docsInfo: DocsInfo): DocAgnosticFormat {
const exportPathOrder = generatedDocJson.metadata.exportPathOrder;
- const exportPathToTypedocName = generatedDocJson.metadata.exportPathToTypedocName;
+ const exportPathToTypedocNames = generatedDocJson.metadata.exportPathToTypedocNames;
const typeDocJson = generatedDocJson.typedocJson;
// TODO: Extract the non typeDoc exports, and render them somehow
const typeDocNameOrder = _.compact(
- _.map(exportPathOrder, exportPath => {
- return exportPathToTypedocName[exportPath];
- }),
+ _.flatten(
+ _.map(exportPathOrder, exportPath => {
+ return exportPathToTypedocNames[exportPath];
+ }),
+ ),
);
const docAgnosticFormat: DocAgnosticFormat = {};
@@ -121,6 +123,7 @@ export const typeDocUtils = {
});
});
if (!_.isEmpty(typeEntities)) {
+ console.log('typeEntities', typeEntities);
docsInfo.sections[constants.TYPES_SECTION_NAME] = constants.TYPES_SECTION_NAME;
docsInfo.menu[constants.TYPES_SECTION_NAME] = [constants.TYPES_SECTION_NAME];
const docSection = typeDocUtils._convertEntitiesToDocSection(