Sha256: 45cbeb52fcc7f79a727a917386d334a784e1fd6c0bad9e64d0b0cabcd28d13b2

Contents?: true

Size: 1.25 KB

Versions: 12

Compression:

Stored size: 1.25 KB

Contents

{!
function keys(o) {
	var keys = [];
	for (var k in o) { keys.push(k); }
	return keys;
}

function groupName(path) {
  var parts = path.split('/') ;
  
  var rootIndex = parts.indexOf('frameworks') ;
  if (rootIndex < 0) rootIndex = parts.indexOf('clients') ;
  
  if (rootIndex < 0) {
    return parts[parts.length - 2] ;
    
  } else {
    return parts.slice(rootIndex+2, parts.length-1).join('/') ;
  }
};

function getSymbols(className, thisClass) {
  var ret = [className.toLowerCase()] ;
  
  var f = function(data) {
    if (data && data.length) {
      var idx = data.length ;
      while(--idx >= 0) { 
        var name = data[idx].name ;
        if (name) ret.push(name.toLowerCase()) ;
      }
    }
  };
  
  f(thisClass.properties) ;
  f(thisClass.methods) ;
  
  return ret.join(' ') ;
};

!}
{ records: [<for each="classname" in="keys(data).sort()">
  { "type": "Doc", 
    "guid": "{+classname+}", 
    "title": "{+classname+}", 
    "url": "{+data[classname][0].docs+}", 
    "group": "{+groupName(data[classname][0].file.path)+}", 
    "symbols": "{+getSymbols(classname, data[classname][0])+}",
    "path": "{+data[classname][0].file.path+}"
  },</for>
  { "type": "Doc", 
    "guid": "_GLOBALS", 
    "title": "GLOBALS", 
    "url": "globals.html" 
  }]
}

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
sproutcore-0.9.11 jsdoc/templates/sproutcore/index.tmpl
sproutcore-0.9.10 jsdoc/templates/sproutcore/index.tmpl
sproutcore-0.9.12 jsdoc/templates/sproutcore/index.tmpl
sproutcore-0.9.13 jsdoc/templates/sproutcore/index.tmpl
sproutcore-0.9.2 jsdoc/templates/sproutcore/index.tmpl
sproutcore-0.9.3 jsdoc/templates/sproutcore/index.tmpl
sproutcore-0.9.4 jsdoc/templates/sproutcore/index.tmpl
sproutcore-0.9.5 jsdoc/templates/sproutcore/index.tmpl
sproutcore-0.9.8 jsdoc/templates/sproutcore/index.tmpl
sproutcore-0.9.6 jsdoc/templates/sproutcore/index.tmpl
sproutcore-0.9.7 jsdoc/templates/sproutcore/index.tmpl
sproutcore-0.9.9 jsdoc/templates/sproutcore/index.tmpl