Commit efcf512c9120a0facb45459047debaa2cce5c8e8
1 parent
7603db29
Exists in
master
and in
29 other branches
noosfero:doc:clean: don't remove core documentation
Showing
1 changed file
with
2 additions
and
3 deletions
Show diff stats
lib/tasks/doc.rake
... | ... | @@ -12,9 +12,8 @@ namespace :noosfero do |
12 | 12 | end |
13 | 13 | end |
14 | 14 | task :unlink_plugins_textiles do |
15 | - root = Pathname.new(File.dirname(__FILE__) + '/../..').expand_path | |
16 | - rm_f Dir.glob(root.join('doc/noosfero/plugins/*.textile')) - | |
17 | - [root.join('doc/noosfero/plugins/index.textile')] | |
15 | + rm_f Dir.glob('doc/noosfero/plugins/*.textile') - | |
16 | + ['doc/noosfero/plugins/index.textile'] | |
18 | 17 | end |
19 | 18 | input = Dir.glob('doc/noosfero/**/*.textile') + plugins_textiles.map{|i| "doc/noosfero/plugins/#{File.basename(i)}"} |
20 | 19 | topics_xhtml = input.map { |item| item.sub('.textile', '.en.xhtml') }.uniq | ... | ... |