scripts/documentation.js
function _appendActionToUpdaters(node, actionMap) {
  if (node.members && node.members.static.length) {
    node.members.static = node.members.static.map(nd => _appendActionToUpdaters(nd, actionMap));
  }

  const updater = node.name;

  const action = Object.values(actionMap)
    .find(action => action.updaters.find(up => up.name === updater));

  if (!action) {
    return node;
  }
  const actionName = action.name;

  const mdContent = `
  * __Action__: [${BT}${actionName}${BT}](../actions/actions.md#${actionName.toLowerCase()})
  `;

  return _appendListToDescription(node, mdContent);
}
function _appendActionToUpdaters(node, actionMap) {
  if (node.members && node.members.static.length) {
    node.members.static = node.members.static.map(nd => _appendActionToUpdaters(nd, actionMap));
  }

  const updater = node.name;

  const action = Object.values(actionMap)
    .find(action => action.updaters.find(up => up.name === updater));

  if (!action) {
    return node;
  }
  const actionName = action.name;

  const mdContent = `
  * __Action__: [${BT}${actionName}${BT}](../actions/actions.md#${actionName.toLowerCase()})
  `;

  return _appendListToDescription(node, mdContent);
}
function _appendActionToUpdaters ( node , actionMap ) { if ( node . members && node . members . static . length ) { node . members . static = node . members . static . map ( nd => _appendActionToUpdaters ( nd , actionMap ) ) ; } const updater = node . name ; const action = Object . values ( actionMap ) . find ( action => action . updaters . find ( up => up . name === updater ) ) ; if ( ! action ) { return node ; } const actionName = action . name ; const mdContent = ` ${ BT } ${ actionName } ${ BT } ${ actionName . toLowerCase ( ) } ` ; return _appendListToDescription ( node , mdContent ) ; }
Add action to linked updaters
@param {Object} node
@param {Object} actionMap
Add action to linked updaters