coffeedoc / codo

CoffeeScript API documentation generator. It's like YARD but for CoffeeScript!
Other
624 stars 92 forks source link

Add @public tag #246

Closed steel closed 7 years ago

steel commented 8 years ago

Even though public is implicit by default, this gives extra flexibility to explicitly mark classes and methods as public.

inossidabile commented 8 years ago

Why would you add a tag that does nothing? What stops you from just using it without this PR?

steel commented 8 years ago

I'm generating JSON output and using the @public tag to explicitly signify that a class is public so it can be exposed in another level of documentation. It's in JS Doc for this exact situation. http://usejsdoc.org/tags-public.html

steel commented 8 years ago

I'm open to suggestions as well.

mdiebolt commented 8 years ago

I think this is useful for styling documentation that is part of the public interface differently than the internals.

A consumer might only need documentation for public pieces, while a maintainer could use insight into internals.

steel commented 7 years ago

Thanks @inossidabile