Commit 7afc0fe486e5a969943a57ee7b8a799f86249ec1
Exists in
master
and in
29 other branches
Merge commit 'refs/merge-requests/99' of git://gitorious.org/noosfero/noosfero i…
…nto merge-requests/99
Showing
1 changed file
with
2 additions
and
3 deletions
Show diff stats
lib/tasks/doc.rake
| ... | ... | @@ -13,7 +13,7 @@ namespace :noosfero do |
| 13 | 13 | [File.join(RAILS_ROOT, 'doc/noosfero/plugins/index.textile')] |
| 14 | 14 | end |
| 15 | 15 | input = Dir.glob('doc/noosfero/**/*.textile') + plugins_textiles.map{|i| "doc/noosfero/plugins/#{File.basename(i)}"} |
| 16 | - topics_xhtml = input.map { |item| item.sub('.textile', '.en.xhtml') } | |
| 16 | + topics_xhtml = input.map { |item| item.sub('.textile', '.en.xhtml') }.uniq | |
| 17 | 17 | sections = Dir.glob('doc/noosfero/*').select {|item| File.directory?(item) } |
| 18 | 18 | toc_sections = sections.map {|item| File.join(item, 'toc.en.xhtml')} |
| 19 | 19 | index_sections = sections.map {|item| File.join(item, 'index.en.xhtml')} |
| ... | ... | @@ -104,11 +104,10 @@ namespace :noosfero do |
| 104 | 104 | desc "Build Noosfero online documentation" |
| 105 | 105 | task :build => [:link_plugins_textiles, po4a_conf] do |
| 106 | 106 | sh "po4a #{po4a_conf}" |
| 107 | - Rake::Task['noosfero:doc:unlink_plugins_textiles'].invoke | |
| 108 | 107 | end |
| 109 | 108 | |
| 110 | 109 | desc "Cleans Noosfero online documentation" |
| 111 | - task :clean do | |
| 110 | + task :clean => :unlink_plugins_textiles do | |
| 112 | 111 | sh 'rm -f doc/noosfero/*.xhtml' |
| 113 | 112 | sh 'rm -f doc/noosfero/*/*.xhtml' |
| 114 | 113 | rm_f po4a_conf | ... | ... |