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

Version Path
bullet_train-1.1.7 app/views/public/home/docs.html.erb
bullet_train-1.1.6 app/views/public/home/docs.html.erb
bullet_train-1.1.5 app/views/public/home/docs.html.erb
bullet_train-1.1.4 app/views/public/home/docs.html.erb
bullet_train-1.1.3 app/views/public/home/docs.html.erb
bullet_train-1.1.2 app/views/public/home/docs.html.erb
bullet_train-1.1.1 app/views/public/home/docs.html.erb
bullet_train-1.1.0 app/views/public/home/docs.html.erb
bullet_train-1.0.99 app/views/public/home/docs.html.erb
bullet_train-1.0.98 app/views/public/home/docs.html.erb
bullet_train-1.0.97 app/views/public/home/docs.html.erb
bullet_train-1.0.96 app/views/public/home/docs.html.erb
bullet_train-1.0.95 app/views/public/home/docs.html.erb
bullet_train-1.0.93 app/views/public/home/docs.html.erb
bullet_train-1.0.92 app/views/public/home/docs.html.erb
bullet_train-1.0.90 app/views/public/home/docs.html.erb
bullet_train-1.0.89 app/views/public/home/docs.html.erb
bullet_train-1.0.88 app/views/public/home/docs.html.erb
bullet_train-1.0.87 app/views/public/home/docs.html.erb
bullet_train-1.0.86 app/views/public/home/docs.html.erb