bullet_train 1.3.18 → 1.3.20

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: 3545804c99faf7e1993e0bc61a825d48608d1f395c689763a2924f3b0faffa04
4
- data.tar.gz: b6711502408b4d59d6b09c1fde8eae1491d73e947ba4e5abd331adcea8264c1d
3
+ metadata.gz: eaa4ec84257eb563d15991339f285ce1f4a16c32508abeb4d41cb95d822f1381
4
+ data.tar.gz: 9d4eb300ae1d02f53c1e070c47cb0bfb8c4e7f9d03ca3dfedd301e342682352c
5
5
  SHA512:
6
- metadata.gz: cf9da8bf4c6a006df1f2267975a103f41f2c1c38e6efb9225abee1273a37ab3b47f206e16396cedaba18cf3c06392c0784f6c739dab651816778706c19a36477
7
- data.tar.gz: ce32f0f34848ef80ccdf6c9df85f8566dc3680c5a2e383168165c0dee8f99654f1443d3570ac70f76c5ec2ecdc564c8a4709a29ce90487df52d627e81ce49e4a
6
+ metadata.gz: 81c2684b260db3d426afb4024d496b1b5d162797baf5ed02e7f45e718e5624e7017afd939dbdfc1e80e359473ee2e0457806ffd7810415d8257e527a5125fbf8
7
+ data.tar.gz: 7b6477e4d89e0a7477f5415d7e9b27097d5b2ea67dd0ba50ac2ddd55a72370670ff26cf9dd59e465e8c489813a9ef2259586cc8f1a34354016bd7572f97dc29b
@@ -1,6 +1,6 @@
1
1
  <!DOCTYPE html>
2
2
 
3
- <html>
3
+ <html lang="<%= I18n.locale %>">
4
4
  <head>
5
5
  <%
6
6
  # we're going to use the
@@ -31,6 +31,8 @@
31
31
  <meta property="og:title" content="<%= title.truncate(95) %>" />
32
32
  <meta property="og:url" content="<%= request.base_url + request.path %>" />
33
33
  <meta property="og:description" content="<%= description.truncate(200) %>" />
34
+
35
+ <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@docsearch/css@3"/>
34
36
  </head>
35
37
  <body class="<%= BulletTrain::Themes::Light.background || "bg-gradient-to-br from-secondary-200 to-primary-400 dark:from-primary-900 dark:to-primary-600" %> text-slate-700 text-sm font-normal dark:text-slate-300">
36
38
  <div class="md:p-5">
@@ -356,6 +358,7 @@
356
358
  <div class="mx-auto sm:px-6 sm:py-4 px-2">
357
359
  <div class="bg-white rounded-md shadow sm:py-14 sm:px-12 py-10 px-7">
358
360
  <div class="prose" style="max-width: none;" id="bt-docs-content">
361
+ <div class="float-right relative z-10" id="docsearch"></div>
359
362
  <%= yield %>
360
363
  </div>
361
364
  </div>
@@ -366,5 +369,25 @@
366
369
  </div>
367
370
  </div>
368
371
  </div>
372
+
373
+ <% if ENV['HEROKU_APP_NAME'] && ENV['HEROKU_APP_NAME'] == "bullettrain-co" %>
374
+ <% # We only show the docsearch widget in the demo site. %>
375
+ <% # We avoid showing it in downstream apps because it wouldn't link to that app, but to the demo site. %>
376
+ <script src="https://cdn.jsdelivr.net/npm/@docsearch/js@3"></script>
377
+ <script type="text/javascript">
378
+ function initDocsearch(){
379
+ docsearch({
380
+ appId: 'CJ5ZANVRGK',
381
+ apiKey: '2268d6d15b80e5bf7bcba35062b69112',
382
+ indexName: 'bullettrain',
383
+ insights: true, // Optional, automatically send insights when user interacts with search results
384
+ container: '#docsearch',
385
+ debug: false // Set debug to true if you want to inspect the modal
386
+ });
387
+ }
388
+ initDocsearch();
389
+ </script>
390
+ <% end %>
391
+
369
392
  </body>
370
393
  </html>
@@ -1,5 +1,5 @@
1
1
  <!DOCTYPE html>
2
- <html class="theme-<%= BulletTrain::Themes::Light.color %> <%= "theme-secondary-#{BulletTrain::Themes::Light.secondary_color}" if BulletTrain::Themes::Light.secondary_color %>">
2
+ <html class="theme-<%= BulletTrain::Themes::Light.color %> <%= "theme-secondary-#{BulletTrain::Themes::Light.secondary_color}" if BulletTrain::Themes::Light.secondary_color %>" lang="<%= I18n.locale %>">
3
3
  <head>
4
4
  <%= render 'shared/layouts/head' %>
5
5
  </head>
@@ -1,3 +1,3 @@
1
1
  module BulletTrain
2
- VERSION = "1.3.18"
2
+ VERSION = "1.3.20"
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.3.18
4
+ version: 1.3.20
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andrew Culver
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-08-28 00:00:00.000000000 Z
11
+ date: 2023-08-31 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: standard