Ox.DocPage: change name of tests section to Tests; minor cleanup
This commit is contained in:
parent
dfe2f77615
commit
01f0fc13fd
1 changed files with 2 additions and 4 deletions
|
@ -174,9 +174,7 @@ Ox.DocPage = function(options, self) {
|
||||||
Ox.contains(section, 'inherited')
|
Ox.contains(section, 'inherited')
|
||||||
? section[0].toUpperCase() + section.slice(1)
|
? section[0].toUpperCase() + section.slice(1)
|
||||||
: Ox.toTitleCase(
|
: Ox.toTitleCase(
|
||||||
section == 'returns' ? 'usage'
|
section == 'returns' ? 'usage' : section
|
||||||
: section == 'tests' ? 'examples'
|
|
||||||
: section
|
|
||||||
)
|
)
|
||||||
) + '</span>')
|
) + '</span>')
|
||||||
);
|
);
|
||||||
|
@ -189,7 +187,7 @@ Ox.DocPage = function(options, self) {
|
||||||
'<code><b>> '
|
'<code><b>> '
|
||||||
+ Ox.encodeHTMLEntities(test.statement)
|
+ Ox.encodeHTMLEntities(test.statement)
|
||||||
.replace(/ /g, ' ')
|
.replace(/ /g, ' ')
|
||||||
.replace(/\n/g, '<br/>\n ')
|
.replace(/\n/g, '<br>\n ')
|
||||||
+ '</b></code>'
|
+ '</b></code>'
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
|
|
Loading…
Reference in a new issue