lib/nanodoc/data_source.rb
# `path` should be a realpath string
`path` should be a realpath string
` path ` should be a realpath string
def ignored?(path)
      return true unless '..' == path.relative_path_from(output_realpath).descend { |p| break p.to_s }
      path = Pathname.new(path).relative_path_from(source_realpath)
      return true if '..' == path.descend { |p| break p.to_s }
      path = Pathname.new('/').join(path)
      @site.config[:ignore].any? { |pattern| path.fnmatch?(pattern) }
    end
def ignored? ( path ) return true unless '..' == path . relative_path_from ( output_realpath ) . descend { | p | break p . to_s } path = Pathname . new ( path ) . relative_path_from ( source_realpath ) return true if '..' == path . descend { | p | break p . to_s } path = Pathname . new ( '/' ) . join ( path ) @site . config [ :ignore ] . any? { | pattern | path . fnmatch? ( pattern ) } end
`path` should be a realpath string
` path ` should be a realpath string
# Ignore files that are in the output directory # Ignore files that are above base directory (`break`ing from # `Pathname#descend` gives us first element on the path) # Absolutize the relative path by attaching it to filesystem # root. # Finally, ignore if any of configured ignore patterns match.
path
<not_specific>