bookbindery 9.7.1 → 9.8.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: 54d62aa5475411b0c80c753dc8f4cf0e21f12fd9
4
- data.tar.gz: c65a07607977b4e01c9c983eba047b890f851c07
3
+ metadata.gz: ba0eb60bf1b74bd384b03d691636d672d718c632
4
+ data.tar.gz: 733bc8f77a67d9e9cd7295f6d814b5ec248cc49a
5
5
  SHA512:
6
- metadata.gz: 34aa3f3fcb0825763f670d727f5df1da9a015ab8c4e4a3a492c2286af14bc597e48597aec70b040fa5467f544b64664cf8712aed9dad3a74ee92c479c41c97c0
7
- data.tar.gz: 32e916ec01b7cd9300f40b0627a24bd89fcb8b3528579cde47dbd94967da41ad48f0b7c124826656d701bcf7d665316d9f36cd101e3b984b6c0ee7d732a42422
6
+ metadata.gz: bf39f3a12f00b60420890535a5a9569fcf6f7a0c25c30b7c710692b9779fd8eddb1bc11afa78202ff73cb8127951442685441d436e997220d9103334eafbef4b
7
+ data.tar.gz: 2fdec800de37d2d01c805df4e7451dd09f75923e9cef60c0509b13a67800dc9bf5598af92a12b7b14605e1f92a09cd9465dfe0dc8ad2bc0c81a1765c2af3233f
data/bookbinder.gemspec CHANGED
@@ -2,13 +2,13 @@ require 'base64'
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = 'bookbindery'
5
- s.version = '9.7.1'
5
+ s.version = '9.8.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']
9
9
  s.email = Base64.decode64('Z21vcmdhbkBnb3Bpdm90YWwuY29t') # Gavin's
10
10
 
11
- s.files = Dir['lib/**/*'] + Dir['template_app/**/*'] + Dir['master_middleman/**/*'] + Dir['install_bin/**/*'] + Dir['bookbinder.gemspec']
11
+ s.files = Dir['lib/**/*'] + Dir['template_app/**/*'] + Dir['master_middleman/**/*'] + Dir['install_bin/bookbinder'] + Dir['bookbinder.gemspec']
12
12
  s.homepage = 'https://github.com/pivotal-cf/bookbinder'
13
13
  s.license = 'MIT'
14
14
  s.bindir = 'install_bin'
@@ -64,7 +64,7 @@ module Bookbinder
64
64
  alias_method :subnav_name, :product_id
65
65
 
66
66
  def product_info
67
- return '' if config['product_info'].nil?
67
+ return {} if config['product_info'].nil?
68
68
  config['product_info']
69
69
  end
70
70
 
@@ -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
 
@@ -104,14 +104,7 @@ module Bookbinder
104
104
  end
105
105
 
106
106
  def product_info
107
- temp_template_key = template_key
108
- if config[:product_info][temp_template_key] == ''
109
- default = {use_local_header: false, changelog_href: '', local_header_img: '', local_header_title: '',
110
- local_header_links: [''], local_header_version_list: ['']}
111
- OpenStruct.new default
112
- else
113
- OpenStruct.new config[:product_info][temp_template_key]
114
- end
107
+ config[:product_info].fetch(template_key, {})
115
108
  end
116
109
 
117
110
  def quick_links
@@ -11,7 +11,7 @@
11
11
  }
12
12
 
13
13
  function openSubmenu(e) {
14
- if (e.srcElement.tagName !== 'A') {
14
+ if (e.target.tagName !== 'A') {
15
15
  var el = e.currentTarget;
16
16
  toggleClass(el, 'expanded');
17
17
  e.stopPropagation();
@@ -0,0 +1,5 @@
1
+ <% if current_page.data.title %>
2
+ <h1 class="title-container">
3
+ <%= current_page.data.title %>
4
+ </h1>
5
+ <% end %>
@@ -14,8 +14,8 @@
14
14
  <%= vars.book_title_short %>
15
15
  </title>
16
16
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
17
- <%= stylesheet_link_tag 'base', :media => 'screen, print' %>
18
- <%= stylesheet_link_tag 'book-styles', :media => 'screen, print' %>
17
+ <%= stylesheet_link_tag 'all', :media => 'screen, print' %>
18
+ <%= stylesheet_link_tag 'print', :media => 'print' %>
19
19
  <link href='/images/favicon.ico' rel='shortcut icon'>
20
20
 
21
21
  <%= javascript_include_tag "all" %>
@@ -32,7 +32,6 @@
32
32
 
33
33
  <%= partial 'layouts/header' %>
34
34
 
35
-
36
35
  <div class="container">
37
36
 
38
37
  <!--googleoff: index-->
@@ -42,11 +41,7 @@
42
41
  <main class="content content-layout" id="js-content" role="main">
43
42
  <a id="top"></a>
44
43
  <%= partial 'layouts/local-header' %>
45
- <% if current_page.data.title %>
46
- <h1 class="title-container">
47
- <%= current_page.data.title %>
48
- </h1>
49
- <% end %>
44
+ <%= partial 'layouts/title' %>
50
45
  <% if quick_links %>
51
46
  <div id="js-quick-links">
52
47
  <%= quick_links %>
@@ -0,0 +1,3 @@
1
+ @import "base";
2
+ @import "layout-styles";
3
+ @import "book-styles";
@@ -26,7 +26,15 @@
26
26
  .content-layout {
27
27
  padding: 2em 1.5em 2em 1.5em;
28
28
  @media (min-width: $bp-wide) {
29
- padding-top: 4.2em;
29
+ padding-top: 0;
30
+ }
31
+
32
+ @media (min-width: $bp-wide) {
33
+ #top {
34
+ padding-bottom: 4em;
35
+ border: none;
36
+ display: block;
37
+ }
30
38
  }
31
39
  }
32
40
  .has-subnav .container {
@@ -41,7 +49,7 @@
41
49
  .has-subnav .content-layout {
42
50
  @media (min-width: $bp-wide) {
43
51
  max-width: 45em;
44
- padding: 6.2em 2em 2em;
52
+ padding: 0 2em 2em;
45
53
  }
46
54
  }
47
55
  .nav-container {
@@ -291,12 +291,6 @@ category: basics
291
291
  .searchbar a:hover {
292
292
  border-bottom: 0;
293
293
  }
294
- .searchbar:hover,
295
- .active.searchbar {
296
- @media (min-width: $bp-wide) {
297
- //@include contrasted($color-accent-bright);
298
- }
299
- }
300
294
  .search-input-inner {
301
295
  position: relative;
302
296
  }
@@ -321,7 +315,6 @@ category: basics
321
315
  //@include border-bottom-radius(3px);
322
316
  display: none;
323
317
  @media (min-width: $bp-wide) {
324
- //@include contrasted($color-accent-bright);
325
318
  padding: 1em;
326
319
  position: absolute;
327
320
  right: 0;
@@ -413,9 +406,6 @@ category: basics
413
406
  color: $color-text;
414
407
  display: block;
415
408
  padding-left: 0.9em;
416
- &:hover {
417
- //@include contrasted($color-accent-bright);
418
- }
419
409
  }
420
410
  .header-dropdown-content ol,
421
411
  .header-dropdown-content ul {
@@ -22,7 +22,7 @@ $gray6: #fdfdfd;
22
22
 
23
23
  $color-accent: $gray6;
24
24
  $color-accent-bright: $gray6;
25
- $color-access-bright-contrast: #000000;
25
+ $color-accent-bright-contrast: #000000;
26
26
 
27
27
  // text colors
28
28
  $color-header: $gray2;
@@ -0,0 +1,58 @@
1
+ /*
2
+ * FILE: print.scss
3
+ ======================================================================== */
4
+ @import "partials/_vars.scss";
5
+
6
+ // Book-specific overrides
7
+ @import "partials/_book-vars.scss";
8
+
9
+ pre code, p code, .terminal {
10
+ font-family: "DejaVu Sans Mono";
11
+ page-break-inside: avoid;
12
+ }
13
+
14
+ ol li {
15
+ margin-left: 15px;
16
+ }
17
+
18
+ .wrap {
19
+ width: 2400px;
20
+
21
+ .container {
22
+ margin-left: 0;
23
+ }
24
+ }
25
+
26
+ li p code {
27
+ width: auto;
28
+ display: inline;
29
+ }
30
+
31
+ note {
32
+ overflow: visible;
33
+ page-break-inside: avoid !important;
34
+ page-break-before: avoid !important;
35
+ }
36
+
37
+ pre, pre code {
38
+ overflow: visible;
39
+ }
40
+
41
+ .pivotalcf .logo {
42
+ background: none;
43
+ padding-left: 0;
44
+ }
45
+
46
+ .quick-links,
47
+ .nav-container,
48
+ .header,
49
+ .site-footer-links,
50
+ #feedback {
51
+ display: none;
52
+ }
53
+
54
+ h1 {
55
+ margin-top: 0;
56
+ font-size: $font-size-l;
57
+ }
58
+
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.7.1
4
+ version: 9.8.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-06 00:00:00.000000000 Z
25
+ date: 2016-06-09 00:00:00.000000000 Z
26
26
  dependencies:
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: fog-aws
@@ -444,8 +444,12 @@ files:
444
444
  - master_middleman/source/layouts/_header.erb
445
445
  - master_middleman/source/layouts/_local-header.erb
446
446
  - master_middleman/source/layouts/_page-footer.erb
447
+ - master_middleman/source/layouts/_title.erb
447
448
  - master_middleman/source/layouts/layout.erb
449
+ - master_middleman/source/stylesheets/all.css.scss
448
450
  - master_middleman/source/stylesheets/base.scss
451
+ - master_middleman/source/stylesheets/book-styles.css.scss
452
+ - master_middleman/source/stylesheets/layout-styles.scss
449
453
  - master_middleman/source/stylesheets/partials/_book-base-values.scss
450
454
  - master_middleman/source/stylesheets/partials/_book-vars.scss
451
455
  - master_middleman/source/stylesheets/partials/_default.scss
@@ -457,6 +461,7 @@ files:
457
461
  - master_middleman/source/stylesheets/partials/_sidenav.scss
458
462
  - master_middleman/source/stylesheets/partials/_syntax-highlight.scss
459
463
  - master_middleman/source/stylesheets/partials/_vars.scss
464
+ - master_middleman/source/stylesheets/print.css.scss
460
465
  - master_middleman/source/subnavs/_default.erb
461
466
  - master_middleman/source/subnavs/_nav-links.erb
462
467
  - master_middleman/source/subnavs/_subnav_template.erb