m2m 0.2.7 → 0.2.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/compiler.rb +1 -1
- data/lib/generator.rb +1 -1
- data/lib/product.rb +1 -1
- data/lib/store.rb +116 -26
- data/lib/themes/gitbook/_assets/fonts/fontawesome/FontAwesome.otf +0 -0
- data/lib/themes/gitbook/_assets/fonts/fontawesome/fontawesome-webfont.eot +0 -0
- data/lib/themes/gitbook/_assets/fonts/fontawesome/fontawesome-webfont.svg +655 -0
- data/lib/themes/gitbook/_assets/fonts/fontawesome/fontawesome-webfont.ttf +0 -0
- data/lib/themes/gitbook/_assets/fonts/fontawesome/fontawesome-webfont.woff +0 -0
- data/lib/themes/gitbook/_assets/fonts/fontawesome/fontawesome-webfont.woff2 +0 -0
- data/lib/themes/gitbook/_assets/gitbook.js +4 -0
- data/lib/themes/gitbook/_assets/highlight/github.css +124 -0
- data/lib/themes/gitbook/_assets/highlight/highlight.js +1 -0
- data/lib/themes/gitbook/_assets/images/apple-touch-icon-precomposed-152.png +0 -0
- data/lib/themes/gitbook/_assets/images/favicon.ico +0 -0
- data/lib/themes/gitbook/_assets/style.css +9 -0
- data/lib/themes/gitbook/_assets/theme.js +4 -0
- data/lib/themes/gitbook/template/article.mustache +29 -0
- data/lib/themes/gitbook/template/home.mustache +24 -0
- data/lib/themes/gitbook/template/index.mustache +24 -0
- data/lib/themes/gitbook/template/mail.mustache +5 -0
- data/lib/themes/gitbook/template/partials/footer.mustache +3 -0
- data/lib/themes/gitbook/template/partials/head.mustache +22 -0
- data/lib/themes/gitbook/template/partials/header.mustache +78 -0
- data/lib/themes/gitbook/template/partials/summary.mustache +31 -0
- metadata +23 -2
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
<div class="book-header">
|
|
2
|
+
<!-- Actions Left -->
|
|
3
|
+
<a href="#" class="btn pull-left toggle-summary" aria-label="Table of Contents"><i class="fa fa-align-justify"></i></a>
|
|
4
|
+
<a href="#" class="btn pull-left toggle-search" aria-label="Search"><i class="fa fa-search"></i></a>
|
|
5
|
+
|
|
6
|
+
<div id="font-settings-wrapper" class="dropdown pull-left">
|
|
7
|
+
<a href="#" class="btn toggle-dropdown" aria-label="Font Settings"><i class="fa fa-font"></i>
|
|
8
|
+
</a>
|
|
9
|
+
<div class="dropdown-menu font-settings">
|
|
10
|
+
<div class="dropdown-caret">
|
|
11
|
+
<span class="caret-outer"></span>
|
|
12
|
+
<span class="caret-inner"></span>
|
|
13
|
+
</div>
|
|
14
|
+
|
|
15
|
+
<div class="buttons">
|
|
16
|
+
<button type="button" id="reduce-font-size" class="button size-2">A</button>
|
|
17
|
+
<button type="button" id="enlarge-font-size" class="button size-2">A</button>
|
|
18
|
+
</div>
|
|
19
|
+
|
|
20
|
+
<div class="buttons font-family-list">
|
|
21
|
+
<button type="button" data-font="0" class="button">Serif</button>
|
|
22
|
+
<button type="button" data-font="1" class="button">Sans</button>
|
|
23
|
+
</div>
|
|
24
|
+
|
|
25
|
+
<div class="buttons color-theme-list">
|
|
26
|
+
<button type="button" id="color-theme-preview-0" class="button size-3" data-theme="0">White</button>
|
|
27
|
+
<button type="button" id="color-theme-preview-1" class="button size-3" data-theme="1">Sepia</button>
|
|
28
|
+
<button type="button" id="color-theme-preview-2" class="button size-3" data-theme="2">Night</button>
|
|
29
|
+
</div>
|
|
30
|
+
</div>
|
|
31
|
+
|
|
32
|
+
</div>
|
|
33
|
+
<!-- Actions Right -->
|
|
34
|
+
|
|
35
|
+
<div class="dropdown pull-right">
|
|
36
|
+
<a href="#" class="btn toggle-dropdown" aria-label="Share"><i class="fa fa-share-alt"></i>
|
|
37
|
+
</a>
|
|
38
|
+
<div class="dropdown-menu font-settings dropdown-left">
|
|
39
|
+
<div class="dropdown-caret">
|
|
40
|
+
<span class="caret-outer"></span>
|
|
41
|
+
<span class="caret-inner"></span>
|
|
42
|
+
</div>
|
|
43
|
+
<div class="buttons">
|
|
44
|
+
<button type="button" data-sharing="twitter" class="button">
|
|
45
|
+
Share on Twitter
|
|
46
|
+
</button>
|
|
47
|
+
<button type="button" data-sharing="google-plus" class="button">
|
|
48
|
+
Share on Google
|
|
49
|
+
</button>
|
|
50
|
+
<button type="button" data-sharing="facebook" class="button">
|
|
51
|
+
Share on Facebook
|
|
52
|
+
</button>
|
|
53
|
+
<button type="button" data-sharing="weibo" class="button">
|
|
54
|
+
Share on Weibo
|
|
55
|
+
</button>
|
|
56
|
+
<button type="button" data-sharing="instapaper" class="button">
|
|
57
|
+
Share on Instapaper
|
|
58
|
+
</button>
|
|
59
|
+
</div>
|
|
60
|
+
</div>
|
|
61
|
+
</div>
|
|
62
|
+
|
|
63
|
+
|
|
64
|
+
|
|
65
|
+
<a href="#" target="_blank" class="btn pull-right google-plus-sharing-link sharing-link" data-sharing="google-plus" aria-label="Google"><i class="fa fa-google-plus"></i></a>
|
|
66
|
+
|
|
67
|
+
|
|
68
|
+
<a href="#" target="_blank" class="btn pull-right facebook-sharing-link sharing-link" data-sharing="facebook" aria-label="Facebook"><i class="fa fa-facebook"></i></a>
|
|
69
|
+
|
|
70
|
+
|
|
71
|
+
<a href="#" target="_blank" class="btn pull-right twitter-sharing-link sharing-link" data-sharing="twitter" aria-label="Twitter"><i class="fa fa-twitter"></i></a>
|
|
72
|
+
|
|
73
|
+
<!-- Title -->
|
|
74
|
+
<h1>
|
|
75
|
+
<i class="fa fa-circle-o-notch fa-spin"></i>
|
|
76
|
+
<a href="{{site.host}}">{{site.title}}</a>
|
|
77
|
+
</h1>
|
|
78
|
+
</div>
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
<div class="book-summary">
|
|
2
|
+
<ul class="summary">
|
|
3
|
+
{{#categories}}
|
|
4
|
+
<!--根目录的文章-->
|
|
5
|
+
<li class="chapter" data-path="{{relative_url}}">
|
|
6
|
+
<a href="{{relative_url}}">
|
|
7
|
+
{{title}}
|
|
8
|
+
</a>
|
|
9
|
+
|
|
10
|
+
{{#__children__}}
|
|
11
|
+
|
|
12
|
+
<ul class="articles">
|
|
13
|
+
<li class="chapter">
|
|
14
|
+
<a href="/{{relative_url}}">
|
|
15
|
+
{{title}}
|
|
16
|
+
</a>
|
|
17
|
+
</li>
|
|
18
|
+
</ul>
|
|
19
|
+
|
|
20
|
+
{{/__children__}}
|
|
21
|
+
</li>
|
|
22
|
+
{{/categories}}
|
|
23
|
+
|
|
24
|
+
<li class="divider"></li>
|
|
25
|
+
<li>
|
|
26
|
+
<a href="{{m2m.homepage}}" target="blank" class="gitbook-link">
|
|
27
|
+
Published with {{m2m.name}}
|
|
28
|
+
</a>
|
|
29
|
+
</li>
|
|
30
|
+
</ul>
|
|
31
|
+
</div>
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: m2m
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.2.
|
|
4
|
+
version: 0.2.8
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- wvv8oo
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2016-
|
|
11
|
+
date: 2016-07-03 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: bundler
|
|
@@ -180,6 +180,27 @@ files:
|
|
|
180
180
|
- lib/server.rb
|
|
181
181
|
- lib/setup.rb
|
|
182
182
|
- lib/store.rb
|
|
183
|
+
- lib/themes/gitbook/_assets/fonts/fontawesome/FontAwesome.otf
|
|
184
|
+
- lib/themes/gitbook/_assets/fonts/fontawesome/fontawesome-webfont.eot
|
|
185
|
+
- lib/themes/gitbook/_assets/fonts/fontawesome/fontawesome-webfont.svg
|
|
186
|
+
- lib/themes/gitbook/_assets/fonts/fontawesome/fontawesome-webfont.ttf
|
|
187
|
+
- lib/themes/gitbook/_assets/fonts/fontawesome/fontawesome-webfont.woff
|
|
188
|
+
- lib/themes/gitbook/_assets/fonts/fontawesome/fontawesome-webfont.woff2
|
|
189
|
+
- lib/themes/gitbook/_assets/gitbook.js
|
|
190
|
+
- lib/themes/gitbook/_assets/highlight/github.css
|
|
191
|
+
- lib/themes/gitbook/_assets/highlight/highlight.js
|
|
192
|
+
- lib/themes/gitbook/_assets/images/apple-touch-icon-precomposed-152.png
|
|
193
|
+
- lib/themes/gitbook/_assets/images/favicon.ico
|
|
194
|
+
- lib/themes/gitbook/_assets/style.css
|
|
195
|
+
- lib/themes/gitbook/_assets/theme.js
|
|
196
|
+
- lib/themes/gitbook/template/article.mustache
|
|
197
|
+
- lib/themes/gitbook/template/home.mustache
|
|
198
|
+
- lib/themes/gitbook/template/index.mustache
|
|
199
|
+
- lib/themes/gitbook/template/mail.mustache
|
|
200
|
+
- lib/themes/gitbook/template/partials/footer.mustache
|
|
201
|
+
- lib/themes/gitbook/template/partials/head.mustache
|
|
202
|
+
- lib/themes/gitbook/template/partials/header.mustache
|
|
203
|
+
- lib/themes/gitbook/template/partials/summary.mustache
|
|
183
204
|
- lib/themes/hyde/static/hyde.css
|
|
184
205
|
- lib/themes/hyde/template/article.mustache
|
|
185
206
|
- lib/themes/hyde/template/home.mustache
|