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,83 +0,0 @@
1
- /*
2
-
3
- Qt Creator light color scheme
4
-
5
- */
6
-
7
-
8
- .hljs {
9
- display: block;
10
- overflow-x: auto;
11
- padding: 0.5em;
12
- background: #ffffff;
13
- }
14
-
15
- .hljs,
16
- .hljs-subst,
17
- .hljs-tag,
18
- .hljs-title {
19
- color: #000000;
20
- }
21
-
22
- .hljs-strong,
23
- .hljs-emphasis {
24
- color: #000000;
25
- }
26
-
27
- .hljs-bullet,
28
- .hljs-quote,
29
- .hljs-number,
30
- .hljs-regexp,
31
- .hljs-literal {
32
- color: #000080;
33
- }
34
-
35
- .hljs-code
36
- .hljs-selector-class {
37
- color: #800080;
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: #808000;
53
- }
54
-
55
- .hljs-attribute {
56
- color: #800000;
57
- }
58
-
59
- .hljs-variable,
60
- .hljs-params,
61
- .hljs-class .hljs-title {
62
- color: #0055AF;
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: #008000;
77
- }
78
-
79
- .hljs-comment,
80
- .hljs-meta,
81
- .hljs-deletion {
82
- color: #008000;
83
- }
@@ -1,106 +0,0 @@
1
- /*
2
-
3
- Railscasts-like style (c) Visoft, Inc. (Damien White)
4
-
5
- */
6
-
7
- .hljs {
8
- display: block;
9
- overflow-x: auto;
10
- padding: 0.5em;
11
- background: #232323;
12
- color: #e6e1dc;
13
- }
14
-
15
- .hljs-comment,
16
- .hljs-quote {
17
- color: #bc9458;
18
- font-style: italic;
19
- }
20
-
21
- .hljs-keyword,
22
- .hljs-selector-tag {
23
- color: #c26230;
24
- }
25
-
26
- .hljs-string,
27
- .hljs-number,
28
- .hljs-regexp,
29
- .hljs-variable,
30
- .hljs-template-variable {
31
- color: #a5c261;
32
- }
33
-
34
- .hljs-subst {
35
- color: #519f50;
36
- }
37
-
38
- .hljs-tag,
39
- .hljs-name {
40
- color: #e8bf6a;
41
- }
42
-
43
- .hljs-type {
44
- color: #da4939;
45
- }
46
-
47
-
48
- .hljs-symbol,
49
- .hljs-bullet,
50
- .hljs-built_in,
51
- .hljs-builtin-name,
52
- .hljs-attr,
53
- .hljs-link {
54
- color: #6d9cbe;
55
- }
56
-
57
- .hljs-params {
58
- color: #d0d0ff;
59
- }
60
-
61
- .hljs-attribute {
62
- color: #cda869;
63
- }
64
-
65
- .hljs-meta {
66
- color: #9b859d;
67
- }
68
-
69
- .hljs-title,
70
- .hljs-section {
71
- color: #ffc66d;
72
- }
73
-
74
- .hljs-addition {
75
- background-color: #144212;
76
- color: #e6e1dc;
77
- display: inline-block;
78
- width: 100%;
79
- }
80
-
81
- .hljs-deletion {
82
- background-color: #600;
83
- color: #e6e1dc;
84
- display: inline-block;
85
- width: 100%;
86
- }
87
-
88
- .hljs-selector-class {
89
- color: #9b703f;
90
- }
91
-
92
- .hljs-selector-id {
93
- color: #8b98ab;
94
- }
95
-
96
- .hljs-emphasis {
97
- font-style: italic;
98
- }
99
-
100
- .hljs-strong {
101
- font-weight: bold;
102
- }
103
-
104
- .hljs-link {
105
- text-decoration: underline;
106
- }
@@ -1,85 +0,0 @@
1
- /*
2
-
3
- Style with support for rainbow parens
4
-
5
- */
6
-
7
- .hljs {
8
- display: block;
9
- overflow-x: auto;
10
- padding: 0.5em;
11
- background: #474949;
12
- color: #d1d9e1;
13
- }
14
-
15
-
16
- .hljs-comment,
17
- .hljs-quote {
18
- color: #969896;
19
- font-style: italic;
20
- }
21
-
22
- .hljs-keyword,
23
- .hljs-selector-tag,
24
- .hljs-literal,
25
- .hljs-type,
26
- .hljs-addition {
27
- color: #cc99cc;
28
- }
29
-
30
- .hljs-number,
31
- .hljs-selector-attr,
32
- .hljs-selector-pseudo {
33
- color: #f99157;
34
- }
35
-
36
- .hljs-string,
37
- .hljs-doctag,
38
- .hljs-regexp {
39
- color: #8abeb7;
40
- }
41
-
42
- .hljs-title,
43
- .hljs-name,
44
- .hljs-section,
45
- .hljs-built_in {
46
- color: #b5bd68;
47
- }
48
-
49
- .hljs-variable,
50
- .hljs-template-variable,
51
- .hljs-selector-id,
52
- .hljs-class .hljs-title {
53
- color: #ffcc66;
54
- }
55
-
56
- .hljs-section,
57
- .hljs-name,
58
- .hljs-strong {
59
- font-weight: bold;
60
- }
61
-
62
- .hljs-symbol,
63
- .hljs-bullet,
64
- .hljs-subst,
65
- .hljs-meta,
66
- .hljs-link {
67
- color: #f99157;
68
- }
69
-
70
- .hljs-deletion {
71
- color: #dc322f;
72
- }
73
-
74
- .hljs-formula {
75
- background: #eee8d5;
76
- }
77
-
78
- .hljs-attr,
79
- .hljs-attribute {
80
- color: #81a2be;
81
- }
82
-
83
- .hljs-emphasis {
84
- font-style: italic;
85
- }
@@ -1,72 +0,0 @@
1
- /*
2
-
3
- School Book style from goldblog.com.ua (c) Zaripov Yura <yur4ik7@ukr.net>
4
-
5
- */
6
-
7
- .hljs {
8
- display: block;
9
- overflow-x: auto;
10
- padding: 15px 0.5em 0.5em 30px;
11
- font-size: 11px;
12
- line-height:16px;
13
- }
14
-
15
- pre{
16
- background:#f6f6ae url(./school-book.png);
17
- border-top: solid 2px #d2e8b9;
18
- border-bottom: solid 1px #d2e8b9;
19
- }
20
-
21
- .hljs-keyword,
22
- .hljs-selector-tag,
23
- .hljs-literal {
24
- color:#005599;
25
- font-weight:bold;
26
- }
27
-
28
- .hljs,
29
- .hljs-subst {
30
- color: #3e5915;
31
- }
32
-
33
- .hljs-string,
34
- .hljs-title,
35
- .hljs-section,
36
- .hljs-type,
37
- .hljs-symbol,
38
- .hljs-bullet,
39
- .hljs-attribute,
40
- .hljs-built_in,
41
- .hljs-builtin-name,
42
- .hljs-addition,
43
- .hljs-variable,
44
- .hljs-template-tag,
45
- .hljs-template-variable,
46
- .hljs-link {
47
- color: #2c009f;
48
- }
49
-
50
- .hljs-comment,
51
- .hljs-quote,
52
- .hljs-deletion,
53
- .hljs-meta {
54
- color: #e60415;
55
- }
56
-
57
- .hljs-keyword,
58
- .hljs-selector-tag,
59
- .hljs-literal,
60
- .hljs-doctag,
61
- .hljs-title,
62
- .hljs-section,
63
- .hljs-type,
64
- .hljs-name,
65
- .hljs-selector-id,
66
- .hljs-strong {
67
- font-weight: bold;
68
- }
69
-
70
- .hljs-emphasis {
71
- font-style: italic;
72
- }
@@ -1,84 +0,0 @@
1
- /*
2
-
3
- Orginal Style from ethanschoonover.com/solarized (c) Jeremy Hull <sourdrums@gmail.com>
4
-
5
- */
6
-
7
- .hljs {
8
- display: block;
9
- overflow-x: auto;
10
- padding: 0.5em;
11
- background: #002b36;
12
- color: #839496;
13
- }
14
-
15
- .hljs-comment,
16
- .hljs-quote {
17
- color: #586e75;
18
- }
19
-
20
- /* Solarized Green */
21
- .hljs-keyword,
22
- .hljs-selector-tag,
23
- .hljs-addition {
24
- color: #859900;
25
- }
26
-
27
- /* Solarized Cyan */
28
- .hljs-number,
29
- .hljs-string,
30
- .hljs-meta .hljs-meta-string,
31
- .hljs-literal,
32
- .hljs-doctag,
33
- .hljs-regexp {
34
- color: #2aa198;
35
- }
36
-
37
- /* Solarized Blue */
38
- .hljs-title,
39
- .hljs-section,
40
- .hljs-name,
41
- .hljs-selector-id,
42
- .hljs-selector-class {
43
- color: #268bd2;
44
- }
45
-
46
- /* Solarized Yellow */
47
- .hljs-attribute,
48
- .hljs-attr,
49
- .hljs-variable,
50
- .hljs-template-variable,
51
- .hljs-class .hljs-title,
52
- .hljs-type {
53
- color: #b58900;
54
- }
55
-
56
- /* Solarized Orange */
57
- .hljs-symbol,
58
- .hljs-bullet,
59
- .hljs-subst,
60
- .hljs-meta,
61
- .hljs-meta .hljs-keyword,
62
- .hljs-selector-attr,
63
- .hljs-selector-pseudo,
64
- .hljs-link {
65
- color: #cb4b16;
66
- }
67
-
68
- /* Solarized Red */
69
- .hljs-built_in,
70
- .hljs-deletion {
71
- color: #dc322f;
72
- }
73
-
74
- .hljs-formula {
75
- background: #073642;
76
- }
77
-
78
- .hljs-emphasis {
79
- font-style: italic;
80
- }
81
-
82
- .hljs-strong {
83
- font-weight: bold;
84
- }
@@ -1,84 +0,0 @@
1
- /*
2
-
3
- Orginal Style from ethanschoonover.com/solarized (c) Jeremy Hull <sourdrums@gmail.com>
4
-
5
- */
6
-
7
- .hljs {
8
- display: block;
9
- overflow-x: auto;
10
- padding: 0.5em;
11
- background: #fdf6e3;
12
- color: #657b83;
13
- }
14
-
15
- .hljs-comment,
16
- .hljs-quote {
17
- color: #93a1a1;
18
- }
19
-
20
- /* Solarized Green */
21
- .hljs-keyword,
22
- .hljs-selector-tag,
23
- .hljs-addition {
24
- color: #859900;
25
- }
26
-
27
- /* Solarized Cyan */
28
- .hljs-number,
29
- .hljs-string,
30
- .hljs-meta .hljs-meta-string,
31
- .hljs-literal,
32
- .hljs-doctag,
33
- .hljs-regexp {
34
- color: #2aa198;
35
- }
36
-
37
- /* Solarized Blue */
38
- .hljs-title,
39
- .hljs-section,
40
- .hljs-name,
41
- .hljs-selector-id,
42
- .hljs-selector-class {
43
- color: #268bd2;
44
- }
45
-
46
- /* Solarized Yellow */
47
- .hljs-attribute,
48
- .hljs-attr,
49
- .hljs-variable,
50
- .hljs-template-variable,
51
- .hljs-class .hljs-title,
52
- .hljs-type {
53
- color: #b58900;
54
- }
55
-
56
- /* Solarized Orange */
57
- .hljs-symbol,
58
- .hljs-bullet,
59
- .hljs-subst,
60
- .hljs-meta,
61
- .hljs-meta .hljs-keyword,
62
- .hljs-selector-attr,
63
- .hljs-selector-pseudo,
64
- .hljs-link {
65
- color: #cb4b16;
66
- }
67
-
68
- /* Solarized Red */
69
- .hljs-built_in,
70
- .hljs-deletion {
71
- color: #dc322f;
72
- }
73
-
74
- .hljs-formula {
75
- background: #eee8d5;
76
- }
77
-
78
- .hljs-emphasis {
79
- font-style: italic;
80
- }
81
-
82
- .hljs-strong {
83
- font-weight: bold;
84
- }