asciibook 0.0.2.beta2 → 0.0.5
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/README.adoc +18 -48
- data/book_template/asciibook.yml +13 -4
- data/lib/asciibook/book.rb +15 -12
- data/lib/asciibook/builders/epub_builder.rb +2 -2
- data/lib/asciibook/builders/html_builder.rb +2 -2
- data/lib/asciibook/builders/pdf_builder.rb +4 -3
- data/lib/asciibook/command.rb +24 -4
- data/lib/asciibook/converter.rb +9 -1
- data/lib/asciibook/page.rb +38 -1
- data/lib/asciibook/version.rb +1 -1
- data/lib/asciibook.rb +1 -0
- data/templates/admonition.html +7 -2
- data/templates/image.html +1 -1
- data/templates/inline_break.html +1 -0
- data/templates/inline_callout.html +1 -1
- data/templates/inline_image.html +3 -1
- data/theme/html/html.css +352 -39
- data/theme/html/html.js +134 -4
- data/theme/html/icon.png +0 -0
- data/theme/html/layout.html +122 -52
- data/theme/mobi/fontawesome/solid.css +13 -0
- data/theme/mobi/mobi.css +1 -1
- data/theme/pdf/pdf.css +6 -0
- data/theme/share/default.css +70 -1
- metadata +47 -16
data/theme/html/layout.html
CHANGED
@@ -1,32 +1,46 @@
|
|
1
1
|
<!DOCTYPE html>
|
2
2
|
<html>
|
3
3
|
<head>
|
4
|
-
<meta charset="utf-8"
|
4
|
+
<meta charset="utf-8" />
|
5
5
|
<title>{{ page.title }} - {{ book.title }}</title>
|
6
|
-
<
|
6
|
+
<link rel="icon" href="icon.png" />
|
7
|
+
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no" />
|
8
|
+
|
9
|
+
{% if book.attributes.base-url %}
|
10
|
+
<meta name="twitter:card" content="summary" />
|
11
|
+
<meta property="og:type" content="website" />
|
12
|
+
<meta property="og:url" content="{{ book.attributes.base-url }}{{ page.path }}" />
|
13
|
+
<meta property="og:title" content="{{ page.title }} - {{ book.title }}" />
|
14
|
+
<meta property="og:description" content="{{ page.description }}" />
|
15
|
+
{% if page.image_url %}
|
16
|
+
{% if page.image_url contains 'http://' or page.image_url contains 'https://' %}
|
17
|
+
<meta property="og:image" content="{{ page.image_url }}" />
|
18
|
+
{% else %}
|
19
|
+
<meta property="og:image" content="{{ book.attributes.base-url }}{{ page.image_url }}" />
|
20
|
+
{% endif %}
|
21
|
+
{% endif %}
|
22
|
+
{% endif %}
|
23
|
+
|
7
24
|
<link rel="stylesheet" href="normalize.css" />
|
8
25
|
<link rel="stylesheet" href="default.css" />
|
9
26
|
<link rel="stylesheet" href="highlight.css" />
|
10
27
|
<link rel="stylesheet" href="html.css" />
|
11
|
-
<script src="html.js"
|
28
|
+
<script src="html.js"></script>
|
12
29
|
</head>
|
13
|
-
<body>
|
14
|
-
<div id="drawer" class="drawer"
|
30
|
+
<body class="preload">
|
31
|
+
<div id="drawer" class="drawer">
|
15
32
|
<div class="drawer-content">
|
16
|
-
<div class="
|
17
|
-
|
18
|
-
</div>
|
19
|
-
<div class="nav">
|
20
|
-
{% if book.toc[0] %}
|
33
|
+
<div class="drawer-menu">
|
34
|
+
{% if book.outline.size > 0 %}
|
21
35
|
<ol>
|
22
|
-
{% for item in book.
|
23
|
-
<li
|
24
|
-
<a href="{{ item.path }}">{{ item.title }}</a>
|
25
|
-
{% if item.items %}
|
36
|
+
{% for item in book.outline %}
|
37
|
+
<li>
|
38
|
+
<a class="drawer-menu-item {% if item.path == page.path %} active {% endif %}" href="{{ item.path }}">{{ item.title }}</a>
|
39
|
+
{% if item.items.size > 0 %}
|
26
40
|
<ol>
|
27
41
|
{% for subitem in item.items %}
|
28
|
-
<li
|
29
|
-
<a href="{{ subitem.path }}">{{ subitem.title }}</a>
|
42
|
+
<li>
|
43
|
+
<a class="drawer-menu-item {% if subitem.path == page.path %} active {% endif %}" href="{{ subitem.path }}">{{ subitem.title }}</a>
|
30
44
|
</li>
|
31
45
|
{% endfor %}
|
32
46
|
</ol>
|
@@ -37,53 +51,109 @@
|
|
37
51
|
{% endif %}
|
38
52
|
</div>
|
39
53
|
</div>
|
40
|
-
<div
|
54
|
+
<div class="drawer-backdrop">
|
41
55
|
</div>
|
42
56
|
</div>
|
43
|
-
<div class="
|
44
|
-
<div class="toolbar
|
45
|
-
<
|
46
|
-
|
47
|
-
|
48
|
-
</div>
|
49
|
-
<div class="toolbar-action">
|
50
|
-
<div class="dropdown">
|
51
|
-
<button id="drawer-button" type="button" class="dropdown-toggle button button-icon">
|
52
|
-
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M3 9h14V7H3v2zm0 4h14v-2H3v2zm0 4h14v-2H3v2zm16 0h2v-2h-2v2zm0-10v2h2V7h-2zm0 6h2v-2h-2v2z"/><path d="M0 0h24v24H0z" fill="none"/></svg>
|
57
|
+
<div class="main">
|
58
|
+
<div class="toolbar">
|
59
|
+
<div class="toolbar-action">
|
60
|
+
<button id="drawer-toggle" type="button" class="button button-icon">
|
61
|
+
<svg xmlns="http://www.w3.org/2000/svg" height="24" viewBox="0 0 24 24" width="24"><path d="M0 0h24v24H0V0z" fill="none"/><path d="M4 18h16c.55 0 1-.45 1-1s-.45-1-1-1H4c-.55 0-1 .45-1 1s.45 1 1 1zm0-5h16c.55 0 1-.45 1-1s-.45-1-1-1H4c-.55 0-1 .45-1 1s.45 1 1 1zM3 7c0 .55.45 1 1 1h16c.55 0 1-.45 1-1s-.45-1-1-1H4c-.55 0-1 .45-1 1z"/></svg>
|
53
62
|
</button>
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
63
|
+
</div>
|
64
|
+
<div class="toolbar-title">
|
65
|
+
<a href="index.html">
|
66
|
+
{{ book.title }}
|
67
|
+
</a>
|
68
|
+
</div>
|
69
|
+
|
70
|
+
<div class="toolbar-action">
|
71
|
+
<div class="dropdown">
|
72
|
+
<button type="button" class="button button-icon dropdown-toggle">
|
73
|
+
<svg xmlns="http://www.w3.org/2000/svg" height="24" viewBox="0 0 24 24" width="24"><path d="M0 0h24v24H0V0z" fill="none"/><path d="M9 5.5c0 .83.67 1.5 1.5 1.5H14v10.5c0 .83.67 1.5 1.5 1.5s1.5-.67 1.5-1.5V7h3.5c.83 0 1.5-.67 1.5-1.5S21.33 4 20.5 4h-10C9.67 4 9 4.67 9 5.5zM4.5 12H6v5.5c0 .83.67 1.5 1.5 1.5S9 18.33 9 17.5V12h1.5c.83 0 1.5-.67 1.5-1.5S11.33 9 10.5 9h-6C3.67 9 3 9.67 3 10.5S3.67 12 4.5 12z"/></svg>
|
74
|
+
</button>
|
75
|
+
<div class="dropdown-menu">
|
76
|
+
<div class="dropdown-group">
|
77
|
+
<label>Font Size</label>
|
78
|
+
<div class="dropdown-options font-size-options">
|
79
|
+
<button type="button" class="button button-icon" data-action="reduce">
|
80
|
+
<svg xmlns="http://www.w3.org/2000/svg" height="24" viewBox="0 0 24 24" width="24"><path d="M0 0h24v24H0V0z" fill="none"/><path d="M18 13H6c-.55 0-1-.45-1-1s.45-1 1-1h12c.55 0 1 .45 1 1s-.45 1-1 1z"/></svg>
|
81
|
+
</button>
|
82
|
+
<div id="font-size-text">
|
83
|
+
100%
|
84
|
+
</div>
|
85
|
+
<button type="button" class="button button-icon" data-action="add">
|
86
|
+
<svg xmlns="http://www.w3.org/2000/svg" height="24" viewBox="0 0 24 24" width="24"><path d="M0 0h24v24H0V0z" fill="none"/><path d="M18 13h-5v5c0 .55-.45 1-1 1s-1-.45-1-1v-5H6c-.55 0-1-.45-1-1s.45-1 1-1h5V6c0-.55.45-1 1-1s1 .45 1 1v5h5c.55 0 1 .45 1 1s-.45 1-1 1z"/></svg>
|
87
|
+
</button>
|
88
|
+
</div>
|
89
|
+
</div>
|
90
|
+
<div class="dropdown-group">
|
91
|
+
<label>Font Family</label>
|
92
|
+
<div class="dropdown-options font-family-options">
|
93
|
+
<button type="button" class="button button-text" data-value="serif">Serif</button>
|
94
|
+
<button type="button" class="button button-text" data-value="sans-serif">Sans</button>
|
95
|
+
</div>
|
96
|
+
</div>
|
97
|
+
<div class="dropdown-group">
|
98
|
+
<label>Background</label>
|
99
|
+
<div class="dropdown-options background-options">
|
100
|
+
<button type="button" class="button button-icon active" data-value="white">
|
101
|
+
<svg xmlns="http://www.w3.org/2000/svg" height="24" viewBox="0 0 24 24" width="24"><path d="M0 0h24v24H0V0z" fill="none"/><path d="M9 16.17L5.53 12.7c-.39-.39-1.02-.39-1.41 0-.39.39-.39 1.02 0 1.41l4.18 4.18c.39.39 1.02.39 1.41 0L20.29 7.71c.39-.39.39-1.02 0-1.41-.39-.39-1.02-.39-1.41 0L9 16.17z"/></svg>
|
102
|
+
</button>
|
103
|
+
<button type="button" class="button button-icon" data-value="warm">
|
104
|
+
<svg xmlns="http://www.w3.org/2000/svg" height="24" viewBox="0 0 24 24" width="24"><path d="M0 0h24v24H0V0z" fill="none"/><path d="M9 16.17L5.53 12.7c-.39-.39-1.02-.39-1.41 0-.39.39-.39 1.02 0 1.41l4.18 4.18c.39.39 1.02.39 1.41 0L20.29 7.71c.39-.39.39-1.02 0-1.41-.39-.39-1.02-.39-1.41 0L9 16.17z"/></svg>
|
105
|
+
</button>
|
106
|
+
<button type="button" class="button button-icon" data-value="dim">
|
107
|
+
<svg xmlns="http://www.w3.org/2000/svg" height="24" viewBox="0 0 24 24" width="24"><path d="M0 0h24v24H0V0z" fill="none"/><path d="M9 16.17L5.53 12.7c-.39-.39-1.02-.39-1.41 0-.39.39-.39 1.02 0 1.41l4.18 4.18c.39.39 1.02.39 1.41 0L20.29 7.71c.39-.39.39-1.02 0-1.41-.39-.39-1.02-.39-1.41 0L9 16.17z"/></svg>
|
108
|
+
</button>
|
109
|
+
<button type="button" class="button button-icon" data-value="black">
|
110
|
+
<svg xmlns="http://www.w3.org/2000/svg" height="24" viewBox="0 0 24 24" width="24"><path d="M0 0h24v24H0V0z" fill="none"/><path d="M9 16.17L5.53 12.7c-.39-.39-1.02-.39-1.41 0-.39.39-.39 1.02 0 1.41l4.18 4.18c.39.39 1.02.39 1.41 0L20.29 7.71c.39-.39.39-1.02 0-1.41-.39-.39-1.02-.39-1.41 0L9 16.17z"/></svg>
|
111
|
+
</button>
|
112
|
+
</div>
|
113
|
+
</div>
|
114
|
+
</div>
|
115
|
+
</div>
|
116
|
+
</div>
|
117
|
+
|
118
|
+
<div class="toolbar-action">
|
119
|
+
<div class="dropdown">
|
120
|
+
<button type="button" class="button button-icon dropdown-toggle" {% if page.outline.size == 0 %} disabled {% endif %}>
|
121
|
+
<svg xmlns="http://www.w3.org/2000/svg" height="24" viewBox="0 0 24 24" width="24"><path d="M0 0h24v24H0V0zm0 0h24v24H0V0z" fill="none"/><path d="M4 9h12c.55 0 1-.45 1-1s-.45-1-1-1H4c-.55 0-1 .45-1 1s.45 1 1 1zm0 4h12c.55 0 1-.45 1-1s-.45-1-1-1H4c-.55 0-1 .45-1 1s.45 1 1 1zm0 4h12c.55 0 1-.45 1-1s-.45-1-1-1H4c-.55 0-1 .45-1 1s.45 1 1 1zm15 0h2v-2h-2v2zm0-10v2h2V7h-2zm0 6h2v-2h-2v2z"/></svg>
|
122
|
+
</button>
|
123
|
+
<div class="dropdown-menu">
|
124
|
+
{% if page.outline.size > 0 %}
|
125
|
+
<ol>
|
126
|
+
{% for item in page.outline %}
|
127
|
+
<li>
|
128
|
+
<a class="dropdown-menu-item" href="{{ item.path }}">{{ item.title }}</a>
|
129
|
+
{% if item.items.size > 0 %}
|
130
|
+
<ol>
|
131
|
+
{% for subitem in item.items %}
|
132
|
+
<li>
|
133
|
+
<a class="dropdown-menu-item" href="{{ subitem.path }}">{{ subitem.title }}</a>
|
134
|
+
</li>
|
135
|
+
{% endfor %}
|
136
|
+
</ol>
|
137
|
+
{% endif %}
|
138
|
+
</li>
|
139
|
+
{% endfor %}
|
140
|
+
</ol>
|
141
|
+
{% endif %}
|
142
|
+
</div>
|
73
143
|
</div>
|
74
144
|
</div>
|
75
145
|
</div>
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
|
146
|
+
<div class="main-content" tabindex="-1">
|
147
|
+
<div class="container">
|
148
|
+
{{ page.content }}
|
149
|
+
</div>
|
80
150
|
</div>
|
81
151
|
<div class="paginator">
|
82
152
|
<a href="{{ page.prev_page.path }}" class="paginator-prev {% if page.prev_page == nil %} disabled {% endif %}">
|
83
|
-
<svg xmlns="http://www.w3.org/2000/svg"
|
153
|
+
<svg xmlns="http://www.w3.org/2000/svg" height="24" viewBox="0 0 24 24" width="24"><path d="M0 0h24v24H0V0z" fill="none" opacity=".87"/><path d="M16.62 2.99c-.49-.49-1.28-.49-1.77 0L6.54 11.3c-.39.39-.39 1.02 0 1.41l8.31 8.31c.49.49 1.28.49 1.77 0s.49-1.28 0-1.77L9.38 12l7.25-7.25c.48-.48.48-1.28-.01-1.76z"/></svg>
|
84
154
|
</a>
|
85
155
|
<a href="{{ page.next_page.path }}" class="paginator-next {% if page.next_page == nil %} disabled {% endif %}">
|
86
|
-
<svg xmlns="http://www.w3.org/2000/svg"
|
156
|
+
<svg xmlns="http://www.w3.org/2000/svg" height="24" viewBox="0 0 24 24" width="24"><path d="M24 24H0V0h24v24z" fill="none" opacity=".87"/><path d="M7.38 21.01c.49.49 1.28.49 1.77 0l8.31-8.31c.39-.39.39-1.02 0-1.41L9.15 2.98c-.49-.49-1.28-.49-1.77 0s-.49 1.28 0 1.77L14.62 12l-7.25 7.25c-.48.48-.48 1.28.01 1.76z"/></svg>
|
87
157
|
</a>
|
88
158
|
</div>
|
89
159
|
</div>
|
@@ -0,0 +1,13 @@
|
|
1
|
+
/* overwrite src value that mobi not support */
|
2
|
+
|
3
|
+
@font-face {
|
4
|
+
font-family: 'Font Awesome 5 Free';
|
5
|
+
font-style: normal;
|
6
|
+
font-weight: 900;
|
7
|
+
font-display: auto;
|
8
|
+
src: url("fa-solid-900.ttf") format("truetype"); }
|
9
|
+
|
10
|
+
.fa,
|
11
|
+
.fas {
|
12
|
+
font-family: 'Font Awesome 5 Free';
|
13
|
+
font-weight: 900; }
|
data/theme/mobi/mobi.css
CHANGED
@@ -1,2 +1,2 @@
|
|
1
1
|
body {
|
2
|
-
}
|
2
|
+
}
|
data/theme/pdf/pdf.css
CHANGED
data/theme/share/default.css
CHANGED
@@ -4,6 +4,7 @@ html {
|
|
4
4
|
body {
|
5
5
|
line-height: 1.5;
|
6
6
|
font-size: 1em;
|
7
|
+
font-family: sans-serif;
|
7
8
|
color: #333;
|
8
9
|
}
|
9
10
|
|
@@ -48,11 +49,21 @@ img {
|
|
48
49
|
pre {
|
49
50
|
line-height: 1.2;
|
50
51
|
margin: 1em 0;
|
51
|
-
background
|
52
|
+
background: #f8f8f8;
|
52
53
|
padding: 1em;
|
53
54
|
white-space: pre-wrap;
|
54
55
|
}
|
55
56
|
|
57
|
+
code {
|
58
|
+
background: #f8f8f8;
|
59
|
+
padding: 0 4px;
|
60
|
+
}
|
61
|
+
|
62
|
+
pre code {
|
63
|
+
background: transparent;
|
64
|
+
padding: 0;
|
65
|
+
}
|
66
|
+
|
56
67
|
.toc ol {
|
57
68
|
list-style: none;
|
58
69
|
padding: 0;
|
@@ -102,6 +113,10 @@ figcaption {
|
|
102
113
|
font-style: italic;
|
103
114
|
}
|
104
115
|
|
116
|
+
figure pre {
|
117
|
+
margin: 0;
|
118
|
+
}
|
119
|
+
|
105
120
|
.example {
|
106
121
|
margin: 1em 0;
|
107
122
|
padding: 1em;
|
@@ -172,3 +187,57 @@ footer {
|
|
172
187
|
margin-top: 1.5em;
|
173
188
|
padding-top: 1em;
|
174
189
|
}
|
190
|
+
|
191
|
+
.admonition {
|
192
|
+
display: -webkit-box;
|
193
|
+
display: -ms-flexbox;
|
194
|
+
display: flex;
|
195
|
+
-webkit-box-align: center;
|
196
|
+
-ms-flex-align: center;
|
197
|
+
align-items: center;
|
198
|
+
margin: 1em 0;
|
199
|
+
}
|
200
|
+
|
201
|
+
.admonition-icon {
|
202
|
+
-ms-flex-negative: 0;
|
203
|
+
flex-shrink: 0;
|
204
|
+
line-height: 1;
|
205
|
+
padding: 0.5em;
|
206
|
+
}
|
207
|
+
|
208
|
+
.admonition-content {
|
209
|
+
-webkit-box-flex: 1;
|
210
|
+
-ms-flex-positive: 1;
|
211
|
+
flex-grow: 1;
|
212
|
+
padding: 0.5em 0 0.5em 1em;
|
213
|
+
border-left: 1px solid #ccc;
|
214
|
+
}
|
215
|
+
|
216
|
+
.admonition-content > *:first-child {
|
217
|
+
margin-top: 0;
|
218
|
+
}
|
219
|
+
|
220
|
+
.admonition-content > *:last-child {
|
221
|
+
margin-bottom: 0;
|
222
|
+
}
|
223
|
+
|
224
|
+
.admonition-note .admonition-icon {
|
225
|
+
content: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" height="40" viewBox="0 0 24 24" width="40" fill="%231976d2"><path d="M0 0h24v24H0V0z" fill="none"/><path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 15c-.55 0-1-.45-1-1v-4c0-.55.45-1 1-1s1 .45 1 1v4c0 .55-.45 1-1 1zm1-8h-2V7h2v2z"/></svg>');
|
226
|
+
|
227
|
+
}
|
228
|
+
|
229
|
+
.admonition-tip .admonition-icon {
|
230
|
+
content: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" height="40" viewBox="0 0 24 24" width="40" fill="%23fbc02d"><path d="M0 0h24v24H0V0z" fill="none"/><path d="M4.25 19.79c.39.39 1.02.39 1.41 0l.39-.39c.39-.39.38-1.02 0-1.4l-.01-.01c-.39-.39-1.02-.39-1.41 0l-.39.39c-.38.4-.38 1.02.01 1.41zM11.99 23H12c.55 0 .99-.44.99-.99v-.96c0-.55-.44-.99-.99-.99h-.01c-.55 0-.99.44-.99.99v.96c0 .55.44.99.99.99zM3.01 11.05H1.99c-.55 0-.99.44-.99.99v.01c0 .55.44.99.99.99H3c.55 0 .99-.44.99-.99v-.01c.01-.55-.43-.99-.98-.99zM15 6.86V3.05c0-.55-.45-1-1-1h-4c-.55 0-1 .45-1 1v3.81c-2.04 1.18-3.32 3.52-2.93 6.13.4 2.61 2.56 4.7 5.18 5.02 3.64.44 6.75-2.4 6.75-5.95 0-2.23-1.21-4.16-3-5.2zm5 5.18v.01c0 .55.44.99.99.99H22c.55 0 .99-.44.99-.99v-.01c0-.55-.44-.99-.99-.99h-1.01c-.55 0-.99.44-.99.99zm-2.06 7.37l.39.39c.39.39 1.02.39 1.41 0 .39-.39.39-1.02 0-1.41l-.39-.39c-.39-.39-1.02-.38-1.4 0-.4.4-.4 1.02-.01 1.41z"/></svg>');
|
231
|
+
}
|
232
|
+
|
233
|
+
.admonition-important .admonition-icon {
|
234
|
+
content: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" height="40" viewBox="0 0 24 24" width="40" fill="%23d32f2f"><path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 11c-.55 0-1-.45-1-1V8c0-.55.45-1 1-1s1 .45 1 1v4c0 .55-.45 1-1 1zm1 4h-2v-2h2v2z"/></svg>');
|
235
|
+
}
|
236
|
+
|
237
|
+
.admonition-warning .admonition-icon {
|
238
|
+
content: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" height="40" viewBox="0 0 24 24" width="40" fill="%23ffa000"><path d="M4.47 21h15.06c1.54 0 2.5-1.67 1.73-3L13.73 4.99c-.77-1.33-2.69-1.33-3.46 0L2.74 18c-.77 1.33.19 3 1.73 3zM12 14c-.55 0-1-.45-1-1v-2c0-.55.45-1 1-1s1 .45 1 1v2c0 .55-.45 1-1 1zm1 4h-2v-2h2v2z"/></svg>');
|
239
|
+
}
|
240
|
+
|
241
|
+
.admonition-caution .admonition-icon {
|
242
|
+
content: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" height="40" viewBox="0 0 24 24" width="40" fill="%23d32f2f"><path d="M4.47 21h15.06c1.54 0 2.5-1.67 1.73-3L13.73 4.99c-.77-1.33-2.69-1.33-3.46 0L2.74 18c-.77 1.33.19 3 1.73 3zM12 14c-.55 0-1-.45-1-1v-2c0-.55.45-1 1-1s1 .45 1 1v2c0 .55-.45 1-1 1zm1 4h-2v-2h2v2z"/></svg>');
|
243
|
+
}
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: asciibook
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Rei
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2021-12-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: asciidoctor
|
@@ -24,20 +24,34 @@ dependencies:
|
|
24
24
|
- - "~>"
|
25
25
|
- !ruby/object:Gem::Version
|
26
26
|
version: '2.0'
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: asciidoctor-mathematical
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - "~>"
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '0.3'
|
34
|
+
type: :runtime
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - "~>"
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '0.3'
|
27
41
|
- !ruby/object:Gem::Dependency
|
28
42
|
name: liquid
|
29
43
|
requirement: !ruby/object:Gem::Requirement
|
30
44
|
requirements:
|
31
45
|
- - "~>"
|
32
46
|
- !ruby/object:Gem::Version
|
33
|
-
version: '
|
47
|
+
version: '5.0'
|
34
48
|
type: :runtime
|
35
49
|
prerelease: false
|
36
50
|
version_requirements: !ruby/object:Gem::Requirement
|
37
51
|
requirements:
|
38
52
|
- - "~>"
|
39
53
|
- !ruby/object:Gem::Version
|
40
|
-
version: '
|
54
|
+
version: '5.0'
|
41
55
|
- !ruby/object:Gem::Dependency
|
42
56
|
name: gepub
|
43
57
|
requirement: !ruby/object:Gem::Requirement
|
@@ -56,38 +70,52 @@ dependencies:
|
|
56
70
|
name: mercenary
|
57
71
|
requirement: !ruby/object:Gem::Requirement
|
58
72
|
requirements:
|
59
|
-
- - "
|
73
|
+
- - "~>"
|
60
74
|
- !ruby/object:Gem::Version
|
61
|
-
version: '0'
|
75
|
+
version: '0.4'
|
62
76
|
type: :runtime
|
63
77
|
prerelease: false
|
64
78
|
version_requirements: !ruby/object:Gem::Requirement
|
65
79
|
requirements:
|
66
|
-
- - "
|
80
|
+
- - "~>"
|
67
81
|
- !ruby/object:Gem::Version
|
68
|
-
version: '0'
|
82
|
+
version: '0.4'
|
69
83
|
- !ruby/object:Gem::Dependency
|
70
84
|
name: rouge
|
71
85
|
requirement: !ruby/object:Gem::Requirement
|
72
86
|
requirements:
|
73
|
-
- - "
|
87
|
+
- - "~>"
|
74
88
|
- !ruby/object:Gem::Version
|
75
|
-
version: '0'
|
89
|
+
version: '3.0'
|
76
90
|
type: :runtime
|
77
91
|
prerelease: false
|
78
92
|
version_requirements: !ruby/object:Gem::Requirement
|
79
93
|
requirements:
|
80
|
-
- - "
|
94
|
+
- - "~>"
|
81
95
|
- !ruby/object:Gem::Version
|
82
|
-
version: '0'
|
96
|
+
version: '3.0'
|
83
97
|
- !ruby/object:Gem::Dependency
|
84
98
|
name: nokogiri
|
99
|
+
requirement: !ruby/object:Gem::Requirement
|
100
|
+
requirements:
|
101
|
+
- - "~>"
|
102
|
+
- !ruby/object:Gem::Version
|
103
|
+
version: '1.0'
|
104
|
+
type: :runtime
|
105
|
+
prerelease: false
|
106
|
+
version_requirements: !ruby/object:Gem::Requirement
|
107
|
+
requirements:
|
108
|
+
- - "~>"
|
109
|
+
- !ruby/object:Gem::Version
|
110
|
+
version: '1.0'
|
111
|
+
- !ruby/object:Gem::Dependency
|
112
|
+
name: rake
|
85
113
|
requirement: !ruby/object:Gem::Requirement
|
86
114
|
requirements:
|
87
115
|
- - ">="
|
88
116
|
- !ruby/object:Gem::Version
|
89
117
|
version: '0'
|
90
|
-
type: :
|
118
|
+
type: :development
|
91
119
|
prerelease: false
|
92
120
|
version_requirements: !ruby/object:Gem::Requirement
|
93
121
|
requirements:
|
@@ -132,6 +160,7 @@ files:
|
|
132
160
|
- templates/image.html
|
133
161
|
- templates/index.html
|
134
162
|
- templates/inline_anchor.html
|
163
|
+
- templates/inline_break.html
|
135
164
|
- templates/inline_callout.html
|
136
165
|
- templates/inline_footnote.html
|
137
166
|
- templates/inline_image.html
|
@@ -157,7 +186,9 @@ files:
|
|
157
186
|
- theme/epub/layout.html
|
158
187
|
- theme/html/html.css
|
159
188
|
- theme/html/html.js
|
189
|
+
- theme/html/icon.png
|
160
190
|
- theme/html/layout.html
|
191
|
+
- theme/mobi/fontawesome/solid.css
|
161
192
|
- theme/mobi/layout.html
|
162
193
|
- theme/mobi/mobi.css
|
163
194
|
- theme/pdf/config.yml
|
@@ -184,11 +215,11 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
184
215
|
version: '0'
|
185
216
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
186
217
|
requirements:
|
187
|
-
- - "
|
218
|
+
- - ">="
|
188
219
|
- !ruby/object:Gem::Version
|
189
|
-
version:
|
220
|
+
version: '0'
|
190
221
|
requirements: []
|
191
|
-
rubygems_version: 3.
|
222
|
+
rubygems_version: 3.1.6
|
192
223
|
signing_key:
|
193
224
|
specification_version: 4
|
194
225
|
summary: ''
|