fix ldoc comments for classes #841
Comments
|
actually i still don't really get it. if i just change if i leave it seems to be all or nothing. but there's gotta be a way. |
|
the ldoc thing has bothered me before. i don’t know that i will get a big enough chunk of spare time to figure out all the steps in submitting a pull request for fixing it, but i am going to try to do it by next week and will report back if i fail. edit: update, this is definitely not going to happen from me, basically immediately after posting that Day Job set an extremely ambitious deadline.... someday. |
|
The Sections part of the ldoc docs mentions the
Does that help in this situation? |
|
I was trying to find out what the arguments for controlspec were and noticed it was undocumented, so I went and did the ldoc comments for the file using @classmod after finding this thread. I do notice that controlspec ends up separately under Classes rather than Modules so I'm thinking maybe if the docs are going with @classmod it should all be done together. I used @section to specify the predefined controlspecs and that works pretty well. It did differentiate that way. Perhaps @section could be used for static methods as well. You can see that here: https://github.com/scazan/norns/blob/controlspec-ldoc/lua/core/controlspec.lua Happy to do some documentation updating for this. Alternatively, until that is done should I stick with @module? Screenshot of @section rendering attached: |
|
I think that #971 "mostly" closes the classmod issue here. Still some undocumented classes perhaps. I made use of the @static tag which seems to be an undocumented feature of ldoc. |
|
lets close for now, feel free to reopen if egregious omissions are noticed |

we're using
@modulewhen we apparently should be using@classmodfor classes.this will correctly differentiate in the output between methods (with colon and
self) and static functions (with dot.)also, a lot of class/module files are totally missing ldoc comments:
fixing this should be easy, if slightly tedious
The text was updated successfully, but these errors were encountered: