Sha256: 2212c9a5bccb5a6a78ae238cc8d947be96931264e0003ab07f1e2df70c225ee6
Contents?: true
Size: 574 Bytes
Versions: 60
Compression:
Stored size: 574 Bytes
Contents
<% @body = markdown(File.read(Rails.root.to_s + "/#{@file}").gsub('.md)', ')')) %> <% if @file == "tmp/gems/bullet_train/docs/index.md" %> <% header, groups = @body.split("<h2>", 2) %> <%= header.html_safe %> <% # Restore the leading <h2> to the groups of links. %> <% groups = "<h2>#{groups}" %> <div class="xl:grid grid-cols-3 gap-20"> <% groups.split("<h2>").select(&:present?).map { |s| "<h2>#{s}" }.in_groups(3).each do |group| %> <div> <%= group.join.html_safe %> </div> <% end %> </div> <% else %> <%= @body %> <% end %>
Version data entries
60 entries across 60 versions & 1 rubygems