Sha256: bb562bb9d5cfeb2bee5780267a6d4895912f232bca4b6e1aa595ccd4cac757f5

Contents?: true

Size: 593 Bytes

Versions: 2

Compression:

Stored size: 593 Bytes

Contents

require 'rake/rdoctask'

module Rake
  # Just a customized version of the normal RDoc task for generating SDocs.
  class SDocTask < RDocTask
    def initialize
      @name = :rdoc
      @rdoc_files = Rake::FileList.new
      @rdoc_files.include('README*')
      @rdoc_files.include('LICENSE*')
      @rdoc_files.include('lib/**/*.rb')
      @rdoc_dir = 'docs'
      @main = Dir['README*'].first
      @title = nil
      @template = 'direct'
      @external = false
      @inline_source = true
      @options = ['--fmt', 'shtml']
      yield self if block_given?
      define
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
brianjlandau-sdoc-helpers-0.1.4 lib/rake/sdoctask.rb
brianjlandau-sdoc-helpers-0.1.2 lib/rake/sdoctask.rb