From efcf512c9120a0facb45459047debaa2cce5c8e8 Mon Sep 17 00:00:00 2001 From: Antonio Terceiro Date: Mon, 4 May 2015 18:43:45 -0300 Subject: [PATCH] noosfero:doc:clean: don't remove core documentation --- lib/tasks/doc.rake | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/lib/tasks/doc.rake b/lib/tasks/doc.rake index 204a0ab..0880286 100644 --- a/lib/tasks/doc.rake +++ b/lib/tasks/doc.rake @@ -12,9 +12,8 @@ namespace :noosfero do end end task :unlink_plugins_textiles do - root = Pathname.new(File.dirname(__FILE__) + '/../..').expand_path - rm_f Dir.glob(root.join('doc/noosfero/plugins/*.textile')) - - [root.join('doc/noosfero/plugins/index.textile')] + rm_f Dir.glob('doc/noosfero/plugins/*.textile') - + ['doc/noosfero/plugins/index.textile'] end input = Dir.glob('doc/noosfero/**/*.textile') + plugins_textiles.map{|i| "doc/noosfero/plugins/#{File.basename(i)}"} topics_xhtml = input.map { |item| item.sub('.textile', '.en.xhtml') }.uniq -- libgit2 0.21.2