JSDocs: Rename _global_ to Global Scope in templates too.

This commit is contained in:
Jürg Lehni 2011-06-07 10:21:51 +01:00
parent d28c354a6d
commit acce38b745
3 changed files with 7 additions and 4 deletions

View file

@ -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;

View file

@ -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
}
}

View file

@ -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>