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,70 +0,0 @@
|
|
1
|
-
/*
|
2
|
-
Description: Magula style for highligh.js
|
3
|
-
Author: Ruslan Keba <rukeba@gmail.com>
|
4
|
-
Website: http://rukeba.com/
|
5
|
-
Version: 1.0
|
6
|
-
Date: 2009-01-03
|
7
|
-
Music: Aphex Twin / Xtal
|
8
|
-
*/
|
9
|
-
|
10
|
-
.hljs {
|
11
|
-
display: block;
|
12
|
-
overflow-x: auto;
|
13
|
-
padding: 0.5em;
|
14
|
-
background-color: #f4f4f4;
|
15
|
-
}
|
16
|
-
|
17
|
-
.hljs,
|
18
|
-
.hljs-subst {
|
19
|
-
color: black;
|
20
|
-
}
|
21
|
-
|
22
|
-
.hljs-string,
|
23
|
-
.hljs-title,
|
24
|
-
.hljs-symbol,
|
25
|
-
.hljs-bullet,
|
26
|
-
.hljs-attribute,
|
27
|
-
.hljs-addition,
|
28
|
-
.hljs-variable,
|
29
|
-
.hljs-template-tag,
|
30
|
-
.hljs-template-variable {
|
31
|
-
color: #050;
|
32
|
-
}
|
33
|
-
|
34
|
-
.hljs-comment,
|
35
|
-
.hljs-quote {
|
36
|
-
color: #777;
|
37
|
-
}
|
38
|
-
|
39
|
-
.hljs-number,
|
40
|
-
.hljs-regexp,
|
41
|
-
.hljs-literal,
|
42
|
-
.hljs-type,
|
43
|
-
.hljs-link {
|
44
|
-
color: #800;
|
45
|
-
}
|
46
|
-
|
47
|
-
.hljs-deletion,
|
48
|
-
.hljs-meta {
|
49
|
-
color: #00e;
|
50
|
-
}
|
51
|
-
|
52
|
-
.hljs-keyword,
|
53
|
-
.hljs-selector-tag,
|
54
|
-
.hljs-doctag,
|
55
|
-
.hljs-title,
|
56
|
-
.hljs-section,
|
57
|
-
.hljs-built_in,
|
58
|
-
.hljs-tag,
|
59
|
-
.hljs-name {
|
60
|
-
font-weight: bold;
|
61
|
-
color: navy;
|
62
|
-
}
|
63
|
-
|
64
|
-
.hljs-emphasis {
|
65
|
-
font-style: italic;
|
66
|
-
}
|
67
|
-
|
68
|
-
.hljs-strong {
|
69
|
-
font-weight: bold;
|
70
|
-
}
|
@@ -1,59 +0,0 @@
|
|
1
|
-
/*
|
2
|
-
Five-color theme from a single blue hue.
|
3
|
-
*/
|
4
|
-
.hljs {
|
5
|
-
display: block;
|
6
|
-
overflow-x: auto;
|
7
|
-
padding: 0.5em;
|
8
|
-
background: #eaeef3;
|
9
|
-
}
|
10
|
-
|
11
|
-
.hljs {
|
12
|
-
color: #00193a;
|
13
|
-
}
|
14
|
-
|
15
|
-
.hljs-keyword,
|
16
|
-
.hljs-selector-tag,
|
17
|
-
.hljs-title,
|
18
|
-
.hljs-section,
|
19
|
-
.hljs-doctag,
|
20
|
-
.hljs-name,
|
21
|
-
.hljs-strong {
|
22
|
-
font-weight: bold;
|
23
|
-
}
|
24
|
-
|
25
|
-
.hljs-comment {
|
26
|
-
color: #738191;
|
27
|
-
}
|
28
|
-
|
29
|
-
.hljs-string,
|
30
|
-
.hljs-title,
|
31
|
-
.hljs-section,
|
32
|
-
.hljs-built_in,
|
33
|
-
.hljs-literal,
|
34
|
-
.hljs-type,
|
35
|
-
.hljs-addition,
|
36
|
-
.hljs-tag,
|
37
|
-
.hljs-quote,
|
38
|
-
.hljs-name,
|
39
|
-
.hljs-selector-id,
|
40
|
-
.hljs-selector-class {
|
41
|
-
color: #0048ab;
|
42
|
-
}
|
43
|
-
|
44
|
-
.hljs-meta,
|
45
|
-
.hljs-subst,
|
46
|
-
.hljs-symbol,
|
47
|
-
.hljs-regexp,
|
48
|
-
.hljs-attribute,
|
49
|
-
.hljs-deletion,
|
50
|
-
.hljs-variable,
|
51
|
-
.hljs-template-variable,
|
52
|
-
.hljs-link,
|
53
|
-
.hljs-bullet {
|
54
|
-
color: #4c81c9;
|
55
|
-
}
|
56
|
-
|
57
|
-
.hljs-emphasis {
|
58
|
-
font-style: italic;
|
59
|
-
}
|
@@ -1,83 +0,0 @@
|
|
1
|
-
/*
|
2
|
-
|
3
|
-
Monokai Sublime style. Derived from Monokai by noformnocontent http://nn.mit-license.org/
|
4
|
-
|
5
|
-
*/
|
6
|
-
|
7
|
-
.hljs {
|
8
|
-
display: block;
|
9
|
-
overflow-x: auto;
|
10
|
-
padding: 0.5em;
|
11
|
-
background: #23241f;
|
12
|
-
}
|
13
|
-
|
14
|
-
.hljs,
|
15
|
-
.hljs-tag,
|
16
|
-
.hljs-subst {
|
17
|
-
color: #f8f8f2;
|
18
|
-
}
|
19
|
-
|
20
|
-
.hljs-strong,
|
21
|
-
.hljs-emphasis {
|
22
|
-
color: #a8a8a2;
|
23
|
-
}
|
24
|
-
|
25
|
-
.hljs-bullet,
|
26
|
-
.hljs-quote,
|
27
|
-
.hljs-number,
|
28
|
-
.hljs-regexp,
|
29
|
-
.hljs-literal,
|
30
|
-
.hljs-link {
|
31
|
-
color: #ae81ff;
|
32
|
-
}
|
33
|
-
|
34
|
-
.hljs-code,
|
35
|
-
.hljs-title,
|
36
|
-
.hljs-section,
|
37
|
-
.hljs-selector-class {
|
38
|
-
color: #a6e22e;
|
39
|
-
}
|
40
|
-
|
41
|
-
.hljs-strong {
|
42
|
-
font-weight: bold;
|
43
|
-
}
|
44
|
-
|
45
|
-
.hljs-emphasis {
|
46
|
-
font-style: italic;
|
47
|
-
}
|
48
|
-
|
49
|
-
.hljs-keyword,
|
50
|
-
.hljs-selector-tag,
|
51
|
-
.hljs-name,
|
52
|
-
.hljs-attr {
|
53
|
-
color: #f92672;
|
54
|
-
}
|
55
|
-
|
56
|
-
.hljs-symbol,
|
57
|
-
.hljs-attribute {
|
58
|
-
color: #66d9ef;
|
59
|
-
}
|
60
|
-
|
61
|
-
.hljs-params,
|
62
|
-
.hljs-class .hljs-title {
|
63
|
-
color: #f8f8f2;
|
64
|
-
}
|
65
|
-
|
66
|
-
.hljs-string,
|
67
|
-
.hljs-type,
|
68
|
-
.hljs-built_in,
|
69
|
-
.hljs-builtin-name,
|
70
|
-
.hljs-selector-id,
|
71
|
-
.hljs-selector-attr,
|
72
|
-
.hljs-selector-pseudo,
|
73
|
-
.hljs-addition,
|
74
|
-
.hljs-variable,
|
75
|
-
.hljs-template-variable {
|
76
|
-
color: #e6db74;
|
77
|
-
}
|
78
|
-
|
79
|
-
.hljs-comment,
|
80
|
-
.hljs-deletion,
|
81
|
-
.hljs-meta {
|
82
|
-
color: #75715e;
|
83
|
-
}
|
@@ -1,88 +0,0 @@
|
|
1
|
-
/**
|
2
|
-
* Obsidian style
|
3
|
-
* ported by Alexander Marenin (http://github.com/ioncreature)
|
4
|
-
*/
|
5
|
-
|
6
|
-
.hljs {
|
7
|
-
display: block;
|
8
|
-
overflow-x: auto;
|
9
|
-
padding: 0.5em;
|
10
|
-
background: #282b2e;
|
11
|
-
}
|
12
|
-
|
13
|
-
.hljs-keyword,
|
14
|
-
.hljs-selector-tag,
|
15
|
-
.hljs-literal,
|
16
|
-
.hljs-selector-id {
|
17
|
-
color: #93c763;
|
18
|
-
}
|
19
|
-
|
20
|
-
.hljs-number {
|
21
|
-
color: #ffcd22;
|
22
|
-
}
|
23
|
-
|
24
|
-
.hljs {
|
25
|
-
color: #e0e2e4;
|
26
|
-
}
|
27
|
-
|
28
|
-
.hljs-attribute {
|
29
|
-
color: #668bb0;
|
30
|
-
}
|
31
|
-
|
32
|
-
.hljs-code,
|
33
|
-
.hljs-class .hljs-title,
|
34
|
-
.hljs-section {
|
35
|
-
color: white;
|
36
|
-
}
|
37
|
-
|
38
|
-
.hljs-regexp,
|
39
|
-
.hljs-link {
|
40
|
-
color: #d39745;
|
41
|
-
}
|
42
|
-
|
43
|
-
.hljs-meta {
|
44
|
-
color: #557182;
|
45
|
-
}
|
46
|
-
|
47
|
-
.hljs-tag,
|
48
|
-
.hljs-name,
|
49
|
-
.hljs-bullet,
|
50
|
-
.hljs-subst,
|
51
|
-
.hljs-emphasis,
|
52
|
-
.hljs-type,
|
53
|
-
.hljs-built_in,
|
54
|
-
.hljs-selector-attr,
|
55
|
-
.hljs-selector-pseudo,
|
56
|
-
.hljs-addition,
|
57
|
-
.hljs-variable,
|
58
|
-
.hljs-template-tag,
|
59
|
-
.hljs-template-variable {
|
60
|
-
color: #8cbbad;
|
61
|
-
}
|
62
|
-
|
63
|
-
.hljs-string,
|
64
|
-
.hljs-symbol {
|
65
|
-
color: #ec7600;
|
66
|
-
}
|
67
|
-
|
68
|
-
.hljs-comment,
|
69
|
-
.hljs-quote,
|
70
|
-
.hljs-deletion {
|
71
|
-
color: #818e96;
|
72
|
-
}
|
73
|
-
|
74
|
-
.hljs-selector-class {
|
75
|
-
color: #A082BD
|
76
|
-
}
|
77
|
-
|
78
|
-
.hljs-keyword,
|
79
|
-
.hljs-selector-tag,
|
80
|
-
.hljs-literal,
|
81
|
-
.hljs-doctag,
|
82
|
-
.hljs-title,
|
83
|
-
.hljs-section,
|
84
|
-
.hljs-type,
|
85
|
-
.hljs-name,
|
86
|
-
.hljs-strong {
|
87
|
-
font-weight: bold;
|
88
|
-
}
|
@@ -1,96 +0,0 @@
|
|
1
|
-
/*
|
2
|
-
|
3
|
-
PureBASIC native IDE style ( version 1.0 - April 2016 )
|
4
|
-
|
5
|
-
by Tristano Ajmone <tajmone@gmail.com>
|
6
|
-
|
7
|
-
Public Domain
|
8
|
-
|
9
|
-
NOTE_1: PureBASIC code syntax highlighting only applies the following classes:
|
10
|
-
.hljs-comment
|
11
|
-
.hljs-function
|
12
|
-
.hljs-keywords
|
13
|
-
.hljs-string
|
14
|
-
.hljs-symbol
|
15
|
-
|
16
|
-
Other classes are added here for the benefit of styling other languages with the look and feel of PureBASIC native IDE style.
|
17
|
-
If you need to customize a stylesheet for PureBASIC only, remove all non-relevant classes -- PureBASIC-related classes are followed by
|
18
|
-
a "--- used for PureBASIC ... ---" comment on same line.
|
19
|
-
|
20
|
-
NOTE_2: Color names provided in comments were derived using "Name that Color" online tool:
|
21
|
-
http://chir.ag/projects/name-that-color
|
22
|
-
*/
|
23
|
-
|
24
|
-
.hljs { /* Common set of rules required by highlight.js (don'r remove!) */
|
25
|
-
display: block;
|
26
|
-
overflow-x: auto;
|
27
|
-
padding: 0.5em;
|
28
|
-
background: #FFFFDF; /* Half and Half (approx.) */
|
29
|
-
/* --- Uncomment to add PureBASIC native IDE styled font!
|
30
|
-
font-family: Consolas;
|
31
|
-
*/
|
32
|
-
}
|
33
|
-
|
34
|
-
.hljs, /* --- used for PureBASIC base color --- */
|
35
|
-
.hljs-type, /* --- used for PureBASIC Procedures return type --- */
|
36
|
-
.hljs-function, /* --- used for wrapping PureBASIC Procedures definitions --- */
|
37
|
-
.hljs-name,
|
38
|
-
.hljs-number,
|
39
|
-
.hljs-attr,
|
40
|
-
.hljs-params,
|
41
|
-
.hljs-subst {
|
42
|
-
color: #000000; /* Black */
|
43
|
-
}
|
44
|
-
|
45
|
-
.hljs-comment, /* --- used for PureBASIC Comments --- */
|
46
|
-
.hljs-regexp,
|
47
|
-
.hljs-section,
|
48
|
-
.hljs-selector-pseudo,
|
49
|
-
.hljs-addition {
|
50
|
-
color: #00AAAA; /* Persian Green (approx.) */
|
51
|
-
}
|
52
|
-
|
53
|
-
.hljs-title, /* --- used for PureBASIC Procedures Names --- */
|
54
|
-
.hljs-tag,
|
55
|
-
.hljs-variable,
|
56
|
-
.hljs-code {
|
57
|
-
color: #006666; /* Blue Stone (approx.) */
|
58
|
-
}
|
59
|
-
|
60
|
-
.hljs-keyword, /* --- used for PureBASIC Keywords --- */
|
61
|
-
.hljs-class,
|
62
|
-
.hljs-meta-keyword,
|
63
|
-
.hljs-selector-class,
|
64
|
-
.hljs-built_in,
|
65
|
-
.hljs-builtin-name {
|
66
|
-
color: #006666; /* Blue Stone (approx.) */
|
67
|
-
font-weight: bold;
|
68
|
-
}
|
69
|
-
|
70
|
-
.hljs-string, /* --- used for PureBASIC Strings --- */
|
71
|
-
.hljs-selector-attr {
|
72
|
-
color: #0080FF; /* Azure Radiance (approx.) */
|
73
|
-
}
|
74
|
-
|
75
|
-
.hljs-symbol, /* --- used for PureBASIC Constants --- */
|
76
|
-
.hljs-link,
|
77
|
-
.hljs-deletion,
|
78
|
-
.hljs-attribute {
|
79
|
-
color: #924B72; /* Cannon Pink (approx.) */
|
80
|
-
}
|
81
|
-
|
82
|
-
.hljs-meta,
|
83
|
-
.hljs-literal,
|
84
|
-
.hljs-selector-id {
|
85
|
-
color: #924B72; /* Cannon Pink (approx.) */
|
86
|
-
font-weight: bold;
|
87
|
-
}
|
88
|
-
|
89
|
-
.hljs-strong,
|
90
|
-
.hljs-name {
|
91
|
-
font-weight: bold;
|
92
|
-
}
|
93
|
-
|
94
|
-
.hljs-emphasis {
|
95
|
-
font-style: italic;
|
96
|
-
}
|
@@ -1,83 +0,0 @@
|
|
1
|
-
/*
|
2
|
-
|
3
|
-
Qt Creator dark color scheme
|
4
|
-
|
5
|
-
*/
|
6
|
-
|
7
|
-
|
8
|
-
.hljs {
|
9
|
-
display: block;
|
10
|
-
overflow-x: auto;
|
11
|
-
padding: 0.5em;
|
12
|
-
background: #000000;
|
13
|
-
}
|
14
|
-
|
15
|
-
.hljs,
|
16
|
-
.hljs-subst,
|
17
|
-
.hljs-tag,
|
18
|
-
.hljs-title {
|
19
|
-
color: #aaaaaa;
|
20
|
-
}
|
21
|
-
|
22
|
-
.hljs-strong,
|
23
|
-
.hljs-emphasis {
|
24
|
-
color: #a8a8a2;
|
25
|
-
}
|
26
|
-
|
27
|
-
.hljs-bullet,
|
28
|
-
.hljs-quote,
|
29
|
-
.hljs-number,
|
30
|
-
.hljs-regexp,
|
31
|
-
.hljs-literal {
|
32
|
-
color: #ff55ff;
|
33
|
-
}
|
34
|
-
|
35
|
-
.hljs-code
|
36
|
-
.hljs-selector-class {
|
37
|
-
color: #aaaaff;
|
38
|
-
}
|
39
|
-
|
40
|
-
.hljs-emphasis,
|
41
|
-
.hljs-stronge,
|
42
|
-
.hljs-type {
|
43
|
-
font-style: italic;
|
44
|
-
}
|
45
|
-
|
46
|
-
.hljs-keyword,
|
47
|
-
.hljs-selector-tag,
|
48
|
-
.hljs-function,
|
49
|
-
.hljs-section,
|
50
|
-
.hljs-symbol,
|
51
|
-
.hljs-name {
|
52
|
-
color: #ffff55;
|
53
|
-
}
|
54
|
-
|
55
|
-
.hljs-attribute {
|
56
|
-
color: #ff5555;
|
57
|
-
}
|
58
|
-
|
59
|
-
.hljs-variable,
|
60
|
-
.hljs-params,
|
61
|
-
.hljs-class .hljs-title {
|
62
|
-
color: #8888ff;
|
63
|
-
}
|
64
|
-
|
65
|
-
.hljs-string,
|
66
|
-
.hljs-selector-id,
|
67
|
-
.hljs-selector-attr,
|
68
|
-
.hljs-selector-pseudo,
|
69
|
-
.hljs-type,
|
70
|
-
.hljs-built_in,
|
71
|
-
.hljs-builtin-name,
|
72
|
-
.hljs-template-tag,
|
73
|
-
.hljs-template-variable,
|
74
|
-
.hljs-addition,
|
75
|
-
.hljs-link {
|
76
|
-
color: #ff55ff;
|
77
|
-
}
|
78
|
-
|
79
|
-
.hljs-comment,
|
80
|
-
.hljs-meta,
|
81
|
-
.hljs-deletion {
|
82
|
-
color: #55ffff;
|
83
|
-
}
|