code: function registerLink(doclet) {
    var url = helper.createLink(doclet);
    helper.registerLink(doclet.longname, url);
    doclet.rstLink = url.substr(0, url.length - helper.fileExtension.length);
  
    // Parent link
    if (!doclet.memberof) {
      return;
    }
    var parent;
    parent = helper.find(context.data, {longname: doclet.memberof});
    if (parent && parent.length > 0) {
      doclet.parentRstLink = parent[0].rstLink;
    }
    // Reference code
    doclet.rstReference = doclet.parentRstLink + '.' + doclet.name;
  }
docs: Add a link to the link registry.
  @param  {object} doclet the doclet to create a link for