Sha256: a887ae41f6ac91b6e98472147a764acf03f1fdb6ccf3ef4e3747e0cd00c9017a

Contents?: true

Size: 573 Bytes

Versions: 17

Compression:

Stored size: 573 Bytes

Contents

begin
  require 'jekyll/static_file'

  module CloudgovStyle 
    class Assets
      SOURCE = File.realpath File.join(__FILE__, '..', '..', '..')
      BEGIN_PATH = SOURCE.size + File::SEPARATOR.size

      def self.copy_to_site(site)
        Dir.glob File.join(SOURCE, 'assets', '[^_]*', '**', '*') do |asset|
          next unless File.file? asset
          asset = asset[BEGIN_PATH..-1]
          site.static_files << ::Jekyll::StaticFile.new(
            site, SOURCE, File.dirname(asset), File.basename(asset))
        end
      end
    end
  end
rescue LoadError
end

Version data entries

17 entries across 17 versions & 1 rubygems

Version Path
cloudgov-style-2.1.0 lib/cloudgov-style/assets.rb
cloudgov-style-1.4.2 lib/cloudgov-style/assets.rb
cloudgov-style-1.4.1 lib/cloudgov-style/assets.rb
cloudgov-style-1.4.0 lib/cloudgov-style/assets.rb
cloudgov-style-1.3.0 lib/cloudgov-style/assets.rb
cloudgov-style-1.2.1 lib/cloudgov-style/assets.rb
cloudgov-style-1.1.1 lib/cloudgov-style/assets.rb
cloudgov-style-1.1.0 lib/cloudgov-style/assets.rb
cloudgov-style-1.0.0 lib/cloudgov-style/assets.rb
cloudgov-style-0.7.3 lib/cloudgov-style/assets.rb
cloudgov-style-0.7.2 lib/cloudgov-style/assets.rb
cloudgov-style-0.7.0 lib/cloudgov-style/assets.rb
cloudgov-style-0.6.1 lib/cloudgov-style/assets.rb
cloudgov-style-0.6.0 lib/cloudgov-style/assets.rb
cloudgov-style-0.5.0 lib/cloudgov-style/assets.rb
cloudgov-style-0.3.0 lib/cloudgov-style/assets.rb
cloudgov-style-0.0.1 lib/cloudgov-style/assets.rb