bookbindery 9.6.0 → 9.6.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/bookbinder.gemspec +1 -1
- data/master_middleman/source/javascripts/sidenav.js +10 -2
- data/master_middleman/source/layouts/layout.erb +2 -2
- data/master_middleman/source/stylesheets/partials/_sidenav.scss +102 -2
- data/master_middleman/source/subnavs/_subnav_template.erb +2 -2
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e302ff6d4ab515306e9318852b35f5a76cbf31e9
|
4
|
+
data.tar.gz: e674caa968578818d6b1fc8c8caf3f17a5b4c1de
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 682616ee0377b5de0985029f3eef5bb9d78fb09826e0a4ef5c3464e0321c9457c13f332f30903775684a61105e3a4420e5c20793eaf283c7ad8e1242b2c7a82c
|
7
|
+
data.tar.gz: dd1ea778df634876b0464897b798f2913b3d062ba1647aaf22ba1c30481db5d202c5d5b2417e4730fa18b0ed485467a1734cc5ff161ecc8c39bcd5bba932e806
|
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.6.
|
5
|
+
s.version = '9.6.1'
|
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']
|
@@ -2,7 +2,7 @@
|
|
2
2
|
var isExpanded = /\bexpanded\b/;
|
3
3
|
|
4
4
|
function openSubmenu(e) {
|
5
|
-
var el = e.
|
5
|
+
var el = e.currentTarget;
|
6
6
|
if (isExpanded.test(el.className)) {
|
7
7
|
el.className = el.className.replace(isExpanded, '');
|
8
8
|
} else {
|
@@ -11,12 +11,20 @@
|
|
11
11
|
e.stopPropagation();
|
12
12
|
}
|
13
13
|
|
14
|
+
function registerOnClick(el) {
|
15
|
+
if (el.addEventListener) {
|
16
|
+
el.addEventListener('click', openSubmenu);
|
17
|
+
} else {
|
18
|
+
el.onclick = openSubmenu;
|
19
|
+
}
|
20
|
+
}
|
21
|
+
|
14
22
|
window.Bookbinder = {
|
15
23
|
startSidenav: function(rootEl, currentPath) {
|
16
24
|
var submenus = rootEl.querySelectorAll('.has_submenu');
|
17
25
|
|
18
26
|
for (var i = 0; i < submenus.length; i++) {
|
19
|
-
submenus[i]
|
27
|
+
registerOnClick(submenus[i]);
|
20
28
|
}
|
21
29
|
|
22
30
|
if (currentPath) {
|
@@ -18,11 +18,11 @@
|
|
18
18
|
<%= stylesheet_link_tag 'book-styles', :media => 'screen, print' %>
|
19
19
|
<link href='/images/favicon.ico' rel='shortcut icon'>
|
20
20
|
|
21
|
-
<script src="/javascripts/sidenav.js"
|
21
|
+
<script src="/javascripts/sidenav.js"></script>
|
22
22
|
<%= partial 'layouts/additional-scripts' %>
|
23
23
|
</head>
|
24
24
|
|
25
|
-
<body class="<%=
|
25
|
+
<body class="<%= body_classes %><%= yield_for_subnav.empty? ? '' : ' has-subnav' %>">
|
26
26
|
|
27
27
|
<div class="viewport">
|
28
28
|
<div class='wrap'>
|
@@ -1,3 +1,103 @@
|
|
1
|
+
/*
|
2
|
+
* FILE: _sidenav.scss
|
3
|
+
======================================================================== */
|
4
|
+
|
5
|
+
/*doc
|
6
|
+
---
|
7
|
+
title: Nav - Side Nav Default
|
8
|
+
name: nav-side_nav_default
|
9
|
+
category: basics
|
10
|
+
---
|
11
|
+
```html_example
|
12
|
+
<a class="sidenav-title" data-behavior="SubMenuMobile">
|
13
|
+
Doc Index
|
14
|
+
</a>
|
15
|
+
<div class="nav-content">
|
16
|
+
<ul class="menu">
|
17
|
+
<li class="menu-item js-menu-item">
|
18
|
+
<div class="menu-title js-menu-title">
|
19
|
+
Side Nav Title 1
|
20
|
+
</div>
|
21
|
+
<div class="menu-content js-menu-content" aria-hidden="true">
|
22
|
+
<ul>
|
23
|
+
<li class="menu-link">
|
24
|
+
<a href="#">
|
25
|
+
Item
|
26
|
+
</a>
|
27
|
+
</li>
|
28
|
+
<li class="menu-link">
|
29
|
+
<a href="#">
|
30
|
+
Item
|
31
|
+
</a>
|
32
|
+
</li>
|
33
|
+
</ul>
|
34
|
+
</div>
|
35
|
+
</li>
|
36
|
+
<li class="menu-item js-menu-item">
|
37
|
+
<div class="menu-title js-menu-title">
|
38
|
+
Side Nav Title 2
|
39
|
+
</div>
|
40
|
+
<div class="menu-content js-menu-content" aria-hidden="true">
|
41
|
+
<ul>
|
42
|
+
<li class="menu-link">
|
43
|
+
<a href="#">
|
44
|
+
Item
|
45
|
+
</a>
|
46
|
+
</li>
|
47
|
+
<li class="menu-link">
|
48
|
+
<a href="#">
|
49
|
+
Item
|
50
|
+
</a>
|
51
|
+
</li>
|
52
|
+
</ul>
|
53
|
+
</div>
|
54
|
+
</li>
|
55
|
+
<li class="menu-item js-menu-item">
|
56
|
+
<div class="menu-title js-menu-title">
|
57
|
+
Side Nav Item 3
|
58
|
+
</div>
|
59
|
+
<div class="menu-content js-menu-content" aria-hidden="true">
|
60
|
+
<div class="menu-subtitle">
|
61
|
+
Side Nav Subtitle
|
62
|
+
</div>
|
63
|
+
<ul>
|
64
|
+
<li class="menu-link">
|
65
|
+
<a href="#">
|
66
|
+
Item
|
67
|
+
</a>
|
68
|
+
</li>
|
69
|
+
<li class="menu-link">
|
70
|
+
<a href="#">
|
71
|
+
Item
|
72
|
+
</a>
|
73
|
+
</li>
|
74
|
+
</ul>
|
75
|
+
<div class="menu-subtitle">
|
76
|
+
Side Nav Subtitle
|
77
|
+
</div>
|
78
|
+
<ul>
|
79
|
+
<li class="menu-link">
|
80
|
+
<a href="#">
|
81
|
+
Item
|
82
|
+
</a>
|
83
|
+
</li>
|
84
|
+
<li class="menu-link">
|
85
|
+
<a href="#">
|
86
|
+
Item
|
87
|
+
</a>
|
88
|
+
</li>
|
89
|
+
<li class="menu-link">
|
90
|
+
<a href="#">
|
91
|
+
Item
|
92
|
+
</a>
|
93
|
+
</li>
|
94
|
+
</ul>
|
95
|
+
</div>
|
96
|
+
</li>
|
97
|
+
</ul>
|
98
|
+
</div>
|
99
|
+
```
|
100
|
+
*/
|
1
101
|
|
2
102
|
.sidenav-title {
|
3
103
|
border: 0;
|
@@ -68,7 +168,7 @@
|
|
68
168
|
}
|
69
169
|
|
70
170
|
// navigation links
|
71
|
-
.nav-content a {
|
171
|
+
.nav-content a, .nav-content span {
|
72
172
|
border-width: 1px 0 1px 1px;
|
73
173
|
border-style: solid;
|
74
174
|
border-color: transparent;
|
@@ -114,7 +214,7 @@
|
|
114
214
|
line-height: 1;
|
115
215
|
}
|
116
216
|
|
117
|
-
> a {
|
217
|
+
> a, > span {
|
118
218
|
margin-left: 1em;
|
119
219
|
float: none;
|
120
220
|
width: inherit;
|