code: function(name, title, attrs){
  			if (!name) return (title || "");
  			name = name.replace('::', '.prototype.');
  			if (docMap[name]) {
  				var attrsArr = [];
  				for(var prop in attrs){
  					attrsArr.push(prop+"=\""+attrs[prop]+"\"")
  				}
  				return '<a href="' + docsFilename(name, config) + '" '+attrsArr.join(" ")+'>' + (title || name ) + '</a>';
  			} else {
  				return title || name || "";
  			}
  		}
docs: helper that creates a link to a docObject