Sha256: 5f285c56b8cded5d13ee0bd8934a9aa61c802a28bddd548187d528dae4beb92a

Contents?: true

Size: 878 Bytes

Versions: 18

Compression:

Stored size: 878 Bytes

Contents

if Rails.env != 'production'
  require 'yard'
  
  namespace :doc do
    desc 'upload to sourceforge'
    task up: [:yard, :gen_juli] do
      sh <<-EOSH
        cd doc/www
        rsync -avz --delete . ido00,jjedgarj@web.sourceforge.net:htdocs/
      EOSH
    end
  
    desc 'generate documents'
    task :gen_juli do
      sh <<-EOSH
        unset RUBYOPT
        (cd doc/doc-en; juli; juli sitemap; juli recent_update)
        (cd doc/doc-jp; juli; juli sitemap; juli recent_update)
      EOSH
    end
    
    YARD::Rake::YardocTask.new do |t|
     #t.files   = ['lib/**/*.rb', OTHER_PATHS]   # optional

      # NOTE: --exclude option value should be Regex rather than
      # shell wildcard (e.g. foo/**/*.rb)
      t.options = %w(--private -o doc/www/api
          --exclude lib/edgarj/templates
          --exclude lib/generators/edgarj/.*/templates)
    end
  end
end

Version data entries

18 entries across 18 versions & 1 rubygems

Version Path
edgarj-0.02.00 lib/tasks/edgarj_tasks.rake
edgarj-0.01.30 lib/tasks/edgarj_tasks.rake
edgarj-0.01.29 lib/tasks/edgarj_tasks.rake
edgarj-0.01.28 lib/tasks/edgarj_tasks.rake
edgarj-0.01.27 lib/tasks/edgarj_tasks.rake
edgarj-0.01.26 lib/tasks/edgarj_tasks.rake
edgarj-0.01.25 lib/tasks/edgarj_tasks.rake
edgarj-0.01.24 lib/tasks/edgarj_tasks.rake
edgarj-0.01.22 lib/tasks/edgarj_tasks.rake
edgarj-0.01.21 lib/tasks/edgarj_tasks.rake
edgarj-0.01.20 lib/tasks/edgarj_tasks.rake
edgarj-0.01.19 lib/tasks/edgarj_tasks.rake
edgarj-0.01.18 lib/tasks/edgarj_tasks.rake
edgarj-0.01.17 lib/tasks/edgarj_tasks.rake
edgarj-0.01.16 lib/tasks/edgarj_tasks.rake
edgarj-0.01.15 lib/tasks/edgarj_tasks.rake
edgarj-0.01.13 lib/tasks/edgarj_tasks.rake
edgarj-0.01.12 lib/tasks/edgarj_tasks.rake