Sha256: bdc123e74d517a5bbc67fdc7f4bcdfdb1ce79adf231713888d2366f97040146b
Contents?: true
Size: 1.59 KB
Versions: 4
Compression:
Stored size: 1.59 KB
Contents
# SDoc **Powering http://api.rubyonrails.org/ and http://railsapi.com/** ### What is sdoc? RDoc generator to build searchable HTML documentation for Ruby code. * `sdoc` - command line tool to run rdoc with `generator=shtml` (searchable HTML) * `sdoc-merge` - comand line tool to merge multiple sdoc folders into a single documentation site ### Getting Started ```bash # Install the gem gem install sdoc # Generate documentation for 'projectdir' sdoc projectdir ``` ### sdoc `sdoc` is simply a wrapper for the `rdoc` command line tool. See `sdoc --help` for more details. `--fmt` is set to `shtml` by default. The default template `-T` is `shtml`, but you can also use the `direct` template. Example: ```bash sdoc -o doc/rails -T direct rails ``` ### sdoc-merge <pre> Usage: sdoc-merge [options] directories -n, --names [NAMES] Names of merged repositories. Comma separated -o, --op [DIRECTORY] Set the output directory -t, --title [TITLE] Set the title of merged file </pre> Example: ```bash sdoc-merge --title "Ruby v1.9, Rails v2.3.2.1" --op merged --names "Ruby,Rails" ruby-v1.9 rails-v2.3.2.1 ``` ### Rake Task ```ruby # Rakefile require 'sdoc' # and use your RDoc task the same way you used it before Rake::RDocTask.new do |rdoc| rdoc.rdoc_dir = 'doc/rdoc' rdoc.options << '--fmt' << 'shtml' # explictly set shtml generator rdoc.template = 'direct' # lighter template used on railsapi.com ... end ``` # Who? * Vladimir Kolesnikov ([voloko](https://github.com/voloko)) * Nathan Broadbent ([ndbroadbent](https://github.com/ndbroadbent))
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
sdoc-0.3.20 | README.md |
sdoc-0.3.19 | README.md |
sdoc-0.3.18 | README.md |
sdoc-0.3.17 | README.md |