Small doc fixes: remove duplicate types and add function array
This commit is contained in:
parent
4ca706d4e6
commit
ec582d6e46
@ -116,6 +116,7 @@ export const doxityUtils = {
|
||||
methods,
|
||||
properties,
|
||||
types: [],
|
||||
functions: [],
|
||||
events,
|
||||
};
|
||||
docAgnosticFormat[contractName] = docSection;
|
||||
|
@ -170,7 +170,11 @@ export const typeDocUtils = {
|
||||
sectionName,
|
||||
docsInfo.id,
|
||||
);
|
||||
docSection.types.push(customType);
|
||||
const seenTypeNames = _.map(docSection.types, t => t.name);
|
||||
const isUnseen = !_.includes(seenTypeNames, customType.name);
|
||||
if (isUnseen) {
|
||||
docSection.types.push(customType);
|
||||
}
|
||||
}
|
||||
break;
|
||||
|
||||
|
@ -122,7 +122,7 @@ export class NestedSidebarMenu extends React.Component<NestedSidebarMenuProps, N
|
||||
const name = `${menuItemName}-${entityName}`;
|
||||
const id = utils.getIdFromName(name);
|
||||
return (
|
||||
<li key={`menuItem-${entityName}`}>
|
||||
<li key={`menuSubsectionItem-${name}`}>
|
||||
<ScrollLink
|
||||
to={id}
|
||||
offset={0}
|
||||
|
Loading…
x
Reference in New Issue
Block a user