lib/lookbook/parser.rb in lookbook-0.3.3 vs lib/lookbook/parser.rb in lookbook-0.3.4

- old
+ new

@@ -3,10 +3,10 @@ module Lookbook class Parser YARDOC_FILE_PATH = Rails.root.join("tmp/storage/.yardoc").to_s def initialize(paths) - @paths = paths.map { |p| "#{p}/**/*.rb" } + @paths = paths.map { |p| "#{p}/**/*_preview.rb" } YARD::Registry.yardoc_file = YARDOC_FILE_PATH end def parse YARD::Registry.clear