rubocop / ruby-style-guide

A community-driven Ruby coding style guide
https://rubystyle.guide
16.46k stars 3.4k forks source link

TomDoc or Yard instead of Rdoc #420

Closed maasha closed 6 years ago

maasha commented 9 years ago

The style-guide says:

Use RDoc and its conventions for API documentation.

However, the lack of consistent structure and readability in RDoc have lead to the specification of TomDoc. The style-guide should perhaps encourage TomDoc (optional)?

Here is some relevant reading:

http://tom.preston-werner.com/2010/05/11/tomdoc-reasonable-ruby-documentation.html http://gnuu.org/2010/05/12/whats-missing-from-tomdoc/ http://tomdoc.org/

bbatsov commented 9 years ago

Or we can just remove this. I don't think many people use TomDoc these days. Yard is pretty popular, though.

sfcgeorge commented 9 years ago

So my vote is changing to say YARD.

Ch4s3 commented 9 years ago

+1 for YARD

philoserf commented 9 years ago

My unscientific examination of the community repos show very little Tomdoc in the wild and much Yard.

snowe2010 commented 9 years ago

+1 for YARD, TomDoc is a very one sided view for documentation. Yard is a much better choice.

onebree commented 9 years ago

+1 for YARD. I only heard about TomDoc toady, when browsing Github's internal style guides. I see YARD almost always in the wild.

I agree with @bbatsov in that it should just be removed.

arbox commented 9 years ago

I would encourage people to use YARD.

lazybios commented 8 years ago

same as @onebree just see TomDoc in Github internal style guides. +1 for YARD

bbatsov commented 8 years ago

PRs welcome. :-)