All Projects → ruby → Rdoc

ruby / Rdoc

Licence: other
RDoc produces HTML and online documentation for Ruby projects.

Programming Languages

ruby
36898 projects - #4 most used programming language

Projects that are alternatives of or similar to Rdoc

Darglint
A python documentation linter which checks that the docstring description matches the definition.
Stars: ✭ 285 (-55.47%)
Mutual labels:  documentation-tool
Documenter.jl
A documentation generator for Julia.
Stars: ✭ 384 (-40%)
Mutual labels:  documentation-tool
Docbase
Turn .md docs into beautiful sites
Stars: ✭ 595 (-7.03%)
Mutual labels:  documentation-tool
Bridgetown
A Webpack-aware, Ruby-powered static site generator for the modern Jamstack era
Stars: ✭ 317 (-50.47%)
Mutual labels:  documentation-tool
Behat
BDD in PHP
Stars: ✭ 3,696 (+477.5%)
Mutual labels:  documentation-tool
The Documentation Compendium
📢 Various README templates & tips on writing high-quality documentation that people want to read.
Stars: ✭ 4,306 (+572.81%)
Mutual labels:  documentation-tool
Netbeans Mmd Plugin
Free mind map and PlantUML editor with plugins for both NetBeans and Intellij
Stars: ✭ 283 (-55.78%)
Mutual labels:  documentation-tool
Documentation
📖 documentation for modern JavaScript
Stars: ✭ 5,443 (+750.47%)
Mutual labels:  documentation-tool
Doc2dash
Create docsets for Dash.app-compatible API browser.
Stars: ✭ 380 (-40.62%)
Mutual labels:  documentation-tool
Pkgdown
Generate static html documentation for an R package
Stars: ✭ 537 (-16.09%)
Mutual labels:  documentation-tool
Compodoc
📔 The missing documentation tool for your Angular, Nest & Stencil application
Stars: ✭ 3,567 (+457.34%)
Mutual labels:  documentation-tool
Docute
📚 Effortless documentation, done right.
Stars: ✭ 3,575 (+458.59%)
Mutual labels:  documentation-tool
Helm Dash
Browse Dash docsets inside emacs
Stars: ✭ 455 (-28.91%)
Mutual labels:  documentation-tool
Plato
Plato helps software teams connect & stay engaged with users to gather feedback, provide support & deliver better software.
Stars: ✭ 293 (-54.22%)
Mutual labels:  documentation-tool
Daux.io
Daux.io is an documentation generator that uses a simple folder structure and Markdown files to create custom documentation on the fly. It helps you create great looking documentation in a developer friendly way.
Stars: ✭ 603 (-5.78%)
Mutual labels:  documentation-tool
Sourcedocs
Generate Markdown documentation from source code
Stars: ✭ 286 (-55.31%)
Mutual labels:  documentation-tool
Sphinx
Main repository for the Sphinx documentation builder
Stars: ✭ 4,313 (+573.91%)
Mutual labels:  documentation-tool
Gowalker
Go Walker is a server that generates Go projects API documentation on the fly.
Stars: ✭ 632 (-1.25%)
Mutual labels:  documentation-tool
Pdoc
🐍 ➡️ 📜 Auto-generate API documentation for Python projects
Stars: ✭ 604 (-5.62%)
Mutual labels:  documentation-tool
Ldoc
LDoc is a LuaDoc-compatible documentation generator which can also process C extension source. Markdown may be optionally used to render comments, as well as integrated readme documentation and pretty-printed example files.
Stars: ✭ 481 (-24.84%)
Mutual labels:  documentation-tool

= \RDoc - Ruby Documentation System

home :: https://github.com/ruby/rdoc rdoc :: https://ruby.github.io/rdoc bugs :: https://github.com/ruby/rdoc/issues code quality :: {Code Climate}[https://codeclimate.com/github/ruby/rdoc]

== Description

RDoc produces HTML and command-line documentation for Ruby projects. RDoc includes the +rdoc+ and +ri+ tools for generating and displaying documentation from the command-line.

== Generating Documentation

Once installed, you can create documentation using the +rdoc+ command

$ rdoc [options] [names...]

For an up-to-date option summary, type

$ rdoc --help

A typical use might be to generate documentation for a package of Ruby source (such as RDoc itself).

$ rdoc

This command generates documentation for all the Ruby and C source files in and below the current directory. These will be stored in a documentation tree starting in the subdirectory +doc+.

You can make this slightly more useful for your readers by having the index page contain the documentation for the primary file. In our case, we could type

% rdoc --main README.rdoc

You'll find information on the various formatting tricks you can use in comment blocks in the documentation this generates.

RDoc uses file extensions to determine how to process each file. File names ending +.rb+ and +.rbw+ are assumed to be Ruby source. Files ending +.c+ are parsed as C files. All other files are assumed to contain just Markup-style markup (with or without leading '#' comment markers). If directory names are passed to RDoc, they are scanned recursively for C and Ruby source files only.

To generate documentation using +rake+ see RDoc::Task[https://ruby.github.io/rdoc/RDocTask.html].

To generate documentation programmatically:

gem 'rdoc' require 'rdoc/rdoc'

options = RDoc::Options.new

see RDoc::Options

rdoc = RDoc::RDoc.new rdoc.document options

see RDoc::RDoc

== Writing Documentation

To write documentation for RDoc place a comment above the class, module, method, constant, or attribute you want documented:

This class represents an arbitrary shape by a series of points.

class Shape

##
# Creates a new shape described by a +polyline+.
#
# If the +polyline+ does not end at the same point it started at the
# first pointed is copied and placed at the end of the line.
#
# An ArgumentError is raised if the line crosses itself, but shapes may
# be concave.

def initialize polyline
  # ...
end

end

The default comment markup format is the RDoc::Markup format. TomDoc[rdoc-ref:RDoc::TomDoc], Markdown[rdoc-ref:RDoc::Markdown] and RD[rdoc-ref:RDoc::RD] format comments are also supported. You can set the default comment format for your entire project by creating a .rdoc_options file. See RDoc::[email protected]+Options for instructions on creating one. You can also set the comment format for a single file through the +:markup:+ directive, but this is only recommended if you wish to switch markup formats. See RDoc::[email protected]+directives.

Comments can contain directives that tell RDoc information that it cannot otherwise discover through parsing. See RDoc::[email protected] to control what is or is not documented, to define method arguments or to break up methods in a class by topic. See RDoc::Parser::Ruby for directives used to teach RDoc about metaprogrammed methods.

See RDoc::Parser::C for documenting C extensions with RDoc.

To determine how well your project is documented run rdoc -C lib to get a documentation coverage report. rdoc -C1 lib includes parameter names in the documentation coverage report.

== Bugs

See [email protected] for information on filing a bug report. It's OK to file a bug report for anything you're having a problem with. If you can't figure out how to make RDoc produce the output you like that is probably a documentation bug.

== License

RDoc is Copyright (c) 2001-2003 Dave Thomas, The Pragmatic Programmers. Portions (c) 2007-2011 Eric Hodel. Portions copyright others, see individual files and LEGAL.rdoc for details.

RDoc is free software, and may be redistributed under the terms specified in LICENSE.rdoc.

== Warranty

This software is provided "as is" and without any express or implied warranties, including, without limitation, the implied warranties of merchantability and fitness for a particular purpose.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].