Sha256: 6edbd2edfbb7b06b390f1b79da7933b18ee1c432c2b9609484ebd536709608da

Contents?: true

Size: 611 Bytes

Versions: 5

Compression:

Stored size: 611 Bytes

Contents

module Stationed
  module Generators
    module Plugins
      module Yard
        def self.prepended(base)
          base.class_option :yard,
            type: :boolean,
            default: true,
            desc: 'Include and configure Yard for API documentation'
        end

        def finish_template
          return super unless options[:yard]
          gem 'yard', require: false, group: :doc
          gem 'kramdown', require: false, group: :doc
          copy_file 'yardopts', '.yardopts'
          copy_file 'yard.rake', 'lib/tasks/yard.rake'
          super
        end
      end
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
stationed-0.6.0 lib/stationed/generators/plugins/yard.rb
stationed-0.5.0 lib/stationed/generators/plugins/yard.rb
stationed-0.4.0 lib/stationed/generators/plugins/yard.rb
stationed-0.3.0 lib/stationed/generators/plugins/yard.rb
stationed-0.2.0 lib/stationed/generators/plugins/yard.rb