mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-07 13:22:07 -05:00
jsdoc template: cleanup publish.js a bit.
This commit is contained in:
parent
3d7ddb26bf
commit
41c7ae6a90
1 changed files with 5 additions and 5 deletions
|
@ -80,7 +80,7 @@ function publish(symbolSet) {
|
||||||
var html = publish.templates.html.process({
|
var html = publish.templates.html.process({
|
||||||
content: publish.templates._class.process(symbol),
|
content: publish.templates._class.process(symbol),
|
||||||
title: symbol.alias
|
title: symbol.alias
|
||||||
})
|
});
|
||||||
var name = ((JSDOC.opt.u)? Link.filemap[symbol.alias] : symbol.alias)
|
var name = ((JSDOC.opt.u)? Link.filemap[symbol.alias] : symbol.alias)
|
||||||
+ publish.conf.ext;
|
+ publish.conf.ext;
|
||||||
IO.saveFile(publish.conf.packagesDir, name, html);
|
IO.saveFile(publish.conf.packagesDir, name, html);
|
||||||
|
@ -116,8 +116,8 @@ var Operator = new function() {
|
||||||
getOperator: function(symbol) {
|
getOperator: function(symbol) {
|
||||||
return operators[symbol.name.replace(/\^[0-9]$/,'')];
|
return operators[symbol.name.replace(/\^[0-9]$/,'')];
|
||||||
}
|
}
|
||||||
}
|
};
|
||||||
}
|
};
|
||||||
|
|
||||||
var Utils = {
|
var Utils = {
|
||||||
getSymbolId: function(symbol) {
|
getSymbolId: function(symbol) {
|
||||||
|
@ -146,7 +146,7 @@ var Utils = {
|
||||||
},
|
},
|
||||||
|
|
||||||
isaClass: function(symbol) {
|
isaClass: function(symbol) {
|
||||||
return symbol.is('CONSTRUCTOR') || symbol.isNamespace
|
return symbol.is('CONSTRUCTOR') || symbol.isNamespace;
|
||||||
},
|
},
|
||||||
|
|
||||||
parseExamples: function(symbol) {
|
parseExamples: function(symbol) {
|
||||||
|
@ -261,7 +261,7 @@ var Utils = {
|
||||||
if (a > b) return 1;
|
if (a > b) return 1;
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
}
|
};
|
||||||
},
|
},
|
||||||
|
|
||||||
/** Pull in the contents of an external file at the given path. */
|
/** Pull in the contents of an external file at the given path. */
|
||||||
|
|
Loading…
Reference in a new issue