bookbindery 9.8.0 → 9.9.0

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: ba0eb60bf1b74bd384b03d691636d672d718c632
4
- data.tar.gz: 733bc8f77a67d9e9cd7295f6d814b5ec248cc49a
3
+ metadata.gz: d3e9b9d9984fdb5afedfa756024384d4a9bf9e5b
4
+ data.tar.gz: 9cdf1c79a329c48f0811bfa4f418d17f7ec5a8e9
5
5
  SHA512:
6
- metadata.gz: bf39f3a12f00b60420890535a5a9569fcf6f7a0c25c30b7c710692b9779fd8eddb1bc11afa78202ff73cb8127951442685441d436e997220d9103334eafbef4b
7
- data.tar.gz: 2fdec800de37d2d01c805df4e7451dd09f75923e9cef60c0509b13a67800dc9bf5598af92a12b7b14605e1f92a09cd9465dfe0dc8ad2bc0c81a1765c2af3233f
6
+ metadata.gz: aab7f18000c610ea0fb322f403ebc2c3703b734fb3ff6867f260bf4666e375bf76564a12465a199205c8a5392f787c2ec8c686e37f15fe3fb53c46eb2924a43b
7
+ data.tar.gz: 55271d726387b9e4108c0519373c31eb26ff4e05e5e4166585c933f7d59f201442ba825fba387b2b121341514a1e372660a88e381bea513b7b35beca0e02fd0c
data/bookbinder.gemspec CHANGED
@@ -2,7 +2,7 @@ require 'base64'
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = 'bookbindery'
5
- s.version = '9.8.0'
5
+ s.version = '9.9.0'
6
6
  s.summary = 'Markdown to Rackup application documentation generator'
7
7
  s.description = 'A command line utility to be run in Book repositories to stitch together their constituent Markdown repos into a static-HTML-serving application'
8
8
  s.authors = ['Mike Grafton', 'Lucas Marks', 'Gavin Morgan', 'Nikhil Gajwani', 'Dan Wendorf', 'Brenda Chan', 'Matthew Boedicker', 'Andrew Bruce', 'Frank Kotsianas', 'Elena Sharma', 'Christa Hartsock', 'Michael Trestman', 'Alpha Chen', 'Sarah McAlear', 'Gregg Van Hove']
@@ -36,7 +36,7 @@ module Bookbinder
36
36
  end
37
37
 
38
38
  def most_recent_pdf(dir_path)
39
- pdfs_by_modified_date = Dir.glob(dir_path + '*/*.pdf').sort_by{ |f| File.mtime(f) }
39
+ pdfs_by_modified_date = Dir.glob(dir_path + '**/*.pdf').sort_by{ |f| File.mtime(f) }
40
40
  pdfs_by_modified_date.last
41
41
  end
42
42
 
@@ -45,6 +45,8 @@
45
45
 
46
46
  window.Bookbinder = {
47
47
  startSidenav: function(rootEl, currentPath) {
48
+ if (!rootEl) { return; }
49
+
48
50
  var submenus = rootEl.querySelectorAll('.has_submenu');
49
51
 
50
52
  for (var i = 0; i < submenus.length; i++) {
@@ -30,7 +30,8 @@
30
30
  }
31
31
 
32
32
  @media (min-width: $bp-wide) {
33
- #top {
33
+ #top:before {
34
+ content: '';
34
35
  padding-bottom: 4em;
35
36
  border: none;
36
37
  display: block;
@@ -60,4 +60,5 @@ $bp-superwide: 1340px/$em-base + 0em;
60
60
  $bp-widest: 900px/$em-base + 0em;
61
61
  $bp-wide: 700px/$em-base + 0em;
62
62
 
63
+ @import "layout-vars.scss";
63
64
  @import "book-vars.scss";
@@ -5,11 +5,13 @@ module Bookbinder
5
5
  source_fields = attrs.fetch('_source')
6
6
  @title = source_fields.fetch('title').sub(/\A(.+)\|.*\z/, '\\1').strip
7
7
  @url = source_fields.fetch('url')
8
+ @product_name = source_fields['product_name']
9
+ @product_version = source_fields['product_version']
8
10
 
9
11
  @text = attrs.fetch('highlight').fetch('text').first.strip
10
12
  end
11
13
 
12
- attr_reader :title, :url, :text
14
+ attr_reader :title, :url, :text, :product_name, :product_version
13
15
  end
14
16
  end
15
17
  end
@@ -18,7 +18,7 @@ module Bookbinder
18
18
  options = YAML.load_file(File.expand_path('../../../search.yml', __FILE__))
19
19
 
20
20
  options['from'] = (page_number - 1) * 10
21
- options['query']['bool']['should']['query_string']['query'] = search_term
21
+ options['query']['bool']['should']['simple_query_string']['query'] = search_term
22
22
 
23
23
  unless product_name.nil?
24
24
  filters = [{
@@ -28,6 +28,10 @@
28
28
  <% result_list.each do |hit| %>
29
29
  <li>
30
30
  <a href="<%= hit.url %>"><%= hit.title %></a>
31
+ <% if hit.product_name %>
32
+ <br/>
33
+ <b><%= hit.product_name %> <%= hit.product_version %></b>
34
+ <% end %>
31
35
  <div><%= hit.text %></div>
32
36
  </li>
33
37
  <% end %>
@@ -2,15 +2,19 @@
2
2
  query:
3
3
  bool:
4
4
  should:
5
- query_string:
5
+ simple_query_string:
6
6
  query: ''
7
- default_field: text
7
+ fields:
8
+ - text
9
+ - title^10
8
10
  minimum_should_match: 1
9
11
  from: 0
10
12
  size: 10
11
13
  _source:
12
14
  - url
13
15
  - title
16
+ - product_name
17
+ - product_version
14
18
  highlight:
15
19
  fields:
16
20
  text:
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bookbindery
3
3
  version: !ruby/object:Gem::Version
4
- version: 9.8.0
4
+ version: 9.9.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mike Grafton
@@ -22,7 +22,7 @@ authors:
22
22
  autorequire:
23
23
  bindir: install_bin
24
24
  cert_chain: []
25
- date: 2016-06-09 00:00:00.000000000 Z
25
+ date: 2016-06-10 00:00:00.000000000 Z
26
26
  dependencies:
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: fog-aws
@@ -455,6 +455,7 @@ files:
455
455
  - master_middleman/source/stylesheets/partials/_default.scss
456
456
  - master_middleman/source/stylesheets/partials/_footer.scss
457
457
  - master_middleman/source/stylesheets/partials/_header.scss
458
+ - master_middleman/source/stylesheets/partials/_layout-vars.scss
458
459
  - master_middleman/source/stylesheets/partials/_mixins.scss
459
460
  - master_middleman/source/stylesheets/partials/_reset.scss
460
461
  - master_middleman/source/stylesheets/partials/_search.scss