view lib/tasks/yardoc.rake @ 1582:f26dc3004b3f dockerise

A currently-failing attempt to get this setup working on Centos 7. Stalling on the problem of getting a recent enough system Ruby
author Chris Cannam
date Tue, 15 Aug 2017 16:26:46 +0100
parents dffacf8a6908
children
line wrap: on
line source
begin
  require 'yard'

  YARD::Rake::YardocTask.new do |t|
    files = ['app/**/*.rb']
    files << Dir['lib/**/*.rb', 'plugins/**/*.rb'].reject {|f| f.match(/test/) }
    t.files = files

    static_files = ['doc/CHANGELOG',
                    'doc/COPYING',
                    'doc/INSTALL',
                    'doc/RUNNING_TESTS',
                    'doc/UPGRADING'].join(',')

    t.options += ['--output-dir', './doc/app', '--files', static_files]
  end

rescue LoadError
  # yard not installed (gem install yard)
  # http://yardoc.org
end