bullet_train 1.3.19 → 1.3.21
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/views/layouts/docs.html.erb +24 -1
- data/app/views/layouts/public.html.erb +1 -1
- data/lib/bullet_train/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0bd65c9439489fabb38d86f03b70a4483de90b810664a9e6d6449d5b70197525
|
4
|
+
data.tar.gz: d736aa3ce04d0631dc266d45ba99d12be8533b424352c0123f9e65b8103d770c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 41d6586cfe91972ac76797039864439843b1946df4071c2900e6cfcf1e4ef593dc1423ef1e0274a578553f13e708fd426e1a3855c419a488a7c553f6305a0bdc
|
7
|
+
data.tar.gz: e3b364be2ae23ac494e8d919b33796b52238d9f4708f06112f5235b017a488f3ef539332492c23d5686dc8a98203fbca8caf3659ced41874201cb8e5d94c359e
|
@@ -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>
|
data/lib/bullet_train/version.rb
CHANGED
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.
|
4
|
+
version: 1.3.21
|
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-
|
11
|
+
date: 2023-08-31 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: standard
|