| Page 1 of 1 | [ 6 posts ] |
|
I would like to know is it necessary to follow a module pattern to generate a YUI API doc, like without using the @class tag.Since i am a newbie to this i started using this from yesterday only so please someone help me on this
Fo example my js file begins like this var somevariable=true; function foo(a1,a2) { some code } i would like to know how can i write a yui doc for such a file without using the class tag. Thanks in advance |
|
The yuiDoc does not read your code, it reads your doc comments, the ones starting with /** and all the @ arguments in them.
|
|
Ok....Then one more question for the code whatever i specified which tag i can use, if I use @method tag I am getting error like @method defined before @class, can anyone please suggest me like which tag will be proper.
Thanks Vijetha |
|
Actually i just wanted to know whether we able to write yuidoc for the procedural javascript code.
Thanks, Vijetha |
|
Yes you can. And the error message from your previous post is telling you what the problem is -- methods need to be associated with a class. If these functions do not belong to a class, define one anyway in a comment block above your methods (something like /** global functions @class GLOBAL **/).
|
|
@Adam :Thanks a lot, it is working
|
| Page 1 of 1 | [ 6 posts ] |
| You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum |
© 2006-2013 Yahoo! Inc. All rights reserved.
All code on this site is licensed under the BSD License unless stated otherwise.
About This Site · Security Contact Info
Powered by phpBB® Forum Software © phpBB Group