bullet_train 1.3.19 → 1.3.20

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 951cf1c05b265a712f19f77b63e6c9e02a3eb602be77370d4042a4e40b7c53fd
4
- data.tar.gz: a9dfc27ca91a34bb50d51b6410df683d757cd7cdd433898aab114a4bfe55fa53
3
+ metadata.gz: eaa4ec84257eb563d15991339f285ce1f4a16c32508abeb4d41cb95d822f1381
4
+ data.tar.gz: 9d4eb300ae1d02f53c1e070c47cb0bfb8c4e7f9d03ca3dfedd301e342682352c
5
5
  SHA512:
6
- metadata.gz: b44d0dac7d58af3c5adde134544981ededce3edc2b02046ec1692d3515adae1e2b683b49320fa115711a18c02c066f2ff9d16ad5eee2203a56ded76b9f29e511
7
- data.tar.gz: b2e219b2bdd94b53b708b1201476574d10da248a3e964ba892b41de7c8512323aeade4233c3765223fb47151db64ebf47ec7bc74c8f67474ee6f340bab03cbdf
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.19"
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.19
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-29 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