libdoc: data types: do not show multiple usages from same keyword args
function linkArgs(container, dataTypes, usageName) {
container.forEach(function(keyword) {
+ let user = usageName || keyword.name
keyword.args.forEach(function (arg) {
arg.linked = arg.types.filter(function(value) {
return dataTypes.filter(function (dataType) {
if (dataType.name === value) {
- dataType.usage.push(usageName || keyword.name);
+ if (dataType.usage.indexOf(user) === -1) {
+ dataType.usage.push(user);
+ }
return true;
}
return false;
