Sha256: 293b1b2f657c4c47b49969f1c4ad2cfea95ee0e555b71a3ac9c27c29eea17b0c
Contents?: true
Size: 1.26 KB
Versions: 3
Compression:
Stored size: 1.26 KB
Contents
JSDOC.PluginManager.registerPlugin( "JSDOC.tagSynonyms", { onDocCommentSrc: function(comment) { comment.src = comment.src.replace(/@methodOf\b/i, "@function\n@memberOf"); comment.src = comment.src.replace(/@fieldOf\b/i, "@field\n@memberOf"); }, onDocCommentTags: function(comment) { for (var i = 0, l = comment.tags.length; i < l; i++) { var title = comment.tags[i].title.toLowerCase(); var syn; if ((syn = JSDOC.tagSynonyms.synonyms["="+title])) { comment.tags[i].title = syn; } } } } ); new Namespace( "JSDOC.tagSynonyms", function() { JSDOC.tagSynonyms.synonyms = { "=member": "memberOf", "=memberof": "memberOf", "=description": "desc", "=exception": "throws", "=argument": "param", "=returns": "return", "=classdescription": "class", "=fileoverview": "overview", "=extends": "augments", "=base": "augments", "=projectdescription": "overview", "=classdescription": "class", "=link": "see", "=borrows": "inherits", "=scope": "lends", "=construct": "constructor", "=option": "config", "=opt": "config" } } );
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
jsdoc-rails-0.1 | jsdoc-toolkit/app/plugins/tagSynonyms.js |
jsdoc-rails-0.0.2 | jsdoc-toolkit/app/plugins/tagSynonyms.js |
jsdoc-rails-0.0.1 | jsdoc-toolkit/app/plugins/tagSynonyms.js |