-
-
Notifications
You must be signed in to change notification settings - Fork 59
Expand file tree
/
Copy pathRakefile
More file actions
29 lines (23 loc) · 588 Bytes
/
Rakefile
File metadata and controls
29 lines (23 loc) · 588 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
# frozen_string_literal: true
require 'rake/testtask'
require 'bundler/gem_tasks'
Rake::TestTask.new do |t|
t.libs << 'test'
end
desc 'Run tests'
task default: :test
desc 'Count the number of hash types'
task :count do
puts File.read('data/prototypes.json').scan('"extended"').count
end
desc 'Create man pages'
task :man do
require 'asciidoctor'
require_relative 'man/man_inline_macro'
Asciidoctor::Extensions.register do
inline_macro ManInlineMacro
end
Dir['man/*.adoc'].each do |adoc|
Asciidoctor.convert_file adoc, safe: :safe, backend: 'manpage'
end
end