bullet_train 1.0.33 → 1.0.36

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: ce20e3e5564170a8386b5b4da33db6eafcb419634e6c7e757a0ee63a7be1586c
4
- data.tar.gz: f09ae527f9e3ce4b8305e16e9629eac576a6814e84d5d10139f6065c0ce6a30a
3
+ metadata.gz: f59fc1585c81b8c0c07c7785ef20b210f730a27fff291492f7eb4e4e59df2fb7
4
+ data.tar.gz: 7324c7846dc20260b6bb41a28abb537b72bef6b7db4e8b1bf591a67f8ce12b83
5
5
  SHA512:
6
- metadata.gz: 664338b79a65f7982cd073537fe7242aabe604100253045f25ccaf21ebf611692e5dca42a20559daf2507e7b9e06fa4f56c59a46d441123e67934e265c79b377
7
- data.tar.gz: 87c77a80931ca684069d400375cdc046f8e499e7a13b3706fb48881222e757e15a58f3b0f963ee6301adf025a046f0e73ca3f9d5d5f8c1f094288184f6a3f1cd
6
+ metadata.gz: ba5154d736c18eced42d347b7438c188a6cf7d41785a5a81f46d1444e856896bf039a8db1835a35be1c022f08864f5ed088ec1da9e59690958f6c5e6dbebdb39
7
+ data.tar.gz: adb32cf308b9764cfb9a258031f6b8066145c795343fc9ce22a39454cfea8665d82d952d1a2ed34168a2d0028ec2217b296f6fa5072229ed0d88cc80a1e23923
@@ -2,7 +2,9 @@ module DocumentationSupport
2
2
  extend ActiveSupport::Concern
3
3
 
4
4
  def docs
5
- @file = params[:page].presence || "index"
5
+ target = params[:page].presence || "index"
6
+ files = `find -L tmp/gems/*/docs | grep \.md`.lines.map(&:chomp).sort
7
+ @file = files.detect { |file| file.include?(target) }
6
8
  render :docs, layout: "docs"
7
9
  end
8
10
  end
@@ -5,20 +5,20 @@
5
5
  <%
6
6
  # we're going to use the
7
7
  body = Nokogiri::HTML(@body)
8
- title = body.css('h1').first.text.presence || t('application.tagline')
8
+ title = body.css('h1').first&.text.presence || t('bullet_train.tagline')
9
9
  first_paragraph = body.css('p').first
10
10
  preceding_heading = first_paragraph&.xpath("preceding-sibling::h2")
11
- description = [preceding_heading&.text, first_paragraph&.text].select(&:present?).join(" — ") || t('application.description')
11
+ description = [preceding_heading&.text, first_paragraph&.text].select(&:present?).join(" — ") || t('bullet_train.description')
12
12
  image_url = "https://avatars.githubusercontent.com/u/5976880?s=280&amp;v=4"
13
13
  site_name = "Bullet Train Developer Documentation"
14
14
  %>
15
15
 
16
16
  <% content_for :title do %>
17
- <title><%= [site_name, title, t('application.tagline')].select(&:present?).uniq.first(2).reverse.join(' — ') %></title>
17
+ <title><%= [site_name, title, t('bullet_train.tagline')].select(&:present?).uniq.first(2).reverse.join(' — ') %></title>
18
18
  <% end %>
19
19
 
20
20
  <%= render 'themes/light/layouts/head' %>
21
- <meta content="<%= t('application.keywords') %>" name="keywords" />
21
+ <meta content="<%= t('bullet_train.keywords') %>" name="keywords" />
22
22
  <meta content="<%= description.truncate(200) %>" name="description" />
23
23
  <meta name="twitter:image:src" content="<%= image_url %>" />
24
24
  <meta name="twitter:site" content="@bullettrainco" />
@@ -73,41 +73,43 @@
73
73
  <% end %>
74
74
  <% end %>
75
75
 
76
- <%= render 'account/shared/menu/item', url: '/docs/philosophy', label: 'Philosophy' do |p| %>
76
+ <%= render 'account/shared/menu/item', url: '/docs/upgrades', label: 'Upgrades' do |p| %>
77
77
  <% p.content_for :icon do %>
78
- <i class="fal fa-lightbulb-on ti ti-light-bulb"></i>
78
+ <i class="fal fa-sparkles ti ti-arrow-up"></i>
79
79
  <% end %>
80
80
  <% end %>
81
+ <% end %>
81
82
 
82
- <%= render 'account/shared/menu/item', url: '/docs/upgrades', label: 'Upgrades' do |p| %>
83
+ <%= render 'account/shared/menu/section', title: 'General Topics' do %>
84
+ <%= render 'account/shared/menu/item', url: '/docs/modeling', label: 'Domain Modeling' do |p| %>
83
85
  <% p.content_for :icon do %>
84
- <i class="fal fa-sparkles ti ti-arrow-up"></i>
86
+ <i class="fal fa-bolt ti ti-bolt"></i>
85
87
  <% end %>
86
88
  <% end %>
87
89
 
88
- <%= render 'account/shared/menu/item', url: '/docs/tunneling', label: 'Tunneling' do |p| %>
90
+ <%= render 'account/shared/menu/item', url: '/docs/indirection', label: 'Indirection' do |p| %>
89
91
  <% p.content_for :icon do %>
90
- <i class="fal fa-bolt ti ti-bolt"></i>
92
+ <i class="fal fa-bolt ti ti-direction"></i>
91
93
  <% end %>
92
94
  <% end %>
93
- <% end %>
94
95
 
95
- <%= render 'account/shared/menu/section', title: 'Developer Tools' do %>
96
- <%= render 'account/shared/menu/item', url: '/docs/super-scaffolding', label: 'Super Scaffolding' do |p| %>
96
+ <%= render 'account/shared/menu/item', url: '/docs/overriding', label: 'Overriding' do |p| %>
97
97
  <% p.content_for :icon do %>
98
- <i class="fal fa-magic ti ti-wand"></i>
98
+ <i class="fal fa-bolt ti ti-spray"></i>
99
99
  <% end %>
100
100
  <% end %>
101
101
 
102
- <%= render 'account/shared/menu/item', url: '/docs/field-partials', label: 'Field Partials' do |p| %>
102
+ <%= render 'account/shared/menu/item', url: '/docs/tunneling', label: 'Tunneling' do |p| %>
103
103
  <% p.content_for :icon do %>
104
- <i class="fal fa-i-cursor ti ti-text"></i>
104
+ <i class="fal fa-bolt ti ti-bolt"></i>
105
105
  <% end %>
106
106
  <% end %>
107
+ <% end %>
107
108
 
108
- <%= render 'account/shared/menu/item', url: '/docs/themes', label: 'Themes' do |p| %>
109
+ <%= render 'account/shared/menu/section', title: 'Developer Tools' do %>
110
+ <%= render 'account/shared/menu/item', url: '/docs/super-scaffolding', label: 'Super Scaffolding' do |p| %>
109
111
  <% p.content_for :icon do %>
110
- <i class="fal fa-swatchbook ti ti-palette"></i>
112
+ <i class="fal fa-magic ti ti-wand"></i>
111
113
  <% end %>
112
114
  <% end %>
113
115
 
@@ -122,6 +124,12 @@
122
124
  <i class="fal fa-check ti ti-check"></i>
123
125
  <% end %>
124
126
  <% end %>
127
+
128
+ <%= render 'account/shared/menu/item', url: 'https://github.com/bullet-train-co/magic_test', label: 'Magic Test' do |p| %>
129
+ <% p.content_for :icon do %>
130
+ <i class="fal fa-check ti ti-video-camera"></i>
131
+ <% end %>
132
+ <% end %>
125
133
  <% end %>
126
134
 
127
135
  <%= render 'account/shared/menu/section', title: 'Accounts & Teams' do %>
@@ -156,6 +164,26 @@
156
164
  <% end %>
157
165
  <% end %>
158
166
 
167
+ <%= render 'account/shared/menu/section', title: 'User Interface' do %>
168
+ <%= render 'account/shared/menu/item', url: '/docs/field-partials', label: 'Field Partials' do |p| %>
169
+ <% p.content_for :icon do %>
170
+ <i class="fal fa-i-cursor ti ti-text"></i>
171
+ <% end %>
172
+ <% end %>
173
+
174
+ <%= render 'account/shared/menu/item', url: '/docs/themes', label: 'Themes' do |p| %>
175
+ <% p.content_for :icon do %>
176
+ <i class="fal fa-swatchbook ti ti-palette"></i>
177
+ <% end %>
178
+ <% end %>
179
+
180
+ <%= render 'account/shared/menu/item', url: 'https://github.com/bullet-train-co/nice_partials', label: 'Nice Partials' do |p| %>
181
+ <% p.content_for :icon do %>
182
+ <i class="fal fa-swatchbook ti ti-widget"></i>
183
+ <% end %>
184
+ <% end %>
185
+ <% end %>
186
+
159
187
  <%= render 'account/shared/menu/section', title: 'Billing' do %>
160
188
  <%= render 'account/shared/menu/item', url: '/docs/billing/stripe', label: 'Stripe' do |p| %>
161
189
  <% p.content_for :icon do %>
@@ -175,19 +203,19 @@
175
203
  <% p.content_for :icon do %>
176
204
  <i class="fal fa-brackets-curly ti ti-settings"></i>
177
205
  <% end %>
178
- <% end if false %>
206
+ <% end %>
179
207
 
180
208
  <%= render 'account/shared/menu/item', url: '/docs/webhooks/outgoing', label: 'Outgoing Webhooks' do |p| %>
181
209
  <% p.content_for :icon do %>
182
210
  <i class="fal fa-outlet ti ti-pulse"></i>
183
211
  <% end %>
184
- <% end if false %>
212
+ <% end %>
185
213
 
186
214
  <%= render 'account/shared/menu/item', url: '/docs/webhooks/incoming', label: 'Incoming Webhooks' do |p| %>
187
215
  <% p.content_for :icon do %>
188
216
  <i class="fal fa-plug ti ti-plug"></i>
189
217
  <% end %>
190
- <% end if false %>
218
+ <% end %>
191
219
  <% end %>
192
220
 
193
221
  <%= render 'account/shared/menu/section', title: 'Internationalization' do %>
@@ -1 +1,18 @@
1
- <%= @body = markdown(File.read(Rails.root.to_s + "/docs/#{@file}.md").gsub('.md)', ')')) %>
1
+ <% @body = markdown(File.read(Rails.root.to_s + "/#{@file}").gsub('.md)', ')')) %>
2
+
3
+ <% if @file == "tmp/gems/bullet_train/docs/index.md" %>
4
+ <% header, groups = @body.split("<h2>", 2) %>
5
+ <%= header.html_safe %>
6
+
7
+ <% # Restore the leading <h2> to the groups of links. %>
8
+ <% groups = "<h2>#{groups}" %>
9
+ <div class="xl:grid grid-cols-3 gap-20">
10
+ <% groups.split("<h2>").select(&:present?).map { |s| "<h2>#{s}" }.in_groups(3).each do |group| %>
11
+ <div>
12
+ <%= group.join.html_safe %>
13
+ </div>
14
+ <% end %>
15
+ </div>
16
+ <% else %>
17
+ <%= @body %>
18
+ <% end %>
@@ -1,3 +1,3 @@
1
1
  module BulletTrain
2
- VERSION = "1.0.33"
2
+ VERSION = "1.0.36"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bullet_train
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.33
4
+ version: 1.0.36
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andrew Culver
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-03-10 00:00:00.000000000 Z
11
+ date: 2022-03-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails