cabbage_doc 0.1.2 → 0.1.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/cabbage_doc.rb +7 -1
- data/lib/cabbage_doc/configuration.rb +5 -2
- data/lib/cabbage_doc/controller.rb +22 -11
- data/lib/cabbage_doc/highlighter.rb +23 -0
- data/lib/cabbage_doc/markdown.rb +28 -0
- data/lib/cabbage_doc/parser.rb +7 -3
- data/lib/cabbage_doc/response.rb +16 -8
- data/lib/cabbage_doc/task.rb +4 -3
- data/lib/cabbage_doc/version.rb +1 -1
- data/lib/cabbage_doc/web.rb +3 -2
- data/lib/cabbage_doc/web_helper.rb +11 -9
- data/web/public/css/highlight/github.css +185 -75
- data/web/public/css/highlight/molokai.css +208 -0
- data/web/public/css/highlight/monokai.css +202 -62
- data/web/public/css/highlight/thankful_eyes.css +173 -0
- data/web/public/css/{application.css → styles.css} +54 -3
- data/web/public/js/application.js +0 -9
- data/web/views/example.haml +1 -3
- data/web/views/layout.haml +3 -4
- data/web/views/page_layout.haml +4 -2
- data/web/views/response.haml +5 -10
- metadata +34 -51
- data/web/public/css/base.css +0 -23
- data/web/public/css/highlight/agate.css +0 -108
- data/web/public/css/highlight/androidstudio.css +0 -66
- data/web/public/css/highlight/arduino-light.css +0 -88
- data/web/public/css/highlight/arta.css +0 -73
- data/web/public/css/highlight/ascetic.css +0 -45
- data/web/public/css/highlight/codepen-embed.css +0 -60
- data/web/public/css/highlight/darkula.css +0 -74
- data/web/public/css/highlight/default.css +0 -99
- data/web/public/css/highlight/docco.css +0 -97
- data/web/public/css/highlight/dracula.css +0 -76
- data/web/public/css/highlight/foundation.css +0 -88
- data/web/public/css/highlight/github-gist.css +0 -71
- data/web/public/css/highlight/googlecode.css +0 -89
- data/web/public/css/highlight/grayscale.css +0 -101
- data/web/public/css/highlight/hybrid.css +0 -102
- data/web/public/css/highlight/idea.css +0 -97
- data/web/public/css/highlight/ir-black.css +0 -73
- data/web/public/css/highlight/magula.css +0 -70
- data/web/public/css/highlight/mono-blue.css +0 -59
- data/web/public/css/highlight/monokai-sublime.css +0 -83
- data/web/public/css/highlight/obsidian.css +0 -88
- data/web/public/css/highlight/purebasic.css +0 -96
- data/web/public/css/highlight/qtcreator_dark.css +0 -83
- data/web/public/css/highlight/qtcreator_light.css +0 -83
- data/web/public/css/highlight/railscasts.css +0 -106
- data/web/public/css/highlight/rainbow.css +0 -85
- data/web/public/css/highlight/school-book.css +0 -72
- data/web/public/css/highlight/solarized-dark.css +0 -84
- data/web/public/css/highlight/solarized-light.css +0 -84
- data/web/public/css/highlight/sunburst.css +0 -102
- data/web/public/css/highlight/vs.css +0 -68
- data/web/public/css/highlight/xcode.css +0 -93
- data/web/public/css/highlight/zenburn.css +0 -80
- data/web/public/js/highlight.min.js +0 -3
@@ -1,74 +0,0 @@
|
|
1
|
-
/*
|
2
|
-
|
3
|
-
Darkula color scheme from the JetBrains family of IDEs
|
4
|
-
|
5
|
-
*/
|
6
|
-
|
7
|
-
|
8
|
-
.hljs {
|
9
|
-
display: block;
|
10
|
-
overflow-x: auto;
|
11
|
-
padding: 0.5em;
|
12
|
-
background: #2b2b2b;
|
13
|
-
}
|
14
|
-
|
15
|
-
.hljs {
|
16
|
-
color: #bababa;
|
17
|
-
}
|
18
|
-
|
19
|
-
.hljs-strong,
|
20
|
-
.hljs-emphasis {
|
21
|
-
color: #a8a8a2;
|
22
|
-
}
|
23
|
-
|
24
|
-
.hljs-bullet,
|
25
|
-
.hljs-quote,
|
26
|
-
.hljs-link,
|
27
|
-
.hljs-number,
|
28
|
-
.hljs-regexp,
|
29
|
-
.hljs-literal {
|
30
|
-
color: #6896ba;
|
31
|
-
}
|
32
|
-
|
33
|
-
.hljs-code,
|
34
|
-
.hljs-selector-class {
|
35
|
-
color: #a6e22e;
|
36
|
-
}
|
37
|
-
|
38
|
-
.hljs-emphasis {
|
39
|
-
font-style: italic;
|
40
|
-
}
|
41
|
-
|
42
|
-
.hljs-keyword,
|
43
|
-
.hljs-selector-tag,
|
44
|
-
.hljs-section,
|
45
|
-
.hljs-attribute,
|
46
|
-
.hljs-name,
|
47
|
-
.hljs-variable {
|
48
|
-
color: #cb7832;
|
49
|
-
}
|
50
|
-
|
51
|
-
.hljs-params {
|
52
|
-
color: #b9b9b9;
|
53
|
-
}
|
54
|
-
|
55
|
-
.hljs-string,
|
56
|
-
.hljs-subst,
|
57
|
-
.hljs-type,
|
58
|
-
.hljs-built_in,
|
59
|
-
.hljs-builtin-name,
|
60
|
-
.hljs-symbol,
|
61
|
-
.hljs-selector-id,
|
62
|
-
.hljs-selector-attr,
|
63
|
-
.hljs-selector-pseudo,
|
64
|
-
.hljs-template-tag,
|
65
|
-
.hljs-template-variable,
|
66
|
-
.hljs-addition {
|
67
|
-
color: #e0c46c;
|
68
|
-
}
|
69
|
-
|
70
|
-
.hljs-comment,
|
71
|
-
.hljs-deletion,
|
72
|
-
.hljs-meta {
|
73
|
-
color: #7f7f7f;
|
74
|
-
}
|
@@ -1,99 +0,0 @@
|
|
1
|
-
/*
|
2
|
-
|
3
|
-
Original highlight.js style (c) Ivan Sagalaev <maniac@softwaremaniacs.org>
|
4
|
-
|
5
|
-
*/
|
6
|
-
|
7
|
-
.hljs {
|
8
|
-
display: block;
|
9
|
-
overflow-x: auto;
|
10
|
-
padding: 0.5em;
|
11
|
-
background: #F0F0F0;
|
12
|
-
}
|
13
|
-
|
14
|
-
|
15
|
-
/* Base color: saturation 0; */
|
16
|
-
|
17
|
-
.hljs,
|
18
|
-
.hljs-subst {
|
19
|
-
color: #444;
|
20
|
-
}
|
21
|
-
|
22
|
-
.hljs-comment {
|
23
|
-
color: #888888;
|
24
|
-
}
|
25
|
-
|
26
|
-
.hljs-keyword,
|
27
|
-
.hljs-attribute,
|
28
|
-
.hljs-selector-tag,
|
29
|
-
.hljs-meta-keyword,
|
30
|
-
.hljs-doctag,
|
31
|
-
.hljs-name {
|
32
|
-
font-weight: bold;
|
33
|
-
}
|
34
|
-
|
35
|
-
|
36
|
-
/* User color: hue: 0 */
|
37
|
-
|
38
|
-
.hljs-type,
|
39
|
-
.hljs-string,
|
40
|
-
.hljs-number,
|
41
|
-
.hljs-selector-id,
|
42
|
-
.hljs-selector-class,
|
43
|
-
.hljs-quote,
|
44
|
-
.hljs-template-tag,
|
45
|
-
.hljs-deletion {
|
46
|
-
color: #880000;
|
47
|
-
}
|
48
|
-
|
49
|
-
.hljs-title,
|
50
|
-
.hljs-section {
|
51
|
-
color: #880000;
|
52
|
-
font-weight: bold;
|
53
|
-
}
|
54
|
-
|
55
|
-
.hljs-regexp,
|
56
|
-
.hljs-symbol,
|
57
|
-
.hljs-variable,
|
58
|
-
.hljs-template-variable,
|
59
|
-
.hljs-link,
|
60
|
-
.hljs-selector-attr,
|
61
|
-
.hljs-selector-pseudo {
|
62
|
-
color: #BC6060;
|
63
|
-
}
|
64
|
-
|
65
|
-
|
66
|
-
/* Language color: hue: 90; */
|
67
|
-
|
68
|
-
.hljs-literal {
|
69
|
-
color: #78A960;
|
70
|
-
}
|
71
|
-
|
72
|
-
.hljs-built_in,
|
73
|
-
.hljs-bullet,
|
74
|
-
.hljs-code,
|
75
|
-
.hljs-addition {
|
76
|
-
color: #397300;
|
77
|
-
}
|
78
|
-
|
79
|
-
|
80
|
-
/* Meta color: hue: 200 */
|
81
|
-
|
82
|
-
.hljs-meta {
|
83
|
-
color: #1f7199;
|
84
|
-
}
|
85
|
-
|
86
|
-
.hljs-meta-string {
|
87
|
-
color: #4d99bf;
|
88
|
-
}
|
89
|
-
|
90
|
-
|
91
|
-
/* Misc effects */
|
92
|
-
|
93
|
-
.hljs-emphasis {
|
94
|
-
font-style: italic;
|
95
|
-
}
|
96
|
-
|
97
|
-
.hljs-strong {
|
98
|
-
font-weight: bold;
|
99
|
-
}
|
@@ -1,97 +0,0 @@
|
|
1
|
-
/*
|
2
|
-
Docco style used in http://jashkenas.github.com/docco/ converted by Simon Madine (@thingsinjars)
|
3
|
-
*/
|
4
|
-
|
5
|
-
.hljs {
|
6
|
-
display: block;
|
7
|
-
overflow-x: auto;
|
8
|
-
padding: 0.5em;
|
9
|
-
color: #000;
|
10
|
-
background: #f8f8ff;
|
11
|
-
}
|
12
|
-
|
13
|
-
.hljs-comment,
|
14
|
-
.hljs-quote {
|
15
|
-
color: #408080;
|
16
|
-
font-style: italic;
|
17
|
-
}
|
18
|
-
|
19
|
-
.hljs-keyword,
|
20
|
-
.hljs-selector-tag,
|
21
|
-
.hljs-literal,
|
22
|
-
.hljs-subst {
|
23
|
-
color: #954121;
|
24
|
-
}
|
25
|
-
|
26
|
-
.hljs-number {
|
27
|
-
color: #40a070;
|
28
|
-
}
|
29
|
-
|
30
|
-
.hljs-string,
|
31
|
-
.hljs-doctag {
|
32
|
-
color: #219161;
|
33
|
-
}
|
34
|
-
|
35
|
-
.hljs-selector-id,
|
36
|
-
.hljs-selector-class,
|
37
|
-
.hljs-section,
|
38
|
-
.hljs-type {
|
39
|
-
color: #19469d;
|
40
|
-
}
|
41
|
-
|
42
|
-
.hljs-params {
|
43
|
-
color: #00f;
|
44
|
-
}
|
45
|
-
|
46
|
-
.hljs-title {
|
47
|
-
color: #458;
|
48
|
-
font-weight: bold;
|
49
|
-
}
|
50
|
-
|
51
|
-
.hljs-tag,
|
52
|
-
.hljs-name,
|
53
|
-
.hljs-attribute {
|
54
|
-
color: #000080;
|
55
|
-
font-weight: normal;
|
56
|
-
}
|
57
|
-
|
58
|
-
.hljs-variable,
|
59
|
-
.hljs-template-variable {
|
60
|
-
color: #008080;
|
61
|
-
}
|
62
|
-
|
63
|
-
.hljs-regexp,
|
64
|
-
.hljs-link {
|
65
|
-
color: #b68;
|
66
|
-
}
|
67
|
-
|
68
|
-
.hljs-symbol,
|
69
|
-
.hljs-bullet {
|
70
|
-
color: #990073;
|
71
|
-
}
|
72
|
-
|
73
|
-
.hljs-built_in,
|
74
|
-
.hljs-builtin-name {
|
75
|
-
color: #0086b3;
|
76
|
-
}
|
77
|
-
|
78
|
-
.hljs-meta {
|
79
|
-
color: #999;
|
80
|
-
font-weight: bold;
|
81
|
-
}
|
82
|
-
|
83
|
-
.hljs-deletion {
|
84
|
-
background: #fdd;
|
85
|
-
}
|
86
|
-
|
87
|
-
.hljs-addition {
|
88
|
-
background: #dfd;
|
89
|
-
}
|
90
|
-
|
91
|
-
.hljs-emphasis {
|
92
|
-
font-style: italic;
|
93
|
-
}
|
94
|
-
|
95
|
-
.hljs-strong {
|
96
|
-
font-weight: bold;
|
97
|
-
}
|
@@ -1,76 +0,0 @@
|
|
1
|
-
/*
|
2
|
-
|
3
|
-
Dracula Theme v1.2.0
|
4
|
-
|
5
|
-
https://github.com/zenorocha/dracula-theme
|
6
|
-
|
7
|
-
Copyright 2015, All rights reserved
|
8
|
-
|
9
|
-
Code licensed under the MIT license
|
10
|
-
http://zenorocha.mit-license.org
|
11
|
-
|
12
|
-
@author Éverton Ribeiro <nuxlli@gmail.com>
|
13
|
-
@author Zeno Rocha <hi@zenorocha.com>
|
14
|
-
|
15
|
-
*/
|
16
|
-
|
17
|
-
.hljs {
|
18
|
-
display: block;
|
19
|
-
overflow-x: auto;
|
20
|
-
padding: 0.5em;
|
21
|
-
background: #282a36;
|
22
|
-
}
|
23
|
-
|
24
|
-
.hljs-keyword,
|
25
|
-
.hljs-selector-tag,
|
26
|
-
.hljs-literal,
|
27
|
-
.hljs-section,
|
28
|
-
.hljs-link {
|
29
|
-
color: #8be9fd;
|
30
|
-
}
|
31
|
-
|
32
|
-
.hljs-function .hljs-keyword {
|
33
|
-
color: #ff79c6;
|
34
|
-
}
|
35
|
-
|
36
|
-
.hljs,
|
37
|
-
.hljs-subst {
|
38
|
-
color: #f8f8f2;
|
39
|
-
}
|
40
|
-
|
41
|
-
.hljs-string,
|
42
|
-
.hljs-title,
|
43
|
-
.hljs-name,
|
44
|
-
.hljs-type,
|
45
|
-
.hljs-attribute,
|
46
|
-
.hljs-symbol,
|
47
|
-
.hljs-bullet,
|
48
|
-
.hljs-addition,
|
49
|
-
.hljs-variable,
|
50
|
-
.hljs-template-tag,
|
51
|
-
.hljs-template-variable {
|
52
|
-
color: #f1fa8c;
|
53
|
-
}
|
54
|
-
|
55
|
-
.hljs-comment,
|
56
|
-
.hljs-quote,
|
57
|
-
.hljs-deletion,
|
58
|
-
.hljs-meta {
|
59
|
-
color: #6272a4;
|
60
|
-
}
|
61
|
-
|
62
|
-
.hljs-keyword,
|
63
|
-
.hljs-selector-tag,
|
64
|
-
.hljs-literal,
|
65
|
-
.hljs-title,
|
66
|
-
.hljs-section,
|
67
|
-
.hljs-doctag,
|
68
|
-
.hljs-type,
|
69
|
-
.hljs-name,
|
70
|
-
.hljs-strong {
|
71
|
-
font-weight: bold;
|
72
|
-
}
|
73
|
-
|
74
|
-
.hljs-emphasis {
|
75
|
-
font-style: italic;
|
76
|
-
}
|
@@ -1,88 +0,0 @@
|
|
1
|
-
/*
|
2
|
-
Description: Foundation 4 docs style for highlight.js
|
3
|
-
Author: Dan Allen <dan.j.allen@gmail.com>
|
4
|
-
Website: http://foundation.zurb.com/docs/
|
5
|
-
Version: 1.0
|
6
|
-
Date: 2013-04-02
|
7
|
-
*/
|
8
|
-
|
9
|
-
.hljs {
|
10
|
-
display: block;
|
11
|
-
overflow-x: auto;
|
12
|
-
padding: 0.5em;
|
13
|
-
background: #eee; color: black;
|
14
|
-
}
|
15
|
-
|
16
|
-
.hljs-link,
|
17
|
-
.hljs-emphasis,
|
18
|
-
.hljs-attribute,
|
19
|
-
.hljs-addition {
|
20
|
-
color: #070;
|
21
|
-
}
|
22
|
-
|
23
|
-
.hljs-emphasis {
|
24
|
-
font-style: italic;
|
25
|
-
}
|
26
|
-
|
27
|
-
.hljs-strong,
|
28
|
-
.hljs-string,
|
29
|
-
.hljs-deletion {
|
30
|
-
color: #d14;
|
31
|
-
}
|
32
|
-
|
33
|
-
.hljs-strong {
|
34
|
-
font-weight: bold;
|
35
|
-
}
|
36
|
-
|
37
|
-
.hljs-quote,
|
38
|
-
.hljs-comment {
|
39
|
-
color: #998;
|
40
|
-
font-style: italic;
|
41
|
-
}
|
42
|
-
|
43
|
-
.hljs-section,
|
44
|
-
.hljs-title {
|
45
|
-
color: #900;
|
46
|
-
}
|
47
|
-
|
48
|
-
.hljs-class .hljs-title,
|
49
|
-
.hljs-type {
|
50
|
-
color: #458;
|
51
|
-
}
|
52
|
-
|
53
|
-
.hljs-variable,
|
54
|
-
.hljs-template-variable {
|
55
|
-
color: #336699;
|
56
|
-
}
|
57
|
-
|
58
|
-
.hljs-bullet {
|
59
|
-
color: #997700;
|
60
|
-
}
|
61
|
-
|
62
|
-
.hljs-meta {
|
63
|
-
color: #3344bb;
|
64
|
-
}
|
65
|
-
|
66
|
-
.hljs-code,
|
67
|
-
.hljs-number,
|
68
|
-
.hljs-literal,
|
69
|
-
.hljs-keyword,
|
70
|
-
.hljs-selector-tag {
|
71
|
-
color: #099;
|
72
|
-
}
|
73
|
-
|
74
|
-
.hljs-regexp {
|
75
|
-
background-color: #fff0ff;
|
76
|
-
color: #880088;
|
77
|
-
}
|
78
|
-
|
79
|
-
.hljs-symbol {
|
80
|
-
color: #990073;
|
81
|
-
}
|
82
|
-
|
83
|
-
.hljs-tag,
|
84
|
-
.hljs-name,
|
85
|
-
.hljs-selector-id,
|
86
|
-
.hljs-selector-class {
|
87
|
-
color: #007700;
|
88
|
-
}
|
@@ -1,71 +0,0 @@
|
|
1
|
-
/**
|
2
|
-
* GitHub Gist Theme
|
3
|
-
* Author : Louis Barranqueiro - https://github.com/LouisBarranqueiro
|
4
|
-
*/
|
5
|
-
|
6
|
-
.hljs {
|
7
|
-
display: block;
|
8
|
-
background: white;
|
9
|
-
padding: 0.5em;
|
10
|
-
color: #333333;
|
11
|
-
overflow-x: auto;
|
12
|
-
}
|
13
|
-
|
14
|
-
.hljs-comment,
|
15
|
-
.hljs-meta {
|
16
|
-
color: #969896;
|
17
|
-
}
|
18
|
-
|
19
|
-
.hljs-string,
|
20
|
-
.hljs-variable,
|
21
|
-
.hljs-template-variable,
|
22
|
-
.hljs-strong,
|
23
|
-
.hljs-emphasis,
|
24
|
-
.hljs-quote {
|
25
|
-
color: #df5000;
|
26
|
-
}
|
27
|
-
|
28
|
-
.hljs-keyword,
|
29
|
-
.hljs-selector-tag,
|
30
|
-
.hljs-type {
|
31
|
-
color: #a71d5d;
|
32
|
-
}
|
33
|
-
|
34
|
-
.hljs-literal,
|
35
|
-
.hljs-symbol,
|
36
|
-
.hljs-bullet,
|
37
|
-
.hljs-attribute {
|
38
|
-
color: #0086b3;
|
39
|
-
}
|
40
|
-
|
41
|
-
.hljs-section,
|
42
|
-
.hljs-name {
|
43
|
-
color: #63a35c;
|
44
|
-
}
|
45
|
-
|
46
|
-
.hljs-tag {
|
47
|
-
color: #333333;
|
48
|
-
}
|
49
|
-
|
50
|
-
.hljs-title,
|
51
|
-
.hljs-attr,
|
52
|
-
.hljs-selector-id,
|
53
|
-
.hljs-selector-class,
|
54
|
-
.hljs-selector-attr,
|
55
|
-
.hljs-selector-pseudo {
|
56
|
-
color: #795da3;
|
57
|
-
}
|
58
|
-
|
59
|
-
.hljs-addition {
|
60
|
-
color: #55a532;
|
61
|
-
background-color: #eaffea;
|
62
|
-
}
|
63
|
-
|
64
|
-
.hljs-deletion {
|
65
|
-
color: #bd2c00;
|
66
|
-
background-color: #ffecec;
|
67
|
-
}
|
68
|
-
|
69
|
-
.hljs-link {
|
70
|
-
text-decoration: underline;
|
71
|
-
}
|