mirror of
https://github.com/jsdoc/jsdoc.git
synced 2025-12-08 19:46:11 +00:00
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:
parent
373ad7b8da
commit
ce3671cb43
@ -45,8 +45,8 @@ section
|
||||
margin-right: 240px;
|
||||
}
|
||||
|
||||
sup {
|
||||
color: #aaa;
|
||||
.variation {
|
||||
display: none;
|
||||
}
|
||||
|
||||
nav
|
||||
|
||||
@ -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
36
test/cases/variations2.js
Normal 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) {
|
||||
};
|
||||
Loading…
x
Reference in New Issue
Block a user