From ce3671cb436d0618e3c1ad45d0bdb68ca26844b1 Mon Sep 17 00:00:00 2001 From: Michael Mathews Date: Mon, 29 Aug 2011 20:52:40 +0100 Subject: [PATCH] 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. --- .../default/static/styles/jsdoc-default.css | 4 +-- templates/default/tmpl/container.tmpl | 2 +- test/cases/variations2.js | 36 +++++++++++++++++++ 3 files changed, 39 insertions(+), 3 deletions(-) create mode 100644 test/cases/variations2.js diff --git a/templates/default/static/styles/jsdoc-default.css b/templates/default/static/styles/jsdoc-default.css index 8b1736a1..ad82e701 100644 --- a/templates/default/static/styles/jsdoc-default.css +++ b/templates/default/static/styles/jsdoc-default.css @@ -45,8 +45,8 @@ section margin-right: 240px; } -sup { - color: #aaa; +.variation { + display: none; } nav diff --git a/templates/default/tmpl/container.tmpl b/templates/default/tmpl/container.tmpl index 3884fdd7..e4f213d4 100644 --- a/templates/default/tmpl/container.tmpl +++ b/templates/default/tmpl/container.tmpl @@ -35,7 +35,7 @@ } if (doc.variation) { - print(''+doc.variation+''); + print(''+doc.variation+''); } ?> diff --git a/test/cases/variations2.js b/test/cases/variations2.js new file mode 100644 index 00000000..2105c463 --- /dev/null +++ b/test/cases/variations2.js @@ -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) { +};