bullet_train 1.0.35 → 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: bf30474fa5f48c2365c9a4c10439870ada7afeebc830122d8789fc11fe27708f
4
- data.tar.gz: c7486e57abca9d509b0865c912caabed1b391c0ae6ec1ad35cb8f9bf62f1a592
3
+ metadata.gz: f59fc1585c81b8c0c07c7785ef20b210f730a27fff291492f7eb4e4e59df2fb7
4
+ data.tar.gz: 7324c7846dc20260b6bb41a28abb537b72bef6b7db4e8b1bf591a67f8ce12b83
5
5
  SHA512:
6
- metadata.gz: 408956ef34bdde97f9ed66506f9e6a1f3aaba977e83663417e2ea4ce53b8ce2e2d96e64b2291026e0f3859f62ffb794edd99ff3ef2acbe01cd4177f5ee77bae2
7
- data.tar.gz: 75cf7bcca374f6d1fb0bac044891deba140aa08303d70351b28c7091a9f5b853b9a8dfea7b8e912ad50267eaaf2288c31014d934011ea7e5b4844c4747d73f21
6
+ metadata.gz: ba5154d736c18eced42d347b7438c188a6cf7d41785a5a81f46d1444e856896bf039a8db1835a35be1c022f08864f5ed088ec1da9e59690958f6c5e6dbebdb39
7
+ data.tar.gz: adb32cf308b9764cfb9a258031f6b8066145c795343fc9ce22a39454cfea8665d82d952d1a2ed34168a2d0028ec2217b296f6fa5072229ed0d88cc80a1e23923
@@ -5,7 +5,7 @@
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('bullet_train.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
11
  description = [preceding_heading&.text, first_paragraph&.text].select(&:present?).join(" — ") || t('bullet_train.description')
@@ -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 + "/#{@file}").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.35"
2
+ VERSION = "1.0.36"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bullet_train
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.35
4
+ version: 1.0.36
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andrew Culver