This repository has no description
0

Configure Feed

Select the types of activity you want to include in your feed.

1#!/usr/bin/env ruby 2 3gallery = "| | | | 4|:-------------------------:|:-------------------------:|:-------------------------:| 5" 6 7Dir.glob("*.svg").each_with_index do |file, i| 8 if file == "test.svg" then next end 9 10 title = file 11 .sub(/^gallery\//, "") 12 .sub(/\.svg$/, "") 13 .gsub(/-/, " ").split(" ") 14 .map { |word| word.upcase == word ? word : word.capitalize } 15 .join(" ") 16 17 gallery += "| **#{title}** ![#{title}](./examples/gallery/#{file})" 18 if i % 3 == 2 then gallery += "\n" end 19end 20 21File.open "../../README.md", "w" do |f| 22 f.write File.read("../../README.md.in").gsub("%gallery%", gallery) 23end