Sha256: 1fa71be96f06691aa258a6a1c5c621950dff8a9f44c1344964ecd264cd4f0b43

Contents?: true

Size: 547 Bytes

Versions: 8

Compression:

Stored size: 547 Bytes

Contents

require "bundler/gem_tasks"

require 'rake/testtask'

Rake::TestTask.new do |t|
    t.pattern = "test/*_test.rb"
    t.verbose = true
end

namespace :asciidoc do

  desc 'create asciidoc'
  task :create do
    sh 'asciidoctor -a docinfo -a stylesheet! -o dist/latest/index.html docs/doc.adoc'
  end

  desc 'publish ascciidoc to gh-pages'
  task :publish => [:create] do
    sh 'ghp-import -m "Generate documentation" -b gh-pages dist/'
    sh 'git push origin gh-pages'
  end

  desc 'clear asciidoc'
  task :clear do
    rm_rf 'dist'
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
opskeleton-0.10.1 Rakefile
opskeleton-0.9.9 Rakefile
opskeleton-0.9.8 Rakefile
opskeleton-0.9.7 Rakefile
opskeleton-0.9.6 Rakefile
opskeleton-0.9.5 Rakefile
opskeleton-0.9.4 Rakefile
opskeleton-0.9.3 Rakefile