bookends 4.1.1 → 4.2.0beta1

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
  SHA1:
3
- metadata.gz: 5a103ed680abeeebdd64d3e830660b2d653d4141
4
- data.tar.gz: 52c33acaef68aba563ab7de628ad9f723dec96a3
3
+ metadata.gz: 230e2bda8214b3cdf47ef5a4cab66f43dc8dfb07
4
+ data.tar.gz: 806778f33d6e770c715b939825985dba4c30bdd6
5
5
  SHA512:
6
- metadata.gz: efc8fadbac8c104f9dc020d5ed17723d3d02ef81a41d43b7c09557114e598f215a2ee7b9d92a7e3f33cdfcb9f374d320fe4829a116ff18d74efee8ec6a63cdcf
7
- data.tar.gz: 67e8c73f0b01d0eb3060e706faf7b18140364c23ce979df676ebe0c680b988312f05318732787c0c5dc93595b4e7b4628120a05f86dea1bf5951db3f2a8acb59
6
+ metadata.gz: 477015d269f48d3cd19e924c0f0a7e52cf30f7f0f76284a78f143d021f195c3d5b1bf13eb8548a1d5ce65eb05c1bddc0729f6024a162f6264fe27d56ba76e5ac
7
+ data.tar.gz: 5e55d8bf8e201328d7693e75d720709eb3d731bf951b99dee9b90cf216d09ec66c671fe209ebeb26c8fb1ab6ff985177dd0c455efd40ed8addf9643fc8e1fe7e
@@ -25,7 +25,12 @@ Heroku.SearchResultsRenderer = Heroku.SearchResultsRenderer || function () {
25
25
  }, {
26
26
  key: 'renderResult',
27
27
  value: function renderResult(hit) {
28
- return '<li class="search-result"><h4 class="search-result-title"><a href="' + hit.url + '">' + hit.title + '</a></h4><p class="search-result-slug"><a href="' + hit.url + '">' + hit.url + '</a></p><p class="search-result-desc">' + hit.description + '</p></li>';
28
+ result = '<li class="search-result"><h4 class="search-result-title"><a href="' + hit.url + '">' + hit.title + '</a></h4><p class="search-result-slug"><a href="' + hit.url + '">' + hit.url + '</a></p>'
29
+ if (hit.anchor) {
30
+ result += '<p class="search-result-desc">Jump to: <a href="' + hit.url + '#' + hit.anchor + '">' + hit.subtitle + '</a><br>'
31
+ }
32
+ result += hit.description + '</p></li>';
33
+ return result
29
34
  }
30
35
  }, {
31
36
  key: 'renderPagination',
@@ -8,14 +8,16 @@
8
8
  <%= hidden_field_tag :search_api_key, ENV['ALGOLIA_SEARCH_API_KEY'], id: 'search-api-key' %>
9
9
  <%= hidden_field_tag :search_base_index, ENV['ALGOLIA_BASE_INDEX'], id: 'search-base-index' %>
10
10
 
11
- <nav class="js-index-selector-container search-tabs">
12
- <ul>
13
- <li><a href="#" class="js-index-selector search-tab" data-index="www_page_idx">WWW</a></li>
14
- <li><a href="#" class="js-index-selector search-tab" data-index="dev_center_article_idx">Dev Center</a></li>
15
- <li><a href="#" class="js-index-selector search-tab" data-index="elements_resource_idx">Elements</a></li>
16
- <li><a href="#" class="js-index-selector search-tab" data-index="blog_post_idx">Blog</a></li>
17
- </ul>
18
- </nav>
11
+ <% if ENV['SEARCH_BASE_INDEX_ONLY'].nil? || ENV['SEARCH_BASE_INDEX_ONLY'].to_s == 'false' %>
12
+ <nav class="js-index-selector-container search-tabs">
13
+ <ul>
14
+ <li><a href="#" class="js-index-selector search-tab" data-index="www_page_idx">WWW</a></li>
15
+ <li><a href="#" class="js-index-selector search-tab" data-index="dev_center_article_idx">Dev Center</a></li>
16
+ <li><a href="#" class="js-index-selector search-tab" data-index="elements_resource_idx">Elements</a></li>
17
+ <li><a href="#" class="js-index-selector search-tab" data-index="blog_post_idx">Blog</a></li>
18
+ </ul>
19
+ </nav>
20
+ <% end %>
19
21
 
20
22
  <section class="js-search-results">
21
23
  <ul class="js-search-results-list search-results-list">
@@ -1,3 +1,3 @@
1
1
  module Bookends
2
- VERSION = '4.1.1'.freeze
2
+ VERSION = '4.2.0beta1'.freeze
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bookends
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.1.1
4
+ version: 4.2.0beta1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Marketing Web Ops at heroku
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-09-06 00:00:00.000000000 Z
11
+ date: 2017-09-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -362,9 +362,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
362
362
  version: '0'
363
363
  required_rubygems_version: !ruby/object:Gem::Requirement
364
364
  requirements:
365
- - - '>='
365
+ - - '>'
366
366
  - !ruby/object:Gem::Version
367
- version: '0'
367
+ version: 1.3.1
368
368
  requirements: []
369
369
  rubyforge_project:
370
370
  rubygems_version: 2.0.14