File tree Expand file tree Collapse file tree 1 file changed +12
-14
lines changed
Expand file tree Collapse file tree 1 file changed +12
-14
lines changed Original file line number Diff line number Diff line change 11require 'yard'
22require 'md_ruby_eval'
33
4+ # TODO (pitr-ch 23-Feb-2017): find a proper place
45module YARD
56 module Templates ::Helpers
67 # The helper module for HTML templates.
3839
3940root = File . expand_path File . join ( File . dirname ( __FILE__ ) , '..' )
4041
41- task yard : %w( yard:preprocess yard:doc )
42-
43- namespace :yard do
44-
45- YARD :: Rake :: YardocTask . new ( :doc )
42+ cmd = lambda do | command |
43+ puts ">> executing: #{ command } "
44+ puts ">> in: #{ Dir . pwd } "
45+ system command or raise " #{ command } failed"
46+ end
4647
47- cmd = lambda do | command |
48- puts ">> executing: #{ command } "
49- puts ">> in: #{ Dir . pwd } "
50- system command or raise " #{ command } failed"
48+ yard_doc = YARD :: Rake :: YardocTask . new ( :yard )
49+ yard_doc . before = -> do
50+ Dir . chdir File . join ( __dir__ , '..' , 'doc' ) do
51+ cmd . call 'bundle exec md-ruby-eval --auto' or raise
5152 end
53+ end
5254
53- task :preprocess do
54- Dir . chdir File . join ( __dir__ , '..' , 'doc' ) do
55- cmd . call 'bundle exec md-ruby-eval --auto' or raise
56- end
57- end
55+ namespace :yard do
5856
5957 desc 'Pushes generated documentation to github pages: http://ruby-concurrency.github.io/concurrent-ruby/'
6058 task :push => [ :setup , :yard ] do
You can’t perform that action at this time.
0 commit comments