docwatch-bin 1.0.10 → 1.1.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
  SHA256:
3
- metadata.gz: 1a78c1b6a545611aadc8a1b9059a13d95cdaa936f6c5ef75d2c677ebac7136c6
4
- data.tar.gz: ede34e2156c4602b9df5ee75fff9d2be5404956028908a3dbc9d44655bad73a0
3
+ metadata.gz: 203f494fbe91f8a8119b44bf85810e3ceb97f0bf45af3004b0816001f419cf32
4
+ data.tar.gz: b753786ed78ec246c192b8de63a2605db13f1e09fc9070eab75d4634a58ad6e1
5
5
  SHA512:
6
- metadata.gz: cad0d7287932f6c9c8f781eea348cf83d4f1454a65591aba146b0f17e6951f676d294b8bb288ef3206c442848131d692d6505098126be4bae0c604902a339f52
7
- data.tar.gz: 5b44ad2e03b4761e76182c2d8ca92618dcabd04ef62ede0f92384965c0396599b40e273b5aa6009263b52e7a67d357ce82fb7909988a8c870b86d1a04118cc76
6
+ metadata.gz: d3cd164f0062369d5e85f3d10a897f57388656d40d46be34b6a5219cd6f80763536bbc39bb0d741806c4a8a06dfed45246a5a9ff224d4933fbc9c87269e59437
7
+ data.tar.gz: 602980ddaf70e96c66bff7e5c39f354ae02e96ab91f14edb9f62902bb436c129e4fb856452c4c4ef975049c9a7b8e5043dfeb69305ece9ae7fdebd0be3350237
@@ -29,7 +29,9 @@ module Docwatch
29
29
  #{head}
30
30
  </head>
31
31
  <body>
32
+ <div class="container">
32
33
  #{body}
34
+ </div>
33
35
  <script>
34
36
  (function() {
35
37
  #{js}
@@ -3,13 +3,11 @@ module Docwatch
3
3
  extension :md
4
4
 
5
5
  def head
6
+ css = File.read(Docwatch.root_dir + '/res/github-markdown.css')
6
7
  return <<~EOF
7
8
  <title>#{file_path} - docwatch</title>
8
9
  <style>
9
- body {
10
- font-family: Ubuntu;
11
- font-size: 15px;
12
- }
10
+ #{css}
13
11
  </style>
14
12
  EOF
15
13
  end
@@ -1,3 +1,3 @@
1
1
  module Docwatch
2
- VERSION = "1.0.10"
2
+ VERSION = "1.1.0"
3
3
  end
@@ -0,0 +1,457 @@
1
+ .container {
2
+ font-family: -apple-system, BlinkMacSystemFont, Segoe UI, Helvetica, Arial, sans-serif, Apple Color Emoji, Segoe UI Emoji, Segoe UI Symbol;
3
+ font-size: 16px;
4
+ line-height: 1.5;
5
+ word-wrap: break-word;
6
+ width: 900px;
7
+ margin: 0 auto;
8
+ }
9
+
10
+ .container:after,
11
+ .container:before {
12
+ display: table;
13
+ content: ""
14
+ }
15
+
16
+ .container:after {
17
+ clear: both
18
+ }
19
+
20
+ .container>:first-child {
21
+ margin-top: 0!important
22
+ }
23
+
24
+ .container>:last-child {
25
+ margin-bottom: 0!important
26
+ }
27
+
28
+ .container a:not([href]) {
29
+ color: inherit;
30
+ text-decoration: none
31
+ }
32
+
33
+ .container .absent {
34
+ color: #cb2431
35
+ }
36
+
37
+ .container .anchor {
38
+ float: left;
39
+ padding-right: 4px;
40
+ margin-left: -20px;
41
+ line-height: 1
42
+ }
43
+
44
+ .container .anchor:focus {
45
+ outline: none
46
+ }
47
+
48
+ .container blockquote,
49
+ .container details,
50
+ .container dl,
51
+ .container ol,
52
+ .container p,
53
+ .container pre,
54
+ .container table,
55
+ .container ul {
56
+ margin-top: 0;
57
+ margin-bottom: 16px
58
+ }
59
+
60
+ .container hr {
61
+ height: .25em;
62
+ padding: 0;
63
+ margin: 24px 0;
64
+ background-color: #e1e4e8;
65
+ border: 0
66
+ }
67
+
68
+ .container blockquote {
69
+ padding: 0 1em;
70
+ color: #6a737d;
71
+ border-left: .25em solid #dfe2e5
72
+ }
73
+
74
+ .container blockquote>:first-child {
75
+ margin-top: 0
76
+ }
77
+
78
+ .container blockquote>:last-child {
79
+ margin-bottom: 0
80
+ }
81
+
82
+ .container kbd {
83
+ display: inline-block;
84
+ padding: 3px 5px;
85
+ font-size: 11px;
86
+ line-height: 10px;
87
+ color: #444d56;
88
+ vertical-align: middle;
89
+ background-color: #fafbfc;
90
+ border: 1px solid #c6cbd1;
91
+ border-bottom-color: #959da5;
92
+ border-radius: 3px;
93
+ box-shadow: inset 0 -1px 0 #959da5
94
+ }
95
+
96
+ .container h1,
97
+ .container h2,
98
+ .container h3,
99
+ .container h4,
100
+ .container h5,
101
+ .container h6 {
102
+ margin-top: 24px;
103
+ margin-bottom: 16px;
104
+ font-weight: 600;
105
+ line-height: 1.25
106
+ }
107
+
108
+ .container h1 .octicon-link,
109
+ .container h2 .octicon-link,
110
+ .container h3 .octicon-link,
111
+ .container h4 .octicon-link,
112
+ .container h5 .octicon-link,
113
+ .container h6 .octicon-link {
114
+ color: #1b1f23;
115
+ vertical-align: middle;
116
+ visibility: hidden
117
+ }
118
+
119
+ .container h1:hover .anchor,
120
+ .container h2:hover .anchor,
121
+ .container h3:hover .anchor,
122
+ .container h4:hover .anchor,
123
+ .container h5:hover .anchor,
124
+ .container h6:hover .anchor {
125
+ text-decoration: none
126
+ }
127
+
128
+ .container h1:hover .anchor .octicon-link,
129
+ .container h2:hover .anchor .octicon-link,
130
+ .container h3:hover .anchor .octicon-link,
131
+ .container h4:hover .anchor .octicon-link,
132
+ .container h5:hover .anchor .octicon-link,
133
+ .container h6:hover .anchor .octicon-link {
134
+ visibility: visible
135
+ }
136
+
137
+ .container h1 code,
138
+ .container h1 tt,
139
+ .container h2 code,
140
+ .container h2 tt,
141
+ .container h3 code,
142
+ .container h3 tt,
143
+ .container h4 code,
144
+ .container h4 tt,
145
+ .container h5 code,
146
+ .container h5 tt,
147
+ .container h6 code,
148
+ .container h6 tt {
149
+ font-size: inherit
150
+ }
151
+
152
+ .container h1 {
153
+ font-size: 2em
154
+ }
155
+
156
+ .container h1,
157
+ .container h2 {
158
+ padding-bottom: .3em;
159
+ border-bottom: 1px solid #eaecef
160
+ }
161
+
162
+ .container h2 {
163
+ font-size: 1.5em
164
+ }
165
+
166
+ .container h3 {
167
+ font-size: 1.25em
168
+ }
169
+
170
+ .container h4 {
171
+ font-size: 1em
172
+ }
173
+
174
+ .container h5 {
175
+ font-size: .875em
176
+ }
177
+
178
+ .container h6 {
179
+ font-size: .85em;
180
+ color: #6a737d
181
+ }
182
+
183
+ .container ol,
184
+ .container ul {
185
+ padding-left: 2em
186
+ }
187
+
188
+ .container ol.no-list,
189
+ .container ul.no-list {
190
+ padding: 0;
191
+ list-style-type: none
192
+ }
193
+
194
+ .container ol ol,
195
+ .container ol ul,
196
+ .container ul ol,
197
+ .container ul ul {
198
+ margin-top: 0;
199
+ margin-bottom: 0
200
+ }
201
+
202
+ .container li {
203
+ word-wrap: break-all
204
+ }
205
+
206
+ .container li>p {
207
+ margin-top: 16px
208
+ }
209
+
210
+ .container li+li {
211
+ margin-top: .25em
212
+ }
213
+
214
+ .container dl {
215
+ padding: 0
216
+ }
217
+
218
+ .container dl dt {
219
+ padding: 0;
220
+ margin-top: 16px;
221
+ font-size: 1em;
222
+ font-style: italic;
223
+ font-weight: 600
224
+ }
225
+
226
+ .container dl dd {
227
+ padding: 0 16px;
228
+ margin-bottom: 16px
229
+ }
230
+
231
+ .container table {
232
+ display: block;
233
+ width: 100%;
234
+ overflow: auto
235
+ }
236
+
237
+ .container table th {
238
+ font-weight: 600
239
+ }
240
+
241
+ .container table td,
242
+ .container table th {
243
+ padding: 6px 13px;
244
+ border: 1px solid #dfe2e5
245
+ }
246
+
247
+ .container table tr {
248
+ background-color: #fff;
249
+ border-top: 1px solid #c6cbd1
250
+ }
251
+
252
+ .container table tr:nth-child(2n) {
253
+ background-color: #f6f8fa
254
+ }
255
+
256
+ .container table img {
257
+ background-color: initial
258
+ }
259
+
260
+ .container img {
261
+ max-width: 100%;
262
+ box-sizing: initial;
263
+ background-color: #fff
264
+ }
265
+
266
+ .container img[align=right] {
267
+ padding-left: 20px
268
+ }
269
+
270
+ .container img[align=left] {
271
+ padding-right: 20px
272
+ }
273
+
274
+ .container .emoji {
275
+ max-width: none;
276
+ vertical-align: text-top;
277
+ background-color: initial
278
+ }
279
+
280
+ .container span.frame {
281
+ display: block;
282
+ overflow: hidden
283
+ }
284
+
285
+ .container span.frame>span {
286
+ display: block;
287
+ float: left;
288
+ width: auto;
289
+ padding: 7px;
290
+ margin: 13px 0 0;
291
+ overflow: hidden;
292
+ border: 1px solid #dfe2e5
293
+ }
294
+
295
+ .container span.frame span img {
296
+ display: block;
297
+ float: left
298
+ }
299
+
300
+ .container span.frame span span {
301
+ display: block;
302
+ padding: 5px 0 0;
303
+ clear: both;
304
+ color: #24292e
305
+ }
306
+
307
+ .container span.align-center {
308
+ display: block;
309
+ overflow: hidden;
310
+ clear: both
311
+ }
312
+
313
+ .container span.align-center>span {
314
+ display: block;
315
+ margin: 13px auto 0;
316
+ overflow: hidden;
317
+ text-align: center
318
+ }
319
+
320
+ .container span.align-center span img {
321
+ margin: 0 auto;
322
+ text-align: center
323
+ }
324
+
325
+ .container span.align-right {
326
+ display: block;
327
+ overflow: hidden;
328
+ clear: both
329
+ }
330
+
331
+ .container span.align-right>span {
332
+ display: block;
333
+ margin: 13px 0 0;
334
+ overflow: hidden;
335
+ text-align: right
336
+ }
337
+
338
+ .container span.align-right span img {
339
+ margin: 0;
340
+ text-align: right
341
+ }
342
+
343
+ .container span.float-left {
344
+ display: block;
345
+ float: left;
346
+ margin-right: 13px;
347
+ overflow: hidden
348
+ }
349
+
350
+ .container span.float-left span {
351
+ margin: 13px 0 0
352
+ }
353
+
354
+ .container span.float-right {
355
+ display: block;
356
+ float: right;
357
+ margin-left: 13px;
358
+ overflow: hidden
359
+ }
360
+
361
+ .container span.float-right>span {
362
+ display: block;
363
+ margin: 13px auto 0;
364
+ overflow: hidden;
365
+ text-align: right
366
+ }
367
+
368
+ .container code,
369
+ .container tt {
370
+ padding: .2em .4em;
371
+ margin: 0;
372
+ font-size: 85%;
373
+ background-color: rgba(27, 31, 35, .05);
374
+ border-radius: 3px
375
+ }
376
+
377
+ .container code br,
378
+ .container tt br {
379
+ display: none
380
+ }
381
+
382
+ .container del code {
383
+ text-decoration: inherit
384
+ }
385
+
386
+ .container pre {
387
+ word-wrap: normal
388
+ }
389
+
390
+ .container pre>code {
391
+ padding: 0;
392
+ margin: 0;
393
+ font-size: 100%;
394
+ word-break: normal;
395
+ white-space: pre;
396
+ background: transparent;
397
+ border: 0
398
+ }
399
+
400
+ .container .highlight {
401
+ margin-bottom: 16px
402
+ }
403
+
404
+ .container .highlight pre {
405
+ margin-bottom: 0;
406
+ word-break: normal
407
+ }
408
+
409
+ .container .highlight pre,
410
+ .container pre {
411
+ padding: 16px;
412
+ overflow: auto;
413
+ font-size: 85%;
414
+ line-height: 1.45;
415
+ background-color: #f6f8fa;
416
+ border-radius: 3px
417
+ }
418
+
419
+ .container pre code,
420
+ .container pre tt {
421
+ display: inline;
422
+ max-width: auto;
423
+ padding: 0;
424
+ margin: 0;
425
+ overflow: visible;
426
+ line-height: inherit;
427
+ word-wrap: normal;
428
+ background-color: initial;
429
+ border: 0
430
+ }
431
+
432
+ .container .csv-data td,
433
+ .container .csv-data th {
434
+ padding: 5px;
435
+ overflow: hidden;
436
+ font-size: 12px;
437
+ line-height: 1;
438
+ text-align: left;
439
+ white-space: nowrap
440
+ }
441
+
442
+ .container .csv-data .blob-num {
443
+ padding: 10px 8px 9px;
444
+ text-align: right;
445
+ background: #fff;
446
+ border: 0
447
+ }
448
+
449
+ .container .csv-data tr {
450
+ border-top: 0
451
+ }
452
+
453
+ .container .csv-data th {
454
+ font-weight: 600;
455
+ background: #f6f8fa;
456
+ border-top: 0
457
+ }
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: docwatch-bin
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.10
4
+ version: 1.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - crdx
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-09-20 00:00:00.000000000 Z
11
+ date: 2019-11-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: require_all
@@ -139,6 +139,7 @@ files:
139
139
  - lib/docwatch/session.rb
140
140
  - lib/docwatch/version.rb
141
141
  - lib/docwatch/watcher.rb
142
+ - res/github-markdown.css
142
143
  - res/inject.js
143
144
  homepage: https://github.com/crdx/docwatch
144
145
  licenses: