-
Notifications
You must be signed in to change notification settings - Fork 28
/
Rakefile
28 lines (25 loc) · 1.15 KB
/
Rakefile
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
require 'bundler/gem_tasks'
require 'md2man/rakefile'
require 'md2man/roff/engine'
require 'md2man/html/engine'
require 'yard'
# Override markdown engine to add extra parameter
[Md2Man::Roff, Md2Man::HTML].each do |mod|
mod.send(:remove_const, :ENGINE)
mod.send(:const_set, :ENGINE, Redcarpet::Markdown.new(mod.const_get(:Engine),
tables: true,
autolink: true,
superscript: true,
strikethrough: true,
no_intra_emphasis: false,
fenced_code_blocks: true,
# This option is needed for command options to be rendered property
disable_indented_code_blocks: true))
end
YARD::Rake::YardocTask.new do |t|
t.files = ['lib/**/*.rb']
t.options = [
'--protected',
"--output-dir=#{ENV['YARD_OUTPUT'] || 'html_doc'}"
]
end