Change to CSS on default template to hide the variation name, when displaying multiple symbols with the same name. Added test case file with example of more complex variations usage.

This commit is contained in:
Michael Mathews 2011-08-29 20:52:40 +01:00
parent 373ad7b8da
commit ce3671cb43
3 changed files with 39 additions and 3 deletions

View File

@ -45,8 +45,8 @@ section
margin-right: 240px;
}
sup {
color: #aaa;
.variation {
display: none;
}
nav

View File

@ -35,7 +35,7 @@
}
if (doc.variation) {
print('<sup>'+doc.variation+'</sup>');
print('<sup class="variation">'+doc.variation+'</sup>');
}
?></h2>

36
test/cases/variations2.js Normal file
View File

@ -0,0 +1,36 @@
/**
* Describe the namespace.
* @namespace dollar(1)
*/
/**
* Describe the constructor.
* @constructor dollar(2)
* @param {object} [options]
*/
/**
* Describe the global function.
* @function dollar(3)
* @param {string} selector - The selector string.
*/
dollar = function(a, b) {
};
/**
* Describe the instance method.
* @instance
* @function empty
* @memberof dollar(2)
*/
dollar.prototype.empty = function() {
}
/**
* Describe the static method.
* @function klass
* @memberof dollar(1)
* @param {string} name
*/
dollar.klass = function(name) {
};