mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-19 06:00:56 -05:00
JSDocs: Rename _global_ to Global Scope in templates too.
This commit is contained in:
parent
d28c354a6d
commit
acce38b745
3 changed files with 7 additions and 4 deletions
|
@ -13,7 +13,8 @@ function publish(symbolSet) {
|
|||
staticDir: (JSDOC.opt.t || SYS.pwd + '../templates/jsdoc/') + 'static/',
|
||||
symbolsDir: renderMode == 'docs' ? 'packages/' : 'paper/',
|
||||
srcDir: 'symbols/src/',
|
||||
renderMode: renderMode
|
||||
renderMode: renderMode,
|
||||
globalName: 'Global Scope'
|
||||
};
|
||||
publish.conf.packagesDir = publish.conf.outDir + publish.conf.symbolsDir;
|
||||
|
||||
|
|
|
@ -157,11 +157,13 @@ var Render = new function() {
|
|||
param.operators[name].push(operator);
|
||||
}
|
||||
}
|
||||
var name = param.name == '_global_'
|
||||
? publish.conf.globalName : param.name;
|
||||
publish.curClass = {
|
||||
name: symbol.alias,
|
||||
name: name,
|
||||
index: {
|
||||
'class': {
|
||||
title: param.name,
|
||||
title: name,
|
||||
text: param.description
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
<div class="reference-class">
|
||||
<if test="publish.conf.renderMode == 'docs'"><h1>{+ data.name +}</h1></if>
|
||||
<if test="publish.conf.renderMode == 'docs'"><h1>{+ data.name == '_global_' ? publish.conf.globalName : data.name +}</h1></if>
|
||||
<if test="data.inheritedLinks">
|
||||
<p> Extends {+ data.inheritedLinks +}</p>
|
||||
</if>
|
||||
|
|
Loading…
Reference in a new issue