How to use the jsdoc/util/templateHelper.getAttribs function in jsdoc

To help you get started, we’ve selected a few jsdoc examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github synacor / frameworkless / jsdoc-template / publish.js View on Github external
function addAttribs(f) {
    var attribs = helper.getAttribs(f);

    f.attribs = '<span class="type-signature">' + htmlsafe(attribs.length ?
        // we want the template output to say 'abstract', not 'virtual'
        '&lt;' + attribs.join(', ').replace('virtual', 'abstract') + '&gt; ' : '') + '</span>';
}
github jsdoc / jsdoc / test / specs / jsdoc / util / templateHelper.js View on Github external
function getAttribs() {
                return helper.getAttribs();
            }
github deebloo / generator-angular-blueprint / generators / app / templates / ES6 / doc / template / publish.js View on Github external
f.returns.forEach(function(item) {
            helper.getAttribs(item).forEach(function(attrib) {
                if (attribs.indexOf(attrib) === -1) {
                    attribs.push(attrib);
                }
            });
        });
github camptocamp / ngeo / jsdoc / template / publish.js View on Github external
function addAttribs(f) {
    let attribs = helper.getAttribs(f);
    let attribsString = buildAttribsString(attribs);

    f.attribs = util.format('<span class="type-signature">%s</span>', attribsString);
}
github openlayers / openlayers / apidoc / template / publish.js View on Github external
function addAttribs(f) {
    var attribs = helper.getAttribs(f);

    f.attribs = '<span class="type-signature">'+htmlsafe(attribs.length? '&lt;'+attribs.join(', ')+'&gt; ' : '')+'</span>';
}
github Rebelizer / pellet / docs-jsdoc-temp / publish.js View on Github external
function addAttribs(f) {
  var attribs = helper.getAttribs(f);

  if (attribs.length) {
    f.attribs = '<span class="type-signature ' + (attribs[0] === 'static' ? 'static' : '') + '">' + htmlsafe(attribs.length ? attribs.join(',') : '') + '</span>';
  }
}
github camptocamp / ngeo / jsdoc / template / publish.js View on Github external
function addAttribs(f) {
    var attribs = helper.getAttribs(f);
    var attribsString = buildAttribsString(attribs);

    f.attribs = util.format('<span class="type-signature">%s</span>', attribsString);
}
github GooTechnologies / goojs / tools / jsdoc-template / publish.js View on Github external
function addAttribs(f) {
    var attribs = helper.getAttribs(f);

    f.attribs = '<span class="type-signature">'+htmlsafe(attribs.length? '&lt;'+attribs.join(', ')+'&gt; ' : '')+'</span>';
}
github IntelRealSense / librealsense / wrappers / nodejs / doc / jsdoc-template / publish.js View on Github external
function addAttribs(f) {
  let attribs = helper.getAttribs(f);
  let attribsString = buildAttribsString(attribs);

  f.attribs = util.format('<span class="type-signature">%s</span>', attribsString);
}
github panzerdp / voca / jsdoc / template / publish.js View on Github external
function addAttribs(f) {
  //change
  return;
  var attribs = helper.getAttribs(f);
  var attribsString = buildAttribsString(attribs);

  f.attribs = util.format('<span class="type-signature">%s</span>', attribsString);
}