Question

Are there any wiki syntax like rdoc, markdown, ... recommended in the ruby world? I write sometimes open source code and have no glue which syntax I should use in Code documents and in README files. What be helpful for me which and why you use it.

Was it helpful?

Solution

RDoc is the default documentation tool. The RDoc syntax is the default one allowed inside Ruby files and libraries.

You might find TextTile or Markdown used outside Ruby classes for text files such as the README or the CHANGELOG files. But this isn't the standard sintax so you would need a way to tell the parser which syntax the file is written with, usually this way is the file extension.

GitHub, for example, follows exactly this convenction. Unless a .textile or .markdown extension is specified, the file is parsed as RDoc.

Remember: AFAIK, inline documentation is always parsed as RDoc.

OTHER TIPS

On Github, people mostly use Rdoc or Textile as format for their README-files. Rdoc is also very useful for API-documenting your code, as the syntax integrates really nice into the code and is pleasant to read.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top