Sha256: e6eeac3b0358b6c21d54686151843f5b0fc9cb5c54e8d1ff71455277b8b66c71

Contents?: true

Size: 1.4 KB

Versions: 38

Compression:

Stored size: 1.4 KB

Contents

/** Called automatically by JsDoc Toolkit. */
function publish(symbolSet) {
	publish.conf = {  // trailing slash expected for dirs
		ext:         ".html",
		outDir:      JSDOC.opt.d || SYS.pwd+"../out/jsdoc/",
		templatesDir: JSDOC.opt.t || SYS.pwd+"../templates/jsdoc/",
		symbolsDir:  "symbols/",
		srcDir:      "symbols/src/"
	};
	
	// is source output is suppressed, just display the links to the source file
	if (JSDOC.opt.s && defined(Link) && Link.prototype._makeSrcLink) {
		Link.prototype._makeSrcLink = function(srcFilePath) {
			return "<"+srcFilePath+">";
		}
	}
	
	// used to allow Link to check the details of things being linked to
	Link.symbolSet = symbolSet;

	// create the required templates
	try {
		var classesTemplate = new JSDOC.JsPlate(publish.conf.templatesDir+"all-classes.tmpl");
	}
	catch(e) {
		print("Couldn't create the required templates: "+e);
		quit();
	}
	
	// some ustility filters
	function hasNoParent($) {return (!$.memberOf);}
	function isaFile($) {return ($.is("FILE"));}
	function isaClass($) {return ($.is("CONSTRUCTOR") || $.isNamespace) && '_global_'!=$.alias;}
	
	// get an array version of the symbolset, useful for filtering
	var symbols = symbolSet.toArray();
	
 	// get a list of all the classes in the symbolset
 	var classes = symbols.filter(isaClass);
	var classesIndex = classesTemplate.process(classes);
	
	IO.saveFile(publish.conf.outDir, 'classes.js', classesIndex);
}

Version data entries

38 entries across 38 versions & 1 rubygems

Version Path
distil-0.14.5.a vendor/jsdoc-extras/templates/classlist/publish.js
distil-0.14.4 vendor/jsdoc-extras/templates/classlist/publish.js
distil-0.14.3 vendor/jsdoc-extras/templates/classlist/publish.js
distil-0.14.2 vendor/jsdoc-extras/templates/classlist/publish.js
distil-0.14.2.a vendor/jsdoc-extras/templates/classlist/publish.js
distil-0.14.1 vendor/jsdoc-extras/templates/classlist/publish.js
distil-0.14.1.a vendor/jsdoc-extras/templates/classlist/publish.js
distil-0.14.0 vendor/jsdoc-extras/templates/classlist/publish.js
distil-0.14.0.i vendor/jsdoc-extras/templates/classlist/publish.js
distil-0.14.0.h vendor/jsdoc-extras/templates/classlist/publish.js
distil-0.14.0.g vendor/jsdoc-extras/templates/classlist/publish.js
distil-0.14.0.d vendor/jsdoc-extras/templates/classlist/publish.js
distil-0.14.0.c vendor/jsdoc-extras/templates/classlist/publish.js
distil-0.14.0.b vendor/jsdoc-extras/templates/classlist/publish.js
distil-0.13.6 vendor/jsdoc-extras/templates/classlist/publish.js
distil-0.13.5 vendor/jsdoc-extras/templates/classlist/publish.js
distil-0.13.4 vendor/jsdoc-extras/templates/classlist/publish.js
distil-0.13.3 vendor/jsdoc-extras/templates/classlist/publish.js
distil-0.13.2 vendor/jsdoc-extras/templates/classlist/publish.js
distil-0.13.1 vendor/jsdoc-extras/templates/classlist/publish.js