cabbage_doc 0.1.2 → 0.1.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 (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
@@ -0,0 +1,208 @@
1
+ .highlight table td { padding: 5px; }
2
+ .highlight table pre { margin: 0; }
3
+ .highlight .c, .highlight .cd {
4
+ color: #5e5d83;
5
+ font-style: italic;
6
+ }
7
+ .highlight .cm {
8
+ color: #5e5d83;
9
+ font-style: italic;
10
+ }
11
+ .highlight .c1 {
12
+ color: #5e5d83;
13
+ font-style: italic;
14
+ }
15
+ .highlight .cp {
16
+ color: #465457;
17
+ font-weight: bold;
18
+ }
19
+ .highlight .cs {
20
+ color: #465457;
21
+ font-weight: bold;
22
+ font-style: italic;
23
+ }
24
+ .highlight .err {
25
+ color: #f8f8f2;
26
+ background-color: #403d3d;
27
+ }
28
+ .highlight .gi {
29
+ color: #a6e22e;
30
+ }
31
+ .highlight .gd {
32
+ color: #f92672;
33
+ }
34
+ .highlight .ge {
35
+ color: #1b1d1e;
36
+ font-style: italic;
37
+ }
38
+ .highlight .gr {
39
+ color: #f92672;
40
+ }
41
+ .highlight .gt {
42
+ color: #f92672;
43
+ }
44
+ .highlight .gh {
45
+ color: #403d3d;
46
+ }
47
+ .highlight .go {
48
+ color: #403d3d;
49
+ }
50
+ .highlight .gp {
51
+ color: #66d9ef;
52
+ }
53
+ .highlight .gs {
54
+ font-weight: bold;
55
+ }
56
+ .highlight .gu {
57
+ color: #465457;
58
+ }
59
+ .highlight .k, .highlight .kv {
60
+ color: #66d9ef;
61
+ font-weight: bold;
62
+ }
63
+ .highlight .kc {
64
+ color: #66d9ef;
65
+ font-weight: bold;
66
+ }
67
+ .highlight .kd {
68
+ color: #66d9ef;
69
+ font-weight: bold;
70
+ }
71
+ .highlight .kp {
72
+ color: #66d9ef;
73
+ font-weight: bold;
74
+ }
75
+ .highlight .kr {
76
+ color: #66d9ef;
77
+ font-weight: bold;
78
+ }
79
+ .highlight .kt {
80
+ color: #66d9ef;
81
+ font-weight: bold;
82
+ }
83
+ .highlight .kn {
84
+ color: #f92672;
85
+ font-weight: bold;
86
+ }
87
+ .highlight .ow {
88
+ color: #f92672;
89
+ font-weight: bold;
90
+ }
91
+ .highlight .o {
92
+ color: #f92672;
93
+ font-weight: bold;
94
+ }
95
+ .highlight .mf {
96
+ color: #af87ff;
97
+ }
98
+ .highlight .mh {
99
+ color: #af87ff;
100
+ }
101
+ .highlight .il {
102
+ color: #af87ff;
103
+ }
104
+ .highlight .mi {
105
+ color: #af87ff;
106
+ }
107
+ .highlight .mo {
108
+ color: #af87ff;
109
+ }
110
+ .highlight .m, .highlight .mb, .highlight .mx {
111
+ color: #af87ff;
112
+ }
113
+ .highlight .se {
114
+ color: #af87ff;
115
+ }
116
+ .highlight .sb {
117
+ color: #d7d787;
118
+ }
119
+ .highlight .sc {
120
+ color: #d7d787;
121
+ }
122
+ .highlight .sd {
123
+ color: #d7d787;
124
+ }
125
+ .highlight .s2 {
126
+ color: #d7d787;
127
+ }
128
+ .highlight .sh {
129
+ color: #d7d787;
130
+ }
131
+ .highlight .si {
132
+ color: #d7d787;
133
+ }
134
+ .highlight .sx {
135
+ color: #d7d787;
136
+ }
137
+ .highlight .sr {
138
+ color: #d7d787;
139
+ }
140
+ .highlight .s1 {
141
+ color: #d7d787;
142
+ }
143
+ .highlight .ss {
144
+ color: #d7d787;
145
+ }
146
+ .highlight .s {
147
+ color: #d7d787;
148
+ }
149
+ .highlight .na {
150
+ color: #a6e22e;
151
+ }
152
+ .highlight .nc {
153
+ color: #a6e22e;
154
+ font-weight: bold;
155
+ }
156
+ .highlight .nd {
157
+ color: #a6e22e;
158
+ font-weight: bold;
159
+ }
160
+ .highlight .ne {
161
+ color: #a6e22e;
162
+ font-weight: bold;
163
+ }
164
+ .highlight .nf {
165
+ color: #a6e22e;
166
+ font-weight: bold;
167
+ }
168
+ .highlight .no {
169
+ color: #66d9ef;
170
+ }
171
+ .highlight .bp {
172
+ color: #f8f8f2;
173
+ }
174
+ .highlight .nb {
175
+ color: #f8f8f2;
176
+ }
177
+ .highlight .ni {
178
+ color: #f8f8f2;
179
+ }
180
+ .highlight .nn {
181
+ color: #f8f8f2;
182
+ }
183
+ .highlight .vc {
184
+ color: #f8f8f2;
185
+ }
186
+ .highlight .vg {
187
+ color: #f8f8f2;
188
+ }
189
+ .highlight .vi {
190
+ color: #f8f8f2;
191
+ }
192
+ .highlight .nv {
193
+ color: #f8f8f2;
194
+ }
195
+ .highlight .w {
196
+ color: #f8f8f2;
197
+ }
198
+ .highlight .nl {
199
+ color: #f8f8f2;
200
+ font-weight: bold;
201
+ }
202
+ .highlight .nt {
203
+ color: #f92672;
204
+ }
205
+ .highlight {
206
+ color: #f8f8f2;
207
+ background-color: #1b1d1e;
208
+ }
@@ -1,70 +1,210 @@
1
- /*
2
- Monokai style - ported by Luigi Maselli - http://grigio.org
3
- */
4
-
5
- .hljs {
6
- display: block;
7
- overflow-x: auto;
8
- padding: 0.5em;
9
- background: #272822; color: #ddd;
10
- }
11
-
12
- .hljs-tag,
13
- .hljs-keyword,
14
- .hljs-selector-tag,
15
- .hljs-literal,
16
- .hljs-strong,
17
- .hljs-name {
18
- color: #f92672;
1
+ .highlight table td { padding: 5px; }
2
+ .highlight table pre { margin: 0; }
3
+ .highlight .c, .highlight .cd {
4
+ color: #75715e;
5
+ font-style: italic;
6
+ }
7
+ .highlight .cm {
8
+ color: #75715e;
9
+ font-style: italic;
10
+ }
11
+ .highlight .c1 {
12
+ color: #75715e;
13
+ font-style: italic;
14
+ }
15
+ .highlight .cp {
16
+ color: #75715e;
17
+ font-weight: bold;
18
+ }
19
+ .highlight .cs {
20
+ color: #75715e;
21
+ font-weight: bold;
22
+ font-style: italic;
23
+ }
24
+ .highlight .err {
25
+ color: #960050;
26
+ background-color: #1e0010;
27
+ }
28
+ .highlight .gi {
29
+ color: #ffffff;
30
+ background-color: #324932;
31
+ }
32
+ .highlight .gd {
33
+ color: #ffffff;
34
+ background-color: #493131;
35
+ }
36
+ .highlight .ge {
37
+ color: #000000;
38
+ font-style: italic;
39
+ }
40
+ .highlight .gr {
41
+ color: #aa0000;
42
+ }
43
+ .highlight .gt {
44
+ color: #aa0000;
45
+ }
46
+ .highlight .gh {
47
+ color: #999999;
48
+ }
49
+ .highlight .go {
50
+ color: #888888;
51
+ }
52
+ .highlight .gp {
53
+ color: #555555;
54
+ }
55
+ .highlight .gs {
56
+ font-weight: bold;
57
+ }
58
+ .highlight .gu {
59
+ color: #aaaaaa;
19
60
  }
20
-
21
- .hljs-code {
61
+ .highlight .k, .highlight .kv {
22
62
  color: #66d9ef;
63
+ font-weight: bold;
64
+ }
65
+ .highlight .kc {
66
+ color: #66d9ef;
67
+ font-weight: bold;
68
+ }
69
+ .highlight .kd {
70
+ color: #66d9ef;
71
+ font-weight: bold;
72
+ }
73
+ .highlight .kp {
74
+ color: #66d9ef;
75
+ font-weight: bold;
23
76
  }
24
-
25
- .hljs-class .hljs-title {
26
- color: white;
27
- }
28
-
29
- .hljs-attribute,
30
- .hljs-symbol,
31
- .hljs-regexp,
32
- .hljs-link {
33
- color: #bf79db;
34
- }
35
-
36
- .hljs-string,
37
- .hljs-bullet,
38
- .hljs-subst,
39
- .hljs-title,
40
- .hljs-section,
41
- .hljs-emphasis,
42
- .hljs-type,
43
- .hljs-built_in,
44
- .hljs-builtin-name,
45
- .hljs-selector-attr,
46
- .hljs-selector-pseudo,
47
- .hljs-addition,
48
- .hljs-variable,
49
- .hljs-template-tag,
50
- .hljs-template-variable {
77
+ .highlight .kr {
78
+ color: #66d9ef;
79
+ font-weight: bold;
80
+ }
81
+ .highlight .kt {
82
+ color: #66d9ef;
83
+ font-weight: bold;
84
+ }
85
+ .highlight .kn {
86
+ color: #f92672;
87
+ font-weight: bold;
88
+ }
89
+ .highlight .ow {
90
+ color: #f92672;
91
+ font-weight: bold;
92
+ }
93
+ .highlight .o {
94
+ color: #f92672;
95
+ font-weight: bold;
96
+ }
97
+ .highlight .mf {
98
+ color: #ae81ff;
99
+ }
100
+ .highlight .mh {
101
+ color: #ae81ff;
102
+ }
103
+ .highlight .il {
104
+ color: #ae81ff;
105
+ }
106
+ .highlight .mi {
107
+ color: #ae81ff;
108
+ }
109
+ .highlight .mo {
110
+ color: #ae81ff;
111
+ }
112
+ .highlight .m, .highlight .mb, .highlight .mx {
113
+ color: #ae81ff;
114
+ }
115
+ .highlight .se {
116
+ color: #ae81ff;
117
+ }
118
+ .highlight .sb {
119
+ color: #e6db74;
120
+ }
121
+ .highlight .sc {
122
+ color: #e6db74;
123
+ }
124
+ .highlight .sd {
125
+ color: #e6db74;
126
+ }
127
+ .highlight .s2 {
128
+ color: #e6db74;
129
+ }
130
+ .highlight .sh {
131
+ color: #e6db74;
132
+ }
133
+ .highlight .si {
134
+ color: #e6db74;
135
+ }
136
+ .highlight .sx {
137
+ color: #e6db74;
138
+ }
139
+ .highlight .sr {
140
+ color: #e6db74;
141
+ }
142
+ .highlight .s1 {
143
+ color: #e6db74;
144
+ }
145
+ .highlight .ss {
146
+ color: #e6db74;
147
+ }
148
+ .highlight .s {
149
+ color: #e6db74;
150
+ }
151
+ .highlight .na {
51
152
  color: #a6e22e;
52
153
  }
53
-
54
- .hljs-comment,
55
- .hljs-quote,
56
- .hljs-deletion,
57
- .hljs-meta {
58
- color: #75715e;
154
+ .highlight .nc {
155
+ color: #a6e22e;
156
+ font-weight: bold;
59
157
  }
60
-
61
- .hljs-keyword,
62
- .hljs-selector-tag,
63
- .hljs-literal,
64
- .hljs-doctag,
65
- .hljs-title,
66
- .hljs-section,
67
- .hljs-type,
68
- .hljs-selector-id {
158
+ .highlight .nd {
159
+ color: #a6e22e;
160
+ font-weight: bold;
161
+ }
162
+ .highlight .ne {
163
+ color: #a6e22e;
164
+ font-weight: bold;
165
+ }
166
+ .highlight .nf {
167
+ color: #a6e22e;
69
168
  font-weight: bold;
70
169
  }
170
+ .highlight .no {
171
+ color: #66d9ef;
172
+ }
173
+ .highlight .bp {
174
+ color: #f8f8f2;
175
+ }
176
+ .highlight .nb {
177
+ color: #f8f8f2;
178
+ }
179
+ .highlight .ni {
180
+ color: #f8f8f2;
181
+ }
182
+ .highlight .nn {
183
+ color: #f8f8f2;
184
+ }
185
+ .highlight .vc {
186
+ color: #f8f8f2;
187
+ }
188
+ .highlight .vg {
189
+ color: #f8f8f2;
190
+ }
191
+ .highlight .vi {
192
+ color: #f8f8f2;
193
+ }
194
+ .highlight .nv {
195
+ color: #f8f8f2;
196
+ }
197
+ .highlight .w {
198
+ color: #f8f8f2;
199
+ }
200
+ .highlight .nl {
201
+ color: #f8f8f2;
202
+ font-weight: bold;
203
+ }
204
+ .highlight .nt {
205
+ color: #f92672;
206
+ }
207
+ .highlight {
208
+ color: #f8f8f2;
209
+ background-color: #49483e;
210
+ }