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.
Files changed (58) hide show
  1. checksums.yaml +4 -4
  2. data/lib/cabbage_doc.rb +7 -1
  3. data/lib/cabbage_doc/configuration.rb +5 -2
  4. data/lib/cabbage_doc/controller.rb +22 -11
  5. data/lib/cabbage_doc/highlighter.rb +23 -0
  6. data/lib/cabbage_doc/markdown.rb +28 -0
  7. data/lib/cabbage_doc/parser.rb +7 -3
  8. data/lib/cabbage_doc/response.rb +16 -8
  9. data/lib/cabbage_doc/task.rb +4 -3
  10. data/lib/cabbage_doc/version.rb +1 -1
  11. data/lib/cabbage_doc/web.rb +3 -2
  12. data/lib/cabbage_doc/web_helper.rb +11 -9
  13. data/web/public/css/highlight/github.css +185 -75
  14. data/web/public/css/highlight/molokai.css +208 -0
  15. data/web/public/css/highlight/monokai.css +202 -62
  16. data/web/public/css/highlight/thankful_eyes.css +173 -0
  17. data/web/public/css/{application.css → styles.css} +54 -3
  18. data/web/public/js/application.js +0 -9
  19. data/web/views/example.haml +1 -3
  20. data/web/views/layout.haml +3 -4
  21. data/web/views/page_layout.haml +4 -2
  22. data/web/views/response.haml +5 -10
  23. metadata +34 -51
  24. data/web/public/css/base.css +0 -23
  25. data/web/public/css/highlight/agate.css +0 -108
  26. data/web/public/css/highlight/androidstudio.css +0 -66
  27. data/web/public/css/highlight/arduino-light.css +0 -88
  28. data/web/public/css/highlight/arta.css +0 -73
  29. data/web/public/css/highlight/ascetic.css +0 -45
  30. data/web/public/css/highlight/codepen-embed.css +0 -60
  31. data/web/public/css/highlight/darkula.css +0 -74
  32. data/web/public/css/highlight/default.css +0 -99
  33. data/web/public/css/highlight/docco.css +0 -97
  34. data/web/public/css/highlight/dracula.css +0 -76
  35. data/web/public/css/highlight/foundation.css +0 -88
  36. data/web/public/css/highlight/github-gist.css +0 -71
  37. data/web/public/css/highlight/googlecode.css +0 -89
  38. data/web/public/css/highlight/grayscale.css +0 -101
  39. data/web/public/css/highlight/hybrid.css +0 -102
  40. data/web/public/css/highlight/idea.css +0 -97
  41. data/web/public/css/highlight/ir-black.css +0 -73
  42. data/web/public/css/highlight/magula.css +0 -70
  43. data/web/public/css/highlight/mono-blue.css +0 -59
  44. data/web/public/css/highlight/monokai-sublime.css +0 -83
  45. data/web/public/css/highlight/obsidian.css +0 -88
  46. data/web/public/css/highlight/purebasic.css +0 -96
  47. data/web/public/css/highlight/qtcreator_dark.css +0 -83
  48. data/web/public/css/highlight/qtcreator_light.css +0 -83
  49. data/web/public/css/highlight/railscasts.css +0 -106
  50. data/web/public/css/highlight/rainbow.css +0 -85
  51. data/web/public/css/highlight/school-book.css +0 -72
  52. data/web/public/css/highlight/solarized-dark.css +0 -84
  53. data/web/public/css/highlight/solarized-light.css +0 -84
  54. data/web/public/css/highlight/sunburst.css +0 -102
  55. data/web/public/css/highlight/vs.css +0 -68
  56. data/web/public/css/highlight/xcode.css +0 -93
  57. data/web/public/css/highlight/zenburn.css +0 -80
  58. data/web/public/js/highlight.min.js +0 -3
@@ -1,89 +0,0 @@
1
- /*
2
-
3
- Google Code style (c) Aahan Krish <geekpanth3r@gmail.com>
4
-
5
- */
6
-
7
- .hljs {
8
- display: block;
9
- overflow-x: auto;
10
- padding: 0.5em;
11
- background: white;
12
- color: black;
13
- }
14
-
15
- .hljs-comment,
16
- .hljs-quote {
17
- color: #800;
18
- }
19
-
20
- .hljs-keyword,
21
- .hljs-selector-tag,
22
- .hljs-section,
23
- .hljs-title,
24
- .hljs-name {
25
- color: #008;
26
- }
27
-
28
- .hljs-variable,
29
- .hljs-template-variable {
30
- color: #660;
31
- }
32
-
33
- .hljs-string,
34
- .hljs-selector-attr,
35
- .hljs-selector-pseudo,
36
- .hljs-regexp {
37
- color: #080;
38
- }
39
-
40
- .hljs-literal,
41
- .hljs-symbol,
42
- .hljs-bullet,
43
- .hljs-meta,
44
- .hljs-number,
45
- .hljs-link {
46
- color: #066;
47
- }
48
-
49
- .hljs-title,
50
- .hljs-doctag,
51
- .hljs-type,
52
- .hljs-attr,
53
- .hljs-built_in,
54
- .hljs-builtin-name,
55
- .hljs-params {
56
- color: #606;
57
- }
58
-
59
- .hljs-attribute,
60
- .hljs-subst {
61
- color: #000;
62
- }
63
-
64
- .hljs-formula {
65
- background-color: #eee;
66
- font-style: italic;
67
- }
68
-
69
- .hljs-selector-id,
70
- .hljs-selector-class {
71
- color: #9B703F
72
- }
73
-
74
- .hljs-addition {
75
- background-color: #baeeba;
76
- }
77
-
78
- .hljs-deletion {
79
- background-color: #ffc8bd;
80
- }
81
-
82
- .hljs-doctag,
83
- .hljs-strong {
84
- font-weight: bold;
85
- }
86
-
87
- .hljs-emphasis {
88
- font-style: italic;
89
- }
@@ -1,101 +0,0 @@
1
- /*
2
-
3
- grayscale style (c) MY Sun <simonmysun@gmail.com>
4
-
5
- */
6
-
7
- .hljs {
8
- display: block;
9
- overflow-x: auto;
10
- padding: 0.5em;
11
- color: #333;
12
- background: #fff;
13
- }
14
-
15
- .hljs-comment,
16
- .hljs-quote {
17
- color: #777;
18
- font-style: italic;
19
- }
20
-
21
- .hljs-keyword,
22
- .hljs-selector-tag,
23
- .hljs-subst {
24
- color: #333;
25
- font-weight: bold;
26
- }
27
-
28
- .hljs-number,
29
- .hljs-literal {
30
- color: #777;
31
- }
32
-
33
- .hljs-string,
34
- .hljs-doctag,
35
- .hljs-formula {
36
- color: #333;
37
- background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAQAAAAECAYAAACp8Z5+AAAAJ0lEQVQIW2O8e/fufwYGBgZBQUEQxcCIIfDu3Tuwivfv30NUoAsAALHpFMMLqZlPAAAAAElFTkSuQmCC) repeat;
38
- }
39
-
40
- .hljs-title,
41
- .hljs-section,
42
- .hljs-selector-id {
43
- color: #000;
44
- font-weight: bold;
45
- }
46
-
47
- .hljs-subst {
48
- font-weight: normal;
49
- }
50
-
51
- .hljs-class .hljs-title,
52
- .hljs-type,
53
- .hljs-name {
54
- color: #333;
55
- font-weight: bold;
56
- }
57
-
58
- .hljs-tag {
59
- color: #333;
60
- }
61
-
62
- .hljs-regexp {
63
- color: #333;
64
- background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAoAAAAICAYAAADA+m62AAAAPUlEQVQYV2NkQAN37979r6yszIgujiIAU4RNMVwhuiQ6H6wQl3XI4oy4FMHcCJPHcDS6J2A2EqUQpJhohQDexSef15DBCwAAAABJRU5ErkJggg==) repeat;
65
- }
66
-
67
- .hljs-symbol,
68
- .hljs-bullet,
69
- .hljs-link {
70
- color: #000;
71
- background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAAKElEQVQIW2NkQAO7d+/+z4gsBhJwdXVlhAvCBECKwIIwAbhKZBUwBQA6hBpm5efZsgAAAABJRU5ErkJggg==) repeat;
72
- }
73
-
74
- .hljs-built_in,
75
- .hljs-builtin-name {
76
- color: #000;
77
- text-decoration: underline;
78
- }
79
-
80
- .hljs-meta {
81
- color: #999;
82
- font-weight: bold;
83
- }
84
-
85
- .hljs-deletion {
86
- color: #fff;
87
- background:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAADCAYAAABS3WWCAAAAE0lEQVQIW2MMDQ39zzhz5kwIAQAyxweWgUHd1AAAAABJRU5ErkJggg==) repeat;
88
- }
89
-
90
- .hljs-addition {
91
- color: #000;
92
- background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAkAAAAJCAYAAADgkQYQAAAALUlEQVQYV2N89+7dfwYk8P79ewZBQUFkIQZGOiu6e/cuiptQHAPl0NtNxAQBAM97Oejj3Dg7AAAAAElFTkSuQmCC) repeat;
93
- }
94
-
95
- .hljs-emphasis {
96
- font-style: italic;
97
- }
98
-
99
- .hljs-strong {
100
- font-weight: bold;
101
- }
@@ -1,102 +0,0 @@
1
- /*
2
-
3
- vim-hybrid theme by w0ng (https://github.com/w0ng/vim-hybrid)
4
-
5
- */
6
-
7
- /*background color*/
8
- .hljs {
9
- display: block;
10
- overflow-x: auto;
11
- padding: 0.5em;
12
- background: #1d1f21;
13
- }
14
-
15
- /*selection color*/
16
- .hljs::selection,
17
- .hljs span::selection {
18
- background: #373b41;
19
- }
20
-
21
- .hljs::-moz-selection,
22
- .hljs span::-moz-selection {
23
- background: #373b41;
24
- }
25
-
26
- /*foreground color*/
27
- .hljs {
28
- color: #c5c8c6;
29
- }
30
-
31
- /*color: fg_yellow*/
32
- .hljs-title,
33
- .hljs-name {
34
- color: #f0c674;
35
- }
36
-
37
- /*color: fg_comment*/
38
- .hljs-comment,
39
- .hljs-meta,
40
- .hljs-meta .hljs-keyword {
41
- color: #707880;
42
- }
43
-
44
- /*color: fg_red*/
45
- .hljs-number,
46
- .hljs-symbol,
47
- .hljs-literal,
48
- .hljs-deletion,
49
- .hljs-link {
50
- color: #cc6666
51
- }
52
-
53
- /*color: fg_green*/
54
- .hljs-string,
55
- .hljs-doctag,
56
- .hljs-addition,
57
- .hljs-regexp,
58
- .hljs-selector-attr,
59
- .hljs-selector-pseudo {
60
- color: #b5bd68;
61
- }
62
-
63
- /*color: fg_purple*/
64
- .hljs-attribute,
65
- .hljs-code,
66
- .hljs-selector-id {
67
- color: #b294bb;
68
- }
69
-
70
- /*color: fg_blue*/
71
- .hljs-keyword,
72
- .hljs-selector-tag,
73
- .hljs-bullet,
74
- .hljs-tag {
75
- color: #81a2be;
76
- }
77
-
78
- /*color: fg_aqua*/
79
- .hljs-subst,
80
- .hljs-variable,
81
- .hljs-template-tag,
82
- .hljs-template-variable {
83
- color: #8abeb7;
84
- }
85
-
86
- /*color: fg_orange*/
87
- .hljs-type,
88
- .hljs-built_in,
89
- .hljs-builtin-name,
90
- .hljs-quote,
91
- .hljs-section,
92
- .hljs-selector-class {
93
- color: #de935f;
94
- }
95
-
96
- .hljs-emphasis {
97
- font-style: italic;
98
- }
99
-
100
- .hljs-strong {
101
- font-weight: bold;
102
- }
@@ -1,97 +0,0 @@
1
- /*
2
-
3
- Intellij Idea-like styling (c) Vasily Polovnyov <vast@whiteants.net>
4
-
5
- */
6
-
7
- .hljs {
8
- display: block;
9
- overflow-x: auto;
10
- padding: 0.5em;
11
- color: #000;
12
- background: #fff;
13
- }
14
-
15
- .hljs-subst,
16
- .hljs-title {
17
- font-weight: normal;
18
- color: #000;
19
- }
20
-
21
- .hljs-comment,
22
- .hljs-quote {
23
- color: #808080;
24
- font-style: italic;
25
- }
26
-
27
- .hljs-meta {
28
- color: #808000;
29
- }
30
-
31
- .hljs-tag {
32
- background: #efefef;
33
- }
34
-
35
- .hljs-section,
36
- .hljs-name,
37
- .hljs-literal,
38
- .hljs-keyword,
39
- .hljs-selector-tag,
40
- .hljs-type,
41
- .hljs-selector-id,
42
- .hljs-selector-class {
43
- font-weight: bold;
44
- color: #000080;
45
- }
46
-
47
- .hljs-attribute,
48
- .hljs-number,
49
- .hljs-regexp,
50
- .hljs-link {
51
- font-weight: bold;
52
- color: #0000ff;
53
- }
54
-
55
- .hljs-number,
56
- .hljs-regexp,
57
- .hljs-link {
58
- font-weight: normal;
59
- }
60
-
61
- .hljs-string {
62
- color: #008000;
63
- font-weight: bold;
64
- }
65
-
66
- .hljs-symbol,
67
- .hljs-bullet,
68
- .hljs-formula {
69
- color: #000;
70
- background: #d0eded;
71
- font-style: italic;
72
- }
73
-
74
- .hljs-doctag {
75
- text-decoration: underline;
76
- }
77
-
78
- .hljs-variable,
79
- .hljs-template-variable {
80
- color: #660e7a;
81
- }
82
-
83
- .hljs-addition {
84
- background: #baeeba;
85
- }
86
-
87
- .hljs-deletion {
88
- background: #ffc8bd;
89
- }
90
-
91
- .hljs-emphasis {
92
- font-style: italic;
93
- }
94
-
95
- .hljs-strong {
96
- font-weight: bold;
97
- }
@@ -1,73 +0,0 @@
1
- /*
2
- IR_Black style (c) Vasily Mikhailitchenko <vaskas@programica.ru>
3
- */
4
-
5
- .hljs {
6
- display: block;
7
- overflow-x: auto;
8
- padding: 0.5em;
9
- background: #000;
10
- color: #f8f8f8;
11
- }
12
-
13
- .hljs-comment,
14
- .hljs-quote,
15
- .hljs-meta {
16
- color: #7c7c7c;
17
- }
18
-
19
- .hljs-keyword,
20
- .hljs-selector-tag,
21
- .hljs-tag,
22
- .hljs-name {
23
- color: #96cbfe;
24
- }
25
-
26
- .hljs-attribute,
27
- .hljs-selector-id {
28
- color: #ffffb6;
29
- }
30
-
31
- .hljs-string,
32
- .hljs-selector-attr,
33
- .hljs-selector-pseudo,
34
- .hljs-addition {
35
- color: #a8ff60;
36
- }
37
-
38
- .hljs-subst {
39
- color: #daefa3;
40
- }
41
-
42
- .hljs-regexp,
43
- .hljs-link {
44
- color: #e9c062;
45
- }
46
-
47
- .hljs-title,
48
- .hljs-section,
49
- .hljs-type,
50
- .hljs-doctag {
51
- color: #ffffb6;
52
- }
53
-
54
- .hljs-symbol,
55
- .hljs-bullet,
56
- .hljs-variable,
57
- .hljs-template-variable,
58
- .hljs-literal {
59
- color: #c6c5fe;
60
- }
61
-
62
- .hljs-number,
63
- .hljs-deletion {
64
- color:#ff73fd;
65
- }
66
-
67
- .hljs-emphasis {
68
- font-style: italic;
69
- }
70
-
71
- .hljs-strong {
72
- font-weight: bold;
73
- }