scripts/documentation.js
function _cleanUpTOCChildren(node) {

  if (!Array.isArray(node.children)) {
    return node;
  }

  if (_isExampleOrParameterLink(node)) {
    return null;
  }

  const filteredChildren = node.children.reduce((accu, nd) => {
    accu.push(_cleanUpTOCChildren(nd));
    return accu;
  }, []).filter(n => n);

  if (!filteredChildren.length) {
    return null;
  }

  return {
    ...node,
    children: filteredChildren
  };
}
function _cleanUpTOCChildren(node) {

  if (!Array.isArray(node.children)) {
    return node;
  }

  if (_isExampleOrParameterLink(node)) {
    return null;
  }

  const filteredChildren = node.children.reduce((accu, nd) => {
    accu.push(_cleanUpTOCChildren(nd));
    return accu;
  }, []).filter(n => n);

  if (!filteredChildren.length) {
    return null;
  }

  return {
    ...node,
    children: filteredChildren
  };
}
function _cleanUpTOCChildren ( node ) { if ( ! Array . isArray ( node . children ) ) { return node ; } if ( _isExampleOrParameterLink ( node ) ) { return null ; } const filteredChildren = node . children . reduce ( ( accu , nd ) => { accu . push ( _cleanUpTOCChildren ( nd ) ) ; return accu ; } , [ ] ) . filter ( n => n ) ; if ( ! filteredChildren . length ) { return null ; } return { ... node , children : filteredChildren } ; }
Remove example and parameter link from TOC
Remove example and parameter link from TOC