mdexport 0.0.1 → 0.0.3

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.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/bin/mdexport +3 -1
  3. data/lib/mdexport.rb +1824 -159
  4. metadata +33 -5
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: e36df78b607692b922e328db3ec82b7637181460
4
- data.tar.gz: ed5bb3c4d559929aaa5b962d74c3cc639a38f932
3
+ metadata.gz: 723605a937c62c0d9fd9babc014e49b8eafe9666
4
+ data.tar.gz: 1014e4a08badfbcd0eb6f49db9f1bd7d4d56ef75
5
5
  SHA512:
6
- metadata.gz: 19d235aec22e3de6cd9b465b5b96c532667c234b726104b50a8348207ba16196305f1db82d00a45df829d55497d2e68e2b69ca577325b0c5165c9cc381549a07
7
- data.tar.gz: 10c33facc69263312dbf0e941ad2921aa139ecc829db19475b2c7e93ba11024e04ffe17708364f9bff6aca9cde335127fdc623fcc1c70ef684b85f8391ea62e4
6
+ metadata.gz: 5ce61e3a29082ba458af993d35b9978dffdffeaa0b544c8efe19ee2d3605ee6b0f5f245607f16a638565b581723bda2a4d559759f37d84bf7b4ccea87eedbf8f
7
+ data.tar.gz: ecdcd4b027ebeb96884eceeeaf07810be2c6bfb57ae38e28d4f5d286b8df0a8f2b08ecdb6fac7bad706cfc5d83691399e4860b86b4fee1064f8082b947c7c99c
@@ -1,5 +1,7 @@
1
1
  #!/usr/bin/env ruby
2
2
 
3
+ $LOAD_PATH.unshift File.expand_path("../../lib", __FILE__)
4
+
3
5
  require 'mdexport'
4
- Mdexport.run
5
6
 
7
+ Mdexport.run
@@ -2,28 +2,95 @@
2
2
 
3
3
  require 'github/markdown'
4
4
  require 'fileutils'
5
+ require 'filewatcher'
5
6
 
6
7
  class Mdexport
8
+
7
9
  def self.run
10
+
11
+ folder = nil
12
+ watching = false
13
+
14
+ if ARGV.size > 0
15
+
16
+ ARGV.each do |param|
17
+ if param == '-w' || param == '--watch'
18
+ puts 'Watching file changes.'
19
+ watching = true
20
+ end
21
+
22
+ if folder == nil && File.exist?(param)
23
+ folder = File.expand_path param
24
+ end
25
+ end
26
+
27
+ end
28
+
29
+ if folder == nil
30
+ folder = File.expand_path "."
31
+ end
32
+
33
+ pattern = "#{folder}/**/*.md"
8
34
 
9
- files = []
10
- files += Dir["*.md"]
11
- files += Dir["*.markdown"]
35
+ files = []
36
+ files += Dir[pattern]
37
+
38
+ if files.size == 0
39
+ puts "There is no markdown files here"
40
+ end
41
+
42
+ files.each do |file|
43
+ self.process file
44
+ end
12
45
 
13
- if files.size == 0
14
- puts "There is no markdown files here"
15
- end
16
-
17
- output_dir = "html_files"
18
-
19
- files.each do |file|
46
+ if watching
47
+ FileWatcher.new(pattern).watch do |filename|
48
+ puts "File " + filename + " was changed."
49
+ self.process filename
50
+
51
+ basename = self.basename filename
52
+ self.refresh_page basename
53
+ end
54
+ end
55
+
56
+ end
57
+
58
+ def self.refresh_page keyword
59
+ puts "Refreshing page with keyword: #{keyword}"
60
+
61
+ %x{osascript<<ENDGAME
62
+ tell application "Safari"
63
+ set windowList to every window
64
+ repeat with aWindow in windowList
65
+ set tabList to every tab of aWindow
66
+ repeat with atab in tabList
67
+ if (URL of atab contains "#{keyword}") then
68
+ tell atab to do javascript "window.location.reload()"
69
+ end if
70
+ end repeat
71
+ end repeat
72
+ end tell
73
+ ENDGAME
74
+ }
75
+ end
76
+
77
+ def self.extension file
78
+ File.extname file
79
+ end
80
+
81
+ def self.basename file
82
+ extension = self.extension file
83
+ File.basename(file, extension)
84
+ end
85
+
86
+ def self.process( file )
20
87
 
21
- extension = File.extname(file)
22
- basename = File.basename(file, extension)
88
+ extension = self.extension file
89
+ basename = self.basename file
23
90
  content = File.read file
24
91
  html_body = GitHub::Markdown.render_gfm content
25
92
  html_title = basename
26
- html_filename = output_dir + "/" + basename + ".html"
93
+ html_filename = file.gsub(extension, '.html')
27
94
 
28
95
  html_header = <<HEADER
29
96
  <!doctype html>
@@ -32,171 +99,1769 @@ files.each do |file|
32
99
  <meta charset="utf-8">
33
100
  <meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=yes">
34
101
  <style>
35
- h1,
36
- h2,
37
- h3,
38
- h4,
39
- h5,
40
- h6,
41
- p,
42
- blockquote {
102
+ #wiki-wrapper #template blockquote {
103
+ margin: 1em 0;
104
+ border-left: 4px solid #ddd;
105
+ padding-left: .8em;
106
+ color: #555;
107
+ }
108
+
109
+ /*
110
+ gollum.css
111
+ A basic stylesheet for Gollum
112
+ */
113
+
114
+ /* @section core */
115
+ body, html {
116
+ font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
117
+ font-size: 10px;
118
+ margin: 0;
119
+ padding: 0;
120
+ }
121
+
122
+ #wiki-wrapper {
123
+ margin: 0 auto;
124
+ overflow: visible;
125
+ width: 100%;
126
+ }
127
+
128
+ @media all and (min-width: 940px) {
129
+ #wiki-wrapper {
130
+ max-width: 920px;
131
+ padding-left:20px;
132
+ padding-right:20px;
133
+ }
134
+ }
135
+
136
+ a:link {
137
+ color: #4183c4;
138
+ text-decoration: none;
139
+ }
140
+
141
+ a:hover, a:visited {
142
+ color: #4183c4;
143
+ text-decoration: underline;
144
+ }
145
+
146
+
147
+ /* @section head */
148
+ #head {
149
+ margin: 1em 0 0;
150
+ padding: 0;
151
+ overflow: hidden;
152
+ }
153
+
154
+ #head h1 {
155
+ font-size: 1.5em;
156
+ float: left;
157
+ line-height: normal;
158
+ margin: 0;
159
+ padding: 0 0 0 0.667em;
160
+ }
161
+
162
+ #head ul.actions {
163
+ clear: both;
164
+ margin: 0 1em;
165
+ }
166
+
167
+ @media all and (min-width: 940px) {
168
+ #head {
169
+ border-bottom: 1px solid #ddd;
170
+ padding-bottom: 0.3em;
171
+ margin: 4em 0 1.5em;
172
+ }
173
+
174
+ #head h1 {
175
+ font-size: 2.5em;
176
+ padding: 2px 0 0 0;
177
+ }
178
+
179
+ #head ul.actions {
180
+ clear: none;
181
+ float: right;
43
182
  margin: 0;
44
- padding: 0;
183
+ }
45
184
  }
46
- body {
47
- font-family: "Helvetica Neue", Helvetica, "Hiragino Sans GB", Arial, sans-serif;
48
- font-size: 13px;
49
- line-height: 18px;
50
- color: #737373;
51
- background-color: white;
52
- margin: 10px 13px 10px 13px;
53
- }
54
- table {
55
- margin: 10px 0 15px 0;
185
+
186
+ /* @section content */
187
+ #wiki-content {
188
+ height: 1%;
189
+ overflow: visible;
190
+ }
191
+
192
+ #wiki-content .wrap {
193
+ height: 1%;
194
+ overflow: auto;
195
+ }
196
+
197
+ /* @section comments */
198
+ #wiki-body #inline-comment {
199
+ display: none; /* todo */
200
+ }
201
+
202
+ /* @section body */
203
+
204
+ .has-leftbar #wiki-body {
205
+ float: right;
206
+ clear: right;
207
+ }
208
+
209
+ #wiki-body {
210
+ display: block;
211
+ float: left;
212
+ clear: left;
213
+ margin-right: 3%;
214
+ margin-bottom: 40px;
215
+ width: 100%;
216
+ }
217
+
218
+ #wiki-body table {
219
+ display: block;
220
+ overflow: auto;
221
+ border: 0;
222
+ }
223
+
224
+ .has-sidebar #wiki-body {
225
+ width: 68%;
226
+ }
227
+
228
+ /* @section toc */
229
+ #wiki-toc-main {
230
+ background-color: #F7F7F7;
231
+ border: 1px solid #DDD;
232
+ font-size: 13px;
233
+ padding: 0px 5px;
234
+ float: left;
235
+ margin-bottom: 20px;
236
+ min-width: 33%;
237
+
238
+ border-radius: 0.5em;
239
+ -moz-border-radius: 0.5em;
240
+ -webkit-border-radius: 0.5em;
241
+ }
242
+ #wiki-toc-main > div {
243
+ border: none;
244
+ }
245
+
246
+ /* @section sidebar */
247
+ .has-leftbar #wiki-sidebar {
248
+ float: left;
249
+ }
250
+
251
+ .has-rightbar #wiki-sidebar {
252
+ float: right;
253
+ }
254
+
255
+ #wiki-sidebar {
256
+ background-color: #f7f7f7;
257
+ border: 1px solid #ddd;
258
+ font-size: 13px;
259
+ padding: 7px;
260
+ width: 25%;
261
+ color: #555;
262
+
263
+ border-radius: 0.5em;
264
+ -moz-border-radius: 0.5em;
265
+ -webkit-border-radius: 0.5em;
266
+ }
267
+
268
+ #wiki-sidebar p {
269
+ margin: 13px 0 0;
270
+ }
271
+
272
+ #wiki-sidebar > p:first-child {
273
+ margin-top: 10px;
274
+ }
275
+
276
+ #wiki-sidebar p.parent {
277
+ border-bottom: 1px solid #bbb;
278
+ font-weight: bold;
279
+ margin: 0 0 0.5em 0;
280
+ padding: 0 0 0.5em 0;
281
+ text-shadow: 0 1px 0 #fff;
282
+ }
283
+
284
+ /* Back arrow */
285
+ #wiki-sidebar p.parent:before {
286
+ color: #666;
287
+ content: "← ";
288
+ }
289
+
290
+ /* @section footer */
291
+
292
+ #wiki-footer {
293
+ clear: both;
294
+ margin: 2em 0 5em;
295
+ }
296
+
297
+ .has-sidebar #wiki-footer {
298
+ width: 70%;
299
+ }
300
+
301
+ #wiki-header #header-content,
302
+ #wiki-footer #footer-content {
303
+ background-color: #f7f7f7;
304
+ border: 1px solid #ddd;
305
+ padding: 1em;
306
+
307
+ border-radius: 0.5em;
308
+ -moz-border-radius: 0.5em;
309
+ -webkit-border-radius: 0.5em;
310
+ }
311
+ #wiki-header #header-content {
312
+ margin-bottom: 1.5em;
313
+ }
314
+
315
+ #wiki-footer #footer-content {
316
+ margin-top: 1.5em;
317
+ }
318
+
319
+ #wiki-footer #footer-content h3 {
320
+ font-size: 1.2em;
321
+ color: #333;
322
+ margin: 0;
323
+ padding: 0 0 0.2em;
324
+ text-shadow: 0 1px 0 #fff;
325
+ }
326
+
327
+ #wiki-footer #footer-content p {
328
+ margin: 0.5em 0 0;
329
+ padding: 0;
330
+ }
331
+
332
+ #wiki-footer #footer-content ul.links {
333
+ margin: 0.5em 0 0;
334
+ overflow: hidden;
335
+ padding: 0;
336
+ }
337
+
338
+ #wiki-footer #footer-content ul.links li {
339
+ color: #999;
340
+ float: left;
341
+ list-style-position: inside;
342
+ list-style-type: square;
343
+ padding: 0;
344
+ margin-left: 0.75em;
345
+ }
346
+
347
+ #wiki-footer #footer-content ul.links li a {
348
+ font-weight: bold;
349
+ text-shadow: 0 1px 0 #fff;
350
+ }
351
+
352
+ #wiki-footer #footer-content ul.links li:first-child {
353
+ list-style-type: none;
354
+ margin: 0;
355
+ }
356
+
357
+ .ff #wiki-footer #footer-content ul.links li:first-child {
358
+ margin: 0 -0.75em 0 0;
359
+ }
360
+
361
+ /* @section page-footer */
362
+ .page #footer {
363
+ clear: both;
364
+ border-top: 1px solid #ddd;
365
+ margin: 1em 0 7em;
366
+ }
367
+
368
+ #footer p#last-edit {
369
+ font-size: .9em;
370
+ line-height: 1.6em;
371
+ color: #999;
372
+ margin: 0.9em 0;
373
+ }
374
+
375
+ #footer p#last-edit span.username {
376
+ font-weight: bold;
377
+ }
378
+
379
+ #footer .actions {
380
+ margin-left: 1em;
381
+ }
382
+
383
+ @media all and (min-width: 940px) {
384
+ #footer .actions {
385
+ margin: 0;
386
+ }
387
+ }
388
+
389
+
390
+ /* @section history */
391
+ .history h1 {
392
+ color: #999;
393
+ font-weight: normal;
394
+ }
395
+
396
+ .history h1 strong {
397
+ color: #000;
398
+ font-weight: bold;
399
+ }
400
+
401
+ #wiki-history {
402
+ margin: 2em 1em 0 1em;
403
+ }
404
+
405
+ #wiki-history fieldset {
406
+ border: 0;
407
+ margin: 1em 0;
408
+ padding: 0;
409
+ }
410
+
411
+ #wiki-history table, #wiki-history tbody {
56
412
  border-collapse: collapse;
413
+ padding: 0;
414
+ margin: 0;
415
+ width: 100%;
416
+ }
417
+
418
+ #wiki-history table tr {
419
+ padding: 0;
420
+ margin: 0;
421
+ }
422
+
423
+ #wiki-history table tr {
424
+ background-color: #ebf2f6;
425
+ }
426
+
427
+ #wiki-history table tr td {
428
+ border-top: 1px solid #c0dce9;
429
+ border-bottom: 1px solid #c0dce9;
430
+ font-size: 1em;
431
+ line-height: 1.6em;
432
+ margin: 0;
433
+ padding: 0.3em 0.7em;
434
+ }
435
+
436
+ #wiki-history table tr td.checkbox {
437
+ width: auto;
438
+ padding: 0 0.2em 0 0;
439
+ }
440
+
441
+ #wiki-history table tr td.checkbox input {
442
+ cursor: pointer;
443
+ display: block;
444
+ padding-right: 0;
445
+ padding-top: 0.4em;
446
+ margin: 0 auto;
447
+ width: 1.2em;
448
+ height: 1.2em;
449
+ }
450
+
451
+ #wiki-history table tr:nth-child(2n),
452
+ #wiki-history table tr.alt-row {
453
+ background-color: #f3f7fa;
454
+ }
455
+
456
+ #wiki-history table tr.selected {
457
+ background-color: #ffffea !important;
458
+ z-index: 100;
57
459
  }
58
- td,th {
460
+
461
+ #wiki-history table tr td.commit-name {
462
+ border-left: 0;
463
+ }
464
+
465
+ #wiki-history table tr td.commit-name span.time-elapsed {
466
+ color: #999;
467
+ }
468
+
469
+ #wiki-history table tr td.author {
470
+ width: 20%;
471
+ }
472
+
473
+ #wiki-history table tr td.author a {
474
+ color: #000;
475
+ font-weight: bold;
476
+ }
477
+
478
+ #wiki-history table tr td.author a span.username {
479
+ display: block;
480
+ padding-top: 3px;
481
+ }
482
+
483
+ #wiki-history table tr td img {
484
+ background-color: #fff;
485
+ border: 1px solid #999;
486
+ display: block;
487
+ float: left;
488
+ height: 18px;
489
+ overflow: hidden;
490
+ margin: 0 0.5em 0 0;
491
+ width: 18px;
492
+ padding: 2px;
493
+ }
494
+
495
+ #wiki-history table tr td.commit-name a {
496
+ font-size: 0.9em;
497
+ font-family: 'Monaco', 'Andale Mono', Consolas, 'Courier New', monospace;
498
+ padding: 0 0.2em;
499
+ }
500
+
501
+ .history #footer {
502
+ margin-bottom: 7em;
503
+ }
504
+
505
+ .history #wiki-history ul.actions li,
506
+ .history #footer ul.actions li {
507
+ margin: 0 0.6em 0 0;
508
+ }
509
+
510
+ @media all and (min-width: 940px) {
511
+ #wiki-history {
512
+ margin: 2em 0 0 0;
513
+ }
514
+
515
+ #wiki-history table tr td {
516
+ border: 1px solid #c0dce9;
517
+ font-size: 1em;
518
+ line-height: 1.6em;
519
+ margin: 0;
520
+ padding: 0.3em 0.7em;
521
+ }
522
+
523
+ #wiki-history table tr td.checkbox {
524
+ width: 4em;
525
+ padding: 0.3em;
526
+ }
527
+ }
528
+
529
+
530
+ /* @section edit */
531
+ .edit h1 {
532
+ color: #999;
533
+ font-weight: normal;
534
+ }
535
+
536
+ .edit h1 strong {
537
+ color: #000;
538
+ font-weight: bold;
539
+ }
540
+
541
+
542
+ /* @section search */
543
+
544
+ .results h1 {
545
+ color: #999;
546
+ font-weight: normal;
547
+ }
548
+
549
+ .results h1 strong {
550
+ color: #000;
551
+ font-weight: bold;
552
+ }
553
+
554
+ .results #results {
555
+ border-bottom: 1px solid #ccc;
556
+ margin-left: 1em;
557
+ margin-right: 1em;
558
+ margin-bottom: 2em;
559
+ padding-bottom: 2em;
560
+ }
561
+
562
+ .results #results ul {
563
+ margin: 2em 0 0 0;
564
+ padding: 0;
565
+ }
566
+
567
+ .results #results ul li {
568
+ list-style: none;
569
+ padding: 0.2em 0;
570
+ }
571
+
572
+ .results #results ul li a {
573
+ word-wrap: break-word;
574
+ }
575
+
576
+ @media all and (min-width: 640px) {
577
+ .results #results ul li {
578
+ font-size: 1.2em;
579
+ }
580
+ }
581
+
582
+ @media all and (min-width: 940px) {
583
+ .results #results {
584
+ margin-left: 0;
585
+ margin-right: 0;
586
+ }
587
+
588
+ .results #results ul li {
589
+ list-style: disc;
590
+ list-style-position: outside;
591
+ line-height: 1.6em;
592
+ }
593
+ }
594
+
595
+ .results #results ul li span.count {
596
+ color: #999;
597
+ }
598
+
599
+ .results p#no-results {
600
+ font-size: 1.2em;
601
+ line-height: 1.6em;
602
+ margin-top: 2em;
603
+ }
604
+
605
+ .results #footer ul.actions li {
606
+ margin: 0 1em 0 0;
607
+ }
608
+
609
+
610
+ /* @section compare */
611
+ .compare h1 {
612
+ color: #999;
613
+ font-weight: normal;
614
+ }
615
+
616
+ .compare h1 strong {
617
+ color: #000;
618
+ font-weight: bold;
619
+ }
620
+
621
+ .compare #compare-content {
622
+ margin-top: 3em;
623
+ }
624
+
625
+ .compare .data {
59
626
  border: 1px solid #ddd;
60
- padding: 3px 10px;
627
+ margin: 1em 0 2em;
628
+ overflow: auto;
61
629
  }
62
- th {
63
- padding: 5px 10px;
630
+
631
+ .compare .data table {
632
+ width: 100%;
64
633
  }
65
634
 
66
- a {
67
- color: #0069d6;
68
- }
69
- a:hover {
70
- color: #0050a3;
71
- text-decoration: none;
72
- }
73
- a img {
74
- border: none;
75
- }
76
- p {
77
- margin-bottom: 9px;
78
- }
79
- h1,
80
- h2,
81
- h3,
82
- h4,
83
- h5,
84
- h6 {
85
- color: #404040;
86
- line-height: 36px;
87
- }
88
- h1 {
89
- margin-bottom: 18px;
90
- font-size: 30px;
91
- }
92
- h2 {
93
- font-size: 24px;
94
- }
95
- h3 {
96
- font-size: 18px;
97
- }
98
- h4 {
99
- font-size: 16px;
100
- }
101
- h5 {
102
- font-size: 14px;
103
- }
104
- h6 {
105
- font-size: 13px;
106
- }
107
- hr {
108
- margin: 0 0 19px;
109
- border: 0;
110
- border-bottom: 1px solid #ccc;
111
- }
112
- blockquote {
113
- padding: 13px 13px 21px 15px;
114
- margin-bottom: 18px;
115
- font-family:georgia,serif;
116
- font-style: italic;
117
- }
118
- blockquote:before {
119
- content:"\201C";
120
- font-size:40px;
121
- margin-left:-10px;
122
- font-family:georgia,serif;
123
- color:#eee;
124
- }
125
- blockquote p {
126
- font-size: 14px;
127
- font-weight: 300;
128
- line-height: 18px;
129
- margin-bottom: 0;
130
- font-style: italic;
131
- }
132
- code, pre {
133
- font-family: Monaco, Andale Mono, Courier New, monospace;
134
- }
135
- code {
136
- background-color: #fee9cc;
137
- color: rgba(0, 0, 0, 0.75);
138
- padding: 1px 3px;
139
- font-size: 12px;
140
- -webkit-border-radius: 3px;
141
- -moz-border-radius: 3px;
142
- border-radius: 3px;
143
- }
144
- pre {
145
- display: block;
146
- padding: 14px;
147
- margin: 0 0 18px;
148
- line-height: 16px;
149
- font-size: 11px;
150
- border: 1px solid #d9d9d9;
151
- white-space: pre-wrap;
152
- word-wrap: break-word;
153
- }
154
- pre code {
155
- background-color: #fff;
156
- color:#737373;
157
- font-size: 11px;
158
- padding: 0;
635
+ .compare .data pre {
636
+ margin: 0;
637
+ padding: 0;
159
638
  }
160
- sup {
161
- font-size: 0.83em;
162
- vertical-align: super;
163
- line-height: 0;
639
+
640
+ .compare .data pre div {
641
+ padding: 0 0 0 1em;
164
642
  }
165
- * {
166
- -webkit-print-color-adjust: exact;
643
+
644
+ .compare .data tr td {
645
+ font-family: "Consolas", "Monaco", "Andale Mono", "Courier New", monospace;
646
+ font-size: 1.2em;
647
+ line-height: 1.2em;
648
+ margin: 0;
649
+ padding: 0;
167
650
  }
168
- @media screen and (min-width: 914px) {
169
- body {
170
- width: 854px;
171
- margin:10px auto;
172
- }
651
+
652
+ .compare .data tr td + td + td {
653
+ width: 100%;
654
+ }
655
+
656
+ .compare .data td.line_numbers {
657
+ background: #f7f7f7;
658
+ border-right: 1px solid #999;
659
+ color: #999;
660
+ padding: 0 0 0 0.5em;
661
+ }
662
+
663
+ .compare #compare-content ul.actions li,
664
+ .compare #footer ul.actions li {
665
+ margin-left: 0;
666
+ margin-right: 0.6em;
667
+ }
668
+
669
+ .compare #footer {
670
+ margin-bottom: 7em;
671
+ }
672
+
673
+
674
+
675
+ /* @control syntax */
676
+ .highlight { background: #ffffff; }
677
+ .highlight .c { color: #999988; font-style: italic }
678
+ .highlight .err { color: #a61717; background-color: #e3d2d2 }
679
+ .highlight .k { font-weight: bold }
680
+ .highlight .o { font-weight: bold }
681
+ .highlight .cm { color: #999988; font-style: italic }
682
+ .highlight .cp { color: #999999; font-weight: bold }
683
+ .highlight .c1 { color: #999988; font-style: italic }
684
+ .highlight .cs { color: #999999; font-weight: bold; font-style: italic }
685
+ .highlight .gd { color: #000000; background-color: #ffdddd }
686
+ .highlight .gd .x { color: #000000; background-color: #ffaaaa }
687
+ .highlight .ge { font-style: italic }
688
+ .highlight .gr { color: #aa0000 }
689
+ .highlight .gh { color: #999999 }
690
+ .highlight .gi { color: #000000; background-color: #ddffdd }
691
+ .highlight .gi .x { color: #000000; background-color: #aaffaa }
692
+ .highlight .gc { color: #999; background-color: #EAF2F5 }
693
+ .highlight .go { color: #888888 }
694
+ .highlight .gp { color: #555555 }
695
+ .highlight .gs { font-weight: bold }
696
+ .highlight .gu { color: #aaaaaa }
697
+ .highlight .gt { color: #aa0000 }
698
+
699
+
700
+ /* @control minibutton */
701
+ ul.actions {
702
+ display: block;
703
+ list-style-type: none;
704
+ overflow: hidden;
705
+ padding: 0;
706
+ }
707
+
708
+ ul.actions li {
709
+ float: left;
710
+ font-size: 0.9em;
711
+ margin-left: 1px;
712
+ margin-bottom: 1px;
713
+ }
714
+
715
+ .minibutton a {
716
+ background-color: #f7f7f7;
717
+ border: 1px solid #d4d4d4;
718
+ color: #333;
719
+ display: block;
720
+ font-weight: bold;
721
+ margin: 0;
722
+ padding: 0.6em 1em;
723
+ height: 1.4em;
724
+
725
+ text-shadow: 0 1px 0 #fff;
726
+
727
+ filter:progid:DXImageTransform.Microsoft.gradient(GradientType=0, startColorstr='#f4f4f4', endColorstr='#ececec');
728
+ background: -webkit-gradient(linear, left top, left bottom, from(#f4f4f4), to(#ececec));
729
+ background: -moz-linear-gradient(top, #f4f4f4, #ececec);
730
+
731
+ border-radius: 3px;
732
+ -moz-border-radius: 3px;
733
+ -webkit-border-radius: 3px;
173
734
  }
174
- @media print {
175
- body,code,pre code,h1,h2,h3,h4,h5,h6 {
176
- color: black;
735
+
736
+ @media all and (min-width: 940px) {
737
+ ul.actions li {
738
+ margin-left: 0.6em;
739
+ margin-bottom: 0.6em;
177
740
  }
178
- table, pre {
179
- page-break-inside: avoid;
741
+
742
+ .minibutton a {
743
+ padding: 0.4em 1em;
744
+ height: 1.4em;
180
745
  }
181
746
  }
182
- </style>
183
- <title>#{html_title}</title>
184
747
 
185
- </head>
186
- <body>
187
- HEADER
748
+ #search-submit {
749
+ background-color: #f7f7f7;
750
+ border: 1px solid #d4d4d4;
751
+ color: #333;
752
+ display: block;
753
+ font-weight: bold;
754
+ margin: 0;
755
+ padding: 0.4em 1em;
188
756
 
189
- html_footer = <<FOOTER
190
- </body>
191
- </html>
192
- FOOTER
757
+ text-shadow: 0 1px 0 #fff;
758
+
759
+ filter:progid:DXImageTransform.Microsoft.gradient(GradientType=0, startColorstr='#f4f4f4', endColorstr='#ececec');
760
+ background: -webkit-gradient(linear, left top, left bottom, from(#f4f4f4), to(#ececec));
761
+ background: -moz-linear-gradient(top, #f4f4f4, #ececec);
762
+
763
+ border-radius: 3px;
764
+ -moz-border-radius: 3px;
765
+ -webkit-border-radius: 3px;
766
+ }
767
+
768
+ .minibutton a:hover,
769
+ #search-submit:hover {
770
+ background: #3072b3;
771
+ border-color: #518cc6 #518cc6 #2a65a0;
772
+ color: #fff;
773
+ text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.3);
774
+ text-decoration: none;
775
+
776
+ filter:progid:DXImageTransform.Microsoft.gradient(GradientType=0, startColorstr='#599bdc', endColorstr='#3072b3');
777
+ background: -webkit-gradient(linear, left top, left bottom, from(#599bdc), to(#3072b3));
778
+ background: -moz-linear-gradient(top, #599bdc, #3072b3);
779
+ }
780
+
781
+ .minibutton a:visited {
782
+ text-decoration: none;
783
+ }
784
+
785
+
786
+ /* @special error */
787
+ #wiki-wrapper.error {
788
+ height: 1px;
789
+ position: absolute;
790
+ overflow: visible;
791
+ top: 50%;
792
+ width: 100%;
793
+ }
794
+
795
+ #error {
796
+ background-color: #f9f9f9;
797
+ border: 1px solid #e4e4e4;
798
+ left: 50%;
799
+ overflow: hidden;
800
+ padding: 2%;
801
+ margin: -10% 0 0 -35%;
802
+ position: absolute;
803
+ width: 70%;
804
+
805
+ border-radius: 0.5em;
806
+ -moz-border-radius: 0.5em;
807
+ -webkit-border-radius: 0.5em;
808
+ }
809
+
810
+ #error h1 {
811
+ font-size: 3em;
812
+ line-height: normal;
813
+ margin: 0;
814
+ padding: 0;
815
+ }
816
+
817
+ #error p {
818
+ font-size: 1.2em;
819
+ line-height: 1.6em;
820
+ margin: 1em 0 0.5em;
821
+ padding: 0;
822
+ }
193
823
 
194
- html_content = html_header + html_body + html_footer
195
- FileUtils.mkdir(output_dir) unless File.exist?(output_dir)
196
- FileUtils.rm(html_filename) if File.exist?(html_filename)
197
- File.write(html_filename, html_content)
198
824
 
199
- end # end files.each
825
+ /* @control searchbar */
826
+ #head #searchbar {
827
+ float: right;
828
+ padding: 2px 0 0 0;
829
+ overflow: hidden;
830
+ }
831
+
832
+ #head #searchbar #searchbar-fauxtext {
833
+ background: #fff;
834
+ border: 1px solid #d4d4d4;
835
+ overflow: hidden;
836
+ height: 2.2em;
837
+
838
+ border-radius: 0.3em;
839
+ -moz-border-radius: 0.3em;
840
+ -webkit-border-radius: 0.3em;
841
+ }
842
+
843
+ #head #searchbar #searchbar-fauxtext input#search-query {
844
+ border: none;
845
+ color: #000;
846
+ float: left;
847
+ font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
848
+ font-size: 1em;
849
+ height: inherit;
850
+ padding: 0 .5em;
851
+
852
+ -webkit-focus-ring: none;
853
+ }
854
+
855
+ .ie8 #head #searchbar #searchbar-fauxtext input#search-query {
856
+ padding: 0.5em 0 0 0.5em;
857
+ }
858
+
859
+ #head #searchbar #searchbar-fauxtext input#search-query.ph {
860
+ color: #999;
861
+ }
862
+
863
+ #head #searchbar #searchbar-fauxtext #search-submit {
864
+ border: 0;
865
+ border-left: 1px solid #d4d4d4;
866
+ cursor: pointer;
867
+ margin: 0 !important;
868
+ padding: 0;
869
+ float: right;
870
+ height: inherit;
871
+
872
+ border-radius: 0 3px 3px 0;
873
+ -moz-border-radius: 0 3px 3px 0;
874
+ -webkit-border-radius: 0 3px 3px 0;
875
+ }
876
+
877
+ #head #searchbar #searchbar-fauxtext #search-submit span {
878
+ background-image: url(../images/icon-sprite.png);
879
+ background-position: -431px -1px;
880
+ background-repeat: no-repeat;
881
+ display: block;
882
+ height: inherit;
883
+ overflow: hidden;
884
+ text-indent: -5000px;
885
+ width: 32px;
886
+ }
887
+
888
+ .ff #head #searchbar #searchbar-fauxtext #search-submit span,
889
+ .ie #head #searchbar #searchbar-fauxtext #search-submit span {
890
+ height: 2.2em;
891
+ }
892
+
893
+ #head #searchbar #searchbar-fauxtext #search-submit:hover span {
894
+ background-position: -431px -28px;
895
+ padding: 0;
896
+ }
897
+
898
+ @media all and (min-width: 940px) {
899
+ #head #searchbar {
900
+ padding: 0;
901
+ }
902
+
903
+ #head #searchbar #searchbar-fauxtext #search-submit span {
904
+ width: 28px;
905
+ }
906
+
907
+ #head #searchbar #searchbar-fauxtext #search-submit:hover span {
908
+ background-position: -431px -28px;
909
+ }
910
+ }
911
+
912
+ /* @section pages */
913
+
914
+ #pages {
915
+ font-size: 1.2em;
916
+ margin: 0 1em 20px 1em;
917
+ }
918
+
919
+ @media all and (min-width: 940px) {
920
+ #pages {
921
+ margin: 0 0 20px 0;
922
+ }
923
+ }
924
+
925
+ #pages ul {
926
+ list-style: none;
927
+ margin: 0;
928
+ padding: 0;
929
+ }
930
+
931
+ #pages li a.file,
932
+ #pages li a.folder {
933
+ background-image: url(../images/fileview/document.png);
934
+ background-position: 0 1px;
935
+ background-repeat: no-repeat;
936
+ padding-left: 20px;
937
+ }
938
+
939
+ #pages li a.folder {
940
+ background-image: url(../images/fileview/folder-horizontal.png);
941
+ }
942
+
943
+ #pages .breadcrumb {
944
+ border-top: 1px solid #ddd;
945
+ border-bottom: 1px solid #ddd;
946
+ margin: 1em 0;
947
+ padding: 0.25em;
948
+ }
949
+
950
+ .clearfloats {
951
+ clear: both;
952
+ }
953
+
954
+ /*
955
+ Gollum v3 Template
956
+ */
957
+
958
+ /*!
959
+ * Font Awesome 4.0.3 by @davegandy - http://fontawesome.io - @fontawesome
960
+ * License - http://fontawesome.io/license (Font: SIL OFL 1.1, CSS: MIT License)
961
+ */
962
+ @font-face {
963
+ font-family: 'FontAwesome';
964
+ src: url('../fonts/fontawesome-webfont.eot?v=4.0.3');
965
+ src: url('../fonts/fontawesome-webfont.eot?#iefix&v=4.0.3') format('embedded-opentype'), url('../fonts/fontawesome-webfont.woff?v=4.0.3') format('woff'), url('../fonts/fontawesome-webfont.ttf?v=4.0.3') format('truetype'), url('../fonts/fontawesome-webfont.svg?v=4.0.3#fontawesomeregular') format('svg');
966
+ font-weight: normal;
967
+ font-style: normal;
968
+ }
969
+
970
+ .fa {
971
+ display: inline-block;
972
+ font: normal normal 16px FontAwesome;
973
+ line-height: 1;
974
+ text-decoration: none;
975
+ -webkit-font-smoothing: antialiased;
976
+ -moz-osx-font-smoothing: grayscale;
977
+ }
978
+
979
+ .fa-link:before {
980
+ content: "\f0c1";
981
+ }
982
+
983
+ .fa-spinner:before {
984
+ content: "\f110";
985
+ }
986
+
987
+ .fa-spin {
988
+ -webkit-animation: spin 2s infinite linear;
989
+ -moz-animation: spin 2s infinite linear;
990
+ -o-animation: spin 2s infinite linear;
991
+ animation: spin 2s infinite linear;
992
+ }
993
+ @-moz-keyframes spin {
994
+ 0% {
995
+ -moz-transform: rotate(0deg);
996
+ }
997
+ 100% {
998
+ -moz-transform: rotate(359deg);
999
+ }
1000
+ }
1001
+ @-webkit-keyframes spin {
1002
+ 0% {
1003
+ -webkit-transform: rotate(0deg);
1004
+ }
1005
+ 100% {
1006
+ -webkit-transform: rotate(359deg);
1007
+ }
1008
+ }
1009
+ @-o-keyframes spin {
1010
+ 0% {
1011
+ -o-transform: rotate(0deg);
1012
+ }
1013
+ 100% {
1014
+ -o-transform: rotate(359deg);
1015
+ }
1016
+ }
1017
+ @keyframes spin {
1018
+ 0% {
1019
+ -webkit-transform: rotate(0deg);
1020
+ transform: rotate(0deg);
1021
+ }
1022
+ 100% {
1023
+ -webkit-transform: rotate(359deg);
1024
+ transform: rotate(359deg);
1025
+ }
1026
+ }
1027
+
1028
+ /* margin & padding reset*/
1029
+ * {
1030
+ margin: 0;
1031
+ padding: 0;
1032
+ }
1033
+
1034
+ div {
1035
+ display: block;
1036
+ }
1037
+
1038
+ html {
1039
+ font-family: sans-serif;
1040
+ -ms-text-size-adjust: 100%;
1041
+ -webkit-text-size-adjust: 100%;
1042
+ }
1043
+
1044
+ html, body {
1045
+ color: #333;
1046
+ }
1047
+
1048
+ body {
1049
+ background-color: white;
1050
+ font: 13.34px Helvetica, arial, freesans, clean, sans-serif;
1051
+ font-size: small;
1052
+ line-height: 1.4;
1053
+ }
1054
+
1055
+ img {
1056
+ border: 0;
1057
+ }
1058
+
1059
+ a {
1060
+ color: #4183C4;
1061
+ text-decoration: none;
1062
+ }
1063
+
1064
+ a.absent {
1065
+ color: #c00;
1066
+ }
1067
+
1068
+ a:focus {
1069
+ outline: thin dotted;
1070
+ }
1071
+
1072
+ a:active, a:hover {
1073
+ outline: 0;
1074
+ }
1075
+
1076
+ .markdown-body a.anchor:focus {
1077
+ outline: none;
1078
+ }
1079
+
1080
+ .markdown-body a[id].wiki-toc-anchor {
1081
+ color: inherit;
1082
+ text-decoration: none;
1083
+ }
1084
+
1085
+ .markdown-body {
1086
+ padding: 1em;
1087
+ font-size: 15px;
1088
+ line-height: 1.7;
1089
+ overflow: hidden;
1090
+ word-wrap: break-word;
1091
+ }
1092
+
1093
+ @media all and (min-width: 940px) {
1094
+ .markdown-body {
1095
+ padding: 30px;
1096
+ }
1097
+ }
1098
+
1099
+ .markdown-body > *:first-child {
1100
+ margin-top: 0 !important;
1101
+ }
1102
+
1103
+ .markdown-body > *:last-child {
1104
+ margin-bottom: 0 !important;
1105
+ }
1106
+
1107
+ .markdown-body a.absent {
1108
+ color: #c00;
1109
+ }
1110
+
1111
+ .markdown-body a.anchor {
1112
+ display: block;
1113
+ padding-right: 6px;
1114
+ padding-left: 30px;
1115
+ margin-left: -30px;
1116
+ cursor: pointer;
1117
+ position: absolute;
1118
+ top: 0;
1119
+ left: 0;
1120
+ bottom: 0;
1121
+ }
1122
+
1123
+ .markdown-body h1,
1124
+ .markdown-body h2,
1125
+ .markdown-body h3,
1126
+ .markdown-body h4,
1127
+ .markdown-body h5,
1128
+ .markdown-body h6 {
1129
+ margin: 1em 0 15px;
1130
+ padding: 0;
1131
+ font-weight: bold;
1132
+ line-height: 1.7;
1133
+ cursor: text;
1134
+ position: relative;
1135
+ -webkit-font-smoothing: antialiased;
1136
+ text-rendering: optimizeLegibility;
1137
+ }
1138
+
1139
+ .markdown-body h1 .fa-link, .markdown-body h2 .fa-link, .markdown-body h3 .fa-link, .markdown-body h4 .fa-link, .markdown-body h5 .fa-link, .markdown-body h6 .fa-link {
1140
+ display: none;
1141
+ text-decoration: none;
1142
+ color: #000;
1143
+ }
1144
+
1145
+ .markdown-body h1:hover a.anchor .fa-link,
1146
+ .markdown-body h2:hover a.anchor .fa-link,
1147
+ .markdown-body h3:hover a.anchor .fa-link,
1148
+ .markdown-body h4:hover a.anchor .fa-link,
1149
+ .markdown-body h5:hover a.anchor .fa-link,
1150
+ .markdown-body h6:hover a.anchor .fa-link {
1151
+ text-decoration: none;
1152
+ line-height: 1;
1153
+ padding-left: 8px;
1154
+ margin-left: -30px;
1155
+ top: 15%;
1156
+ display: inline-block;
1157
+ }
1158
+
1159
+ .markdown-body h1 tt,
1160
+ .markdown-body h1 code,
1161
+ .markdown-body h2 tt,
1162
+ .markdown-body h2 code,
1163
+ .markdown-body h3 tt,
1164
+ .markdown-body h3 code,
1165
+ .markdown-body h4 tt,
1166
+ .markdown-body h4 code,
1167
+ .markdown-body h5 tt,
1168
+ .markdown-body h5 code,
1169
+ .markdown-body h6 tt,
1170
+ .markdown-body h6 code {
1171
+ font-size: inherit;
1172
+ }
1173
+
1174
+ .markdown-body h1 {
1175
+ font-size: 2.5em;
1176
+ border-bottom: 1px solid #ddd;
1177
+ color: #000;
1178
+ margin-top: 20px;
1179
+ margin-bottom: 10px;
1180
+ }
1181
+
1182
+ .markdown-body h2 {
1183
+ font-size: 2em;
1184
+ border-bottom: 1px solid #eee;
1185
+ color: #000;
1186
+ }
1187
+
1188
+ .markdown-body h3 {
1189
+ font-size: 1.5em;
1190
+ }
1191
+
1192
+ .markdown-body h4 {
1193
+ font-size: 1.2em;
1194
+ }
1195
+
1196
+ .markdown-body h5 {
1197
+ font-size: 1em;
1198
+ }
1199
+
1200
+ .markdown-body h6 {
1201
+ color: #777;
1202
+ font-size: 1em;
1203
+ }
1204
+
1205
+ .markdown-body p,
1206
+ .markdown-body blockquote,
1207
+ .markdown-body ul,
1208
+ .markdown-body ol,
1209
+ .markdown-body dl,
1210
+ .markdown-body table,
1211
+ .markdown-body pre,
1212
+ .markdown-body hr {
1213
+ margin: 15px 0;
1214
+ }
1215
+
1216
+ .markdown-body li {
1217
+ margin: 0px;
1218
+ }
1219
+
1220
+ .markdown-body hr {
1221
+ background: transparent url(../images/dirty-shade.png) repeat-x 0 0;
1222
+ border: 0 none;
1223
+ color: #ccc;
1224
+ height: 4px;
1225
+ padding: 0;
1226
+ }
1227
+
1228
+ .markdown-body > h1:first-child,
1229
+ .markdown-body > h2:first-child,
1230
+ .markdown-body > h3:first-child,
1231
+ .markdown-body > h4:first-child,
1232
+ .markdown-body > h5:first-child,
1233
+ .markdown-body > h6:first-child {
1234
+ }
1235
+
1236
+ .markdown-body h1 + h2 + h3 {
1237
+ margin-top: 30px;
1238
+ }
1239
+
1240
+ .markdown-body a:first-child h1,
1241
+ .markdown-body a:first-child h2,
1242
+ .markdown-body a:first-child h3,
1243
+ .markdown-body a:first-child h4,
1244
+ .markdown-body a:first-child h5,
1245
+ .markdown-body a:first-child h6 {
1246
+ margin-top: 0;
1247
+ padding-top: 0;
1248
+ }
1249
+
1250
+ .markdown-body h1 + p,
1251
+ .markdown-body h2 + p,
1252
+ .markdown-body h3 + p,
1253
+ .markdown-body h4 + p,
1254
+ .markdown-body h5 + p,
1255
+ .markdown-body h6 + p {
1256
+ margin-top: 0;
1257
+ }
1258
+
1259
+ .markdown-body li p.first {
1260
+ display: inline-block;
1261
+ }
1262
+
1263
+ .markdown-body ul,
1264
+ .markdown-body ol {
1265
+ padding-left: 30px;
1266
+ }
1267
+
1268
+ .markdown-body dl {
1269
+ padding: 0;
1270
+ }
1271
+
1272
+ .markdown-body dl dt {
1273
+ font-size: 14px;
1274
+ font-weight: bold;
1275
+ font-style: italic;
1276
+ padding: 0;
1277
+ margin: 15px 0 5px;
1278
+ }
1279
+
1280
+ .markdown-body dl dt:first-child {
1281
+ padding: 0;
1282
+ }
1283
+
1284
+ .markdown-body dl dt > :first-child {
1285
+ margin-top: 0;
1286
+ }
1287
+
1288
+ .markdown-body dl dt > :last-child {
1289
+ margin-bottom: 0;
1290
+ }
1291
+
1292
+ .markdown-body dl dd {
1293
+ margin: 0 0 15px;
1294
+ padding: 0 15px;
1295
+ }
1296
+
1297
+ .markdown-body dl dd > :first-child {
1298
+ margin-top: 0;
1299
+ }
1300
+
1301
+ .markdown-body dl dd > :last-child {
1302
+ margin-bottom: 0;
1303
+ }
1304
+
1305
+ .markdown-body blockquote {
1306
+ border-left: 4px solid #DDD;
1307
+ padding: 0 15px;
1308
+ color: #777;
1309
+ }
1310
+
1311
+ .markdown-body blockquote > :first-child {
1312
+ margin-top: 0;
1313
+ }
1314
+
1315
+ .markdown-body blockquote > :last-child {
1316
+ margin-bottom: 0;
1317
+ }
1318
+
1319
+ .markdown-body table {
1320
+ padding: 0;
1321
+ border-collapse: collapse;
1322
+ border-spacing: 0;
1323
+ }
1324
+
1325
+ .markdown-body table tr {
1326
+ border-top: 1px solid #ccc;
1327
+ background-color: #fff;
1328
+ margin: 0;
1329
+ padding: 0;
1330
+ }
1331
+
1332
+ .markdown-body table tr:nth-child(2n) {
1333
+ background-color: #f8f8f8;
1334
+ }
1335
+
1336
+ .markdown-body table tr th {
1337
+ font-weight: bold;
1338
+ }
1339
+
1340
+ .markdown-body table tr th,
1341
+ .markdown-body table tr td {
1342
+ border: 1px solid #ccc;
1343
+ text-align: none;
1344
+ margin: 0;
1345
+ padding: 6px 13px;
1346
+ }
1347
+
1348
+ .markdown-body table tr th > :first-child,
1349
+ .markdown-body table tr td > :first-child {
1350
+ margin-top: 0;
1351
+ }
1352
+
1353
+ .markdown-body table tr th > :last-child,
1354
+ .markdown-body table tr td > :last-child {
1355
+ margin-bottom: 0;
1356
+ }
1357
+
1358
+ .markdown-body img {
1359
+ max-width: 100%;
1360
+ }
1361
+
1362
+ .markdown-body span.frame {
1363
+ display: block;
1364
+ overflow: hidden;
1365
+ }
1366
+
1367
+ .markdown-body span.frame > span {
1368
+ border: 1px solid #ddd;
1369
+ display: block;
1370
+ float: left;
1371
+ overflow: hidden;
1372
+ margin: 13px 0 0;
1373
+ padding: 7px;
1374
+ width: auto;
1375
+ }
1376
+
1377
+ .markdown-body span.frame span img {
1378
+ display: block;
1379
+ float: left;
1380
+ }
1381
+
1382
+ .markdown-body span.frame span span {
1383
+ clear: both;
1384
+ color: #333;
1385
+ display: block;
1386
+ padding: 5px 0 0;
1387
+ }
1388
+
1389
+ .markdown-body span.align-center {
1390
+ display: block;
1391
+ overflow: hidden;
1392
+ clear: both;
1393
+ }
1394
+
1395
+ .markdown-body span.align-center > span {
1396
+ display: block;
1397
+ overflow: hidden;
1398
+ margin: 13px auto 0;
1399
+ text-align: center;
1400
+ }
1401
+
1402
+ .markdown-body span.align-center span img {
1403
+ margin: 0 auto;
1404
+ text-align: center;
1405
+ }
1406
+
1407
+ .markdown-body span.align-right {
1408
+ display: block;
1409
+ overflow: hidden;
1410
+ clear: both;
1411
+ }
1412
+
1413
+ .markdown-body span.align-right > span {
1414
+ display: block;
1415
+ overflow: hidden;
1416
+ margin: 13px 0 0;
1417
+ text-align: right;
1418
+ }
1419
+
1420
+ .markdown-body span.align-right span img {
1421
+ margin: 0;
1422
+ text-align: right;
1423
+ }
1424
+
1425
+ .markdown-body span.float-left {
1426
+ display: block;
1427
+ margin-right: 13px;
1428
+ overflow: hidden;
1429
+ float: left;
1430
+ }
1431
+
1432
+ .markdown-body span.float-left span {
1433
+ margin: 13px 0 0;
1434
+ }
1435
+
1436
+ .markdown-body span.float-right {
1437
+ display: block;
1438
+ margin-left: 13px;
1439
+ overflow: hidden;
1440
+ float: right;
1441
+ }
1442
+
1443
+ .markdown-body span.float-right > span {
1444
+ display: block;
1445
+ overflow: hidden;
1446
+ margin: 13px auto 0;
1447
+ text-align: right;
1448
+ }
1449
+
1450
+ .markdown-body code,
1451
+ .markdown-body pre,
1452
+ .markdown-body tt {
1453
+ font-family: Consolas, "Liberation Mono", Courier, monospace;
1454
+ font-size: 12px;
1455
+ }
1456
+
1457
+ .markdown-body code,
1458
+ .markdown-body tt {
1459
+ margin: 0 2px;
1460
+ padding: 0 5px;
1461
+ white-space: nowrap;
1462
+ border: 1px solid #ddd;
1463
+ background-color: #f8f8f8;
1464
+ border-radius: 3px;
1465
+ }
1466
+
1467
+ .markdown-body pre > tt,
1468
+ .markdown-body pre > code {
1469
+ margin: 0;
1470
+ padding: 0;
1471
+ white-space: pre;
1472
+ border: none;
1473
+ background: transparent;
1474
+ }
1475
+
1476
+ .markdown-body pre {
1477
+ background-color: #f8f8f8;
1478
+ border: 1px solid #ccc;
1479
+ font-size: 13px;
1480
+ line-height: 19px;
1481
+ overflow: auto;
1482
+ padding: 6px 10px;
1483
+ border-radius: 3px;
1484
+ }
1485
+
1486
+ .markdown-body pre pre,
1487
+ .markdown-body pre code,
1488
+ .markdown-body pre tt {
1489
+ background-color: transparent;
1490
+ border: none;
1491
+ }
1492
+
1493
+ .markdown-body pre pre {
1494
+ margin: 0;
1495
+ padding: 0;
1496
+ }
1497
+
1498
+ .toc {
1499
+ background-color: #F7F7F7;
1500
+ border: 1px solid #ddd;
1501
+ padding: 5px 10px;
1502
+ margin: 0;
1503
+ border-radius: 3px;
1504
+ }
1505
+
1506
+ .toc-title {
1507
+ color: #888;
1508
+ font-size: 14px;
1509
+ line-height: 1.6;
1510
+ padding: 2px;
1511
+ border-bottom: 1px solid #ddd;
1512
+ margin-bottom: 3px;
1513
+ }
1514
+
1515
+ .toc ul {
1516
+ padding-left: 10px;
1517
+ margin: 0;
1518
+ }
1519
+
1520
+ .toc > ul {
1521
+ margin-left: 10px;
1522
+ font-size: 17px;
1523
+ }
1524
+
1525
+ .toc ul ul {
1526
+ font-size: 15px;
1527
+ }
1528
+
1529
+ .toc ul ul ul {
1530
+ font-size: 14px;
1531
+ }
1532
+
1533
+ .toc ul li {
1534
+ margin: 0;
1535
+ }
1536
+
1537
+ #header-content .toc,
1538
+ #footer-content .toc,
1539
+ #sidebar-content .toc {
1540
+ border: none;
1541
+ }
1542
+
1543
+ .highlight {
1544
+ background: #fff;
1545
+ }
1546
+
1547
+ .highlight .c {
1548
+ color: #998;
1549
+ font-style: italic;
1550
+ }
1551
+
1552
+ .highlight .err {
1553
+ color: #a61717;
1554
+ background-color: #e3d2d2;
1555
+ }
1556
+
1557
+ .highlight .k {
1558
+ font-weight: bold;
1559
+ }
1560
+
1561
+ .highlight .o {
1562
+ font-weight: bold;
1563
+ }
1564
+
1565
+ .highlight .cm {
1566
+ color: #998;
1567
+ font-style: italic;
1568
+ }
1569
+
1570
+ .highlight .cp {
1571
+ color: #999;
1572
+ font-weight: bold;
1573
+ }
1574
+
1575
+ .highlight .c1 {
1576
+ color: #998;
1577
+ font-style: italic;
1578
+ }
1579
+
1580
+ .highlight .cs {
1581
+ color: #999;
1582
+ font-weight: bold;
1583
+ font-style: italic;
1584
+ }
1585
+
1586
+ .highlight .gd {
1587
+ color: #000;
1588
+ background-color: #fdd;
1589
+ }
1590
+
1591
+ .highlight .gd .x {
1592
+ color: #000;
1593
+ background-color: #faa;
1594
+ }
1595
+
1596
+ .highlight .ge {
1597
+ font-style: italic;
1598
+ }
1599
+
1600
+ .highlight .gr {
1601
+ color: #a00;
1602
+ }
1603
+
1604
+ .highlight .gh {
1605
+ color: #999;
1606
+ }
1607
+
1608
+ .highlight .gi {
1609
+ color: #000;
1610
+ background-color: #dfd;
1611
+ }
1612
+
1613
+ .highlight .gi .x {
1614
+ color: #000;
1615
+ background-color: #afa;
1616
+ }
1617
+
1618
+ .highlight .go {
1619
+ color: #888;
1620
+ }
1621
+
1622
+ .highlight .gp {
1623
+ color: #555;
1624
+ }
1625
+
1626
+ .highlight .gs {
1627
+ font-weight: bold;
1628
+ }
1629
+
1630
+ .highlight .gu {
1631
+ color: #800080;
1632
+ font-weight: bold;
1633
+ }
1634
+
1635
+ .highlight .gt {
1636
+ color: #a00;
1637
+ }
1638
+
1639
+ .highlight .kc {
1640
+ font-weight: bold;
1641
+ }
1642
+
1643
+ .highlight .kd {
1644
+ font-weight: bold;
1645
+ }
1646
+
1647
+ .highlight .kn {
1648
+ font-weight: bold;
1649
+ }
1650
+
1651
+ .highlight .kp {
1652
+ font-weight: bold;
1653
+ }
1654
+
1655
+ .highlight .kr {
1656
+ font-weight: bold;
1657
+ }
1658
+
1659
+ .highlight .kt {
1660
+ color: #458;
1661
+ font-weight: bold;
1662
+ }
1663
+
1664
+ .highlight .m {
1665
+ color: #099;
1666
+ }
1667
+
1668
+ .highlight .s {
1669
+ color: #d14;
1670
+ }
1671
+
1672
+ .highlight .na {
1673
+ color: #008080;
1674
+ }
1675
+
1676
+ .highlight .nb {
1677
+ color: #0086B3;
1678
+ }
1679
+
1680
+ .highlight .nc {
1681
+ color: #458;
1682
+ font-weight: bold;
1683
+ }
1684
+
1685
+ .highlight .no {
1686
+ color: #008080;
1687
+ }
1688
+
1689
+ .highlight .ni {
1690
+ color: #800080;
1691
+ }
1692
+
1693
+ .highlight .ne {
1694
+ color: #900;
1695
+ font-weight: bold;
1696
+ }
1697
+
1698
+ .highlight .nf {
1699
+ color: #900;
1700
+ font-weight: bold;
1701
+ }
1702
+
1703
+ .highlight .nn {
1704
+ color: #555;
1705
+ }
1706
+
1707
+ .highlight .nt {
1708
+ color: #000080;
1709
+ }
1710
+
1711
+ .highlight .nv {
1712
+ color: #008080;
1713
+ }
1714
+
1715
+ .highlight .ow {
1716
+ font-weight: bold;
1717
+ }
1718
+
1719
+ .highlight .w {
1720
+ color: #bbb;
1721
+ }
1722
+
1723
+ .highlight .mf {
1724
+ color: #099;
1725
+ }
1726
+
1727
+ .highlight .mh {
1728
+ color: #099;
1729
+ }
1730
+
1731
+ .highlight .mi {
1732
+ color: #099;
1733
+ }
1734
+
1735
+ .highlight .mo {
1736
+ color: #099;
1737
+ }
1738
+
1739
+ .highlight .sb {
1740
+ color: #d14;
1741
+ }
1742
+
1743
+ .highlight .sc {
1744
+ color: #d14;
1745
+ }
1746
+
1747
+ .highlight .sd {
1748
+ color: #d14;
1749
+ }
1750
+
1751
+ .highlight .s2 {
1752
+ color: #d14;
1753
+ }
1754
+
1755
+ .highlight .se {
1756
+ color: #d14;
1757
+ }
1758
+
1759
+ .highlight .sh {
1760
+ color: #d14;
1761
+ }
1762
+
1763
+ .highlight .si {
1764
+ color: #d14;
1765
+ }
1766
+
1767
+ .highlight .sx {
1768
+ color: #d14;
1769
+ }
1770
+
1771
+ .highlight .sr {
1772
+ color: #009926;
1773
+ }
1774
+
1775
+ .highlight .s1 {
1776
+ color: #d14;
1777
+ }
1778
+
1779
+ .highlight .ss {
1780
+ color: #990073;
1781
+ }
1782
+
1783
+ .highlight .bp {
1784
+ color: #999;
1785
+ }
1786
+
1787
+ .highlight .vc {
1788
+ color: #008080;
1789
+ }
1790
+
1791
+ .highlight .vg {
1792
+ color: #008080;
1793
+ }
1794
+
1795
+ .highlight .vi {
1796
+ color: #008080;
1797
+ }
1798
+
1799
+ .highlight .il {
1800
+ color: #099;
1801
+ }
1802
+
1803
+ .highlight .gc {
1804
+ color: #999;
1805
+ background-color: #EAF2F5;
1806
+ }
1807
+
1808
+ .type-csharp .highlight .k {
1809
+ color: #00F;
1810
+ }
1811
+
1812
+ .type-csharp .highlight .kt {
1813
+ color: #00F;
1814
+ }
1815
+
1816
+ .type-csharp .highlight .nf {
1817
+ color: #000;
1818
+ font-weight: normal;
1819
+ }
1820
+
1821
+ .type-csharp .highlight .nc {
1822
+ color: #2B91AF;
1823
+ }
1824
+
1825
+ .type-csharp .highlight .nn {
1826
+ color: #000;
1827
+ }
1828
+
1829
+ .type-csharp .highlight .s {
1830
+ color: #A31515;
1831
+ }
1832
+
1833
+ .type-csharp .highlight .sc {
1834
+ color: #A31515;
1835
+ }
1836
+
1837
+
1838
+ </style>
1839
+ <title>#{html_title}</title>
1840
+
1841
+ </head>
1842
+ <body class="webkit">
1843
+
1844
+ <div id="wiki-wrapper" class="page">
1845
+ <div id="wiki-content">
1846
+ <div class="">
1847
+ <div id="wiki-body" class="gollum-markdown-content">
1848
+ <div class="markdown-body">
1849
+ HEADER
1850
+
1851
+ html_footer = <<FOOTER
1852
+ </div>
1853
+ </div>
1854
+ </div>
1855
+ </div>
1856
+ </div>
1857
+
1858
+ </body>
1859
+ </html>
1860
+ FOOTER
1861
+
1862
+ html_content = html_header + html_body + html_footer
1863
+ FileUtils.rm(html_filename) if File.exist?(html_filename)
1864
+ File.write(html_filename, html_content)
200
1865
 
201
1866
  end # end def
202
1867