Sha256: 3c9d8ac16e6a924064af40f5e7af5accb1d2169e6187912fedb173a29e5247f9

Contents?: true

Size: 979 Bytes

Versions: 21

Compression:

Stored size: 979 Bytes

Contents

require "bundler/gem_tasks"
require 'yard'
require "rake/testtask"
p base_path = File.expand_path('..', __FILE__)
p basename = File.basename(base_path)

#task :default => :test
task :default do
  system 'rake -T'
end


desc "make documents by yard"
task :yard do
  hiki2md_all(basename)
  YARD::Rake::YardocTask.new
end

Rake::TestTask.new(:test) do |t|
  t.libs << "test"
  t.libs << "lib"
  t.test_files = FileList['test/**/*_test.rb']
end

#task :default => :spec

def hiki2md_all(basename)
  files = Dir.entries('docs')
  files.each{|file|
    name=file.split('.')
    if name[1]=='hiki' then
      p command="hiki2md docs/#{name[0]}.hiki > #{basename}.wiki/#{name[0]}.md"
      system command
    end
  }
  system "cp #{basename}.wiki/README_ja.md README.md"
  system "cp #{basename}.wiki/README_ja.md #{basename}.wiki/Home.md"
  system "cp docs/*.gif #{basename}.wiki"
  system "cp docs/*.gif doc"
  system "cp docs/*.png #{basename}.wiki"
  system "cp docs/*.png doc"
end

Version data entries

21 entries across 21 versions & 1 rubygems

Version Path
hikiutils-0.2.4 Rakefile.orig
hikiutils-0.2.3.17 Rakefile.orig
hikiutils-0.2.3.16 Rakefile.orig
hikiutils-0.2.3.15 Rakefile.orig
hikiutils-0.2.3.14 Rakefile.orig
hikiutils-0.2.3.13 Rakefile.orig
hikiutils-0.2.3.12 Rakefile.orig
hikiutils-0.2.3.11 Rakefile.orig
hikiutils-0.2.3.9 Rakefile.orig
hikiutils-0.2.3.8 Rakefile.orig
hikiutils-0.2.3.7 Rakefile.orig
hikiutils-0.2.3.6 Rakefile.orig
hikiutils-0.2.3.4 Rakefile.orig
hikiutils-0.2.3.3 Rakefile.orig
hikiutils-0.2.3.2 Rakefile.orig
hikiutils-0.2.3.1 Rakefile.orig
hikiutils-0.2.3 Rakefile.orig
hikiutils-0.2.2 Rakefile.orig
hikiutils-0.2.1 Rakefile.orig
hikiutils-0.2.0 Rakefile.orig