Sha256: cffcf0e47f9c7542f26e15e0c0e188126391c2fe4363e79b258a63a808789120

Contents?: true

Size: 698 Bytes

Versions: 7

Compression:

Stored size: 698 Bytes

Contents

# frozen_string_literal: true

require "bundler/gem_tasks"
require "rspec/core/rake_task"

RSpec::Core::RakeTask.new(:test)

namespace :documentation do
	task :yard do
		sh('yard', '-o', "documentation/public/code")
	end

	desc "Build and run the documentation wiki."
	task :server => :yard do
		Bundler.with_unbundled_env do
			Dir.chdir('documentation') do
				sh('bundle', 'install', '--quiet')
				sh('bundle', 'exec', 'rake')
			end
		end
	end

	desc "Update static documentation."
	task :static => :yard do
		require 'rackula/command'
		
		Dir.chdir("documentation") do
			Rackula::Command::Top["generate", "--force", "--output-path", "../docs"].invoke
		end
	end
end

task :default => :test

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
utopia-2.13.4 Rakefile
utopia-2.13.3 Rakefile
utopia-2.13.2 Rakefile
utopia-2.13.1 Rakefile
utopia-2.13.0 Rakefile
utopia-2.12.4 Rakefile
utopia-2.12.3 Rakefile