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,23 +0,0 @@
1
- body
2
- {
3
- margin: 0;
4
- padding: 0;
5
- }
6
-
7
- a, a:active, a:visited, a:hover
8
- {
9
- color: #000000;
10
- text-decoration: none;
11
- font-weight: bold;
12
- }
13
-
14
- a:hover
15
- {
16
- text-decoration: underline;
17
- }
18
-
19
- .application, .page
20
- {
21
- margin: 10px auto;
22
- width: 1024px;
23
- }
@@ -1,108 +0,0 @@
1
- /*!
2
- * Agate by Taufik Nurrohman <https://github.com/tovic>
3
- * ----------------------------------------------------
4
- *
5
- * #ade5fc
6
- * #a2fca2
7
- * #c6b4f0
8
- * #d36363
9
- * #fcc28c
10
- * #fc9b9b
11
- * #ffa
12
- * #fff
13
- * #333
14
- * #62c8f3
15
- * #888
16
- *
17
- */
18
-
19
- .hljs {
20
- display: block;
21
- overflow-x: auto;
22
- padding: 0.5em;
23
- background: #333;
24
- color: white;
25
- }
26
-
27
- .hljs-name,
28
- .hljs-strong {
29
- font-weight: bold;
30
- }
31
-
32
- .hljs-code,
33
- .hljs-emphasis {
34
- font-style: italic;
35
- }
36
-
37
- .hljs-tag {
38
- color: #62c8f3;
39
- }
40
-
41
- .hljs-variable,
42
- .hljs-template-variable,
43
- .hljs-selector-id,
44
- .hljs-selector-class {
45
- color: #ade5fc;
46
- }
47
-
48
- .hljs-string,
49
- .hljs-bullet {
50
- color: #a2fca2;
51
- }
52
-
53
- .hljs-type,
54
- .hljs-title,
55
- .hljs-section,
56
- .hljs-attribute,
57
- .hljs-quote,
58
- .hljs-built_in,
59
- .hljs-builtin-name {
60
- color: #ffa;
61
- }
62
-
63
- .hljs-number,
64
- .hljs-symbol,
65
- .hljs-bullet {
66
- color: #d36363;
67
- }
68
-
69
- .hljs-keyword,
70
- .hljs-selector-tag,
71
- .hljs-literal {
72
- color: #fcc28c;
73
- }
74
-
75
- .hljs-comment,
76
- .hljs-deletion,
77
- .hljs-code {
78
- color: #888;
79
- }
80
-
81
- .hljs-regexp,
82
- .hljs-link {
83
- color: #c6b4f0;
84
- }
85
-
86
- .hljs-meta {
87
- color: #fc9b9b;
88
- }
89
-
90
- .hljs-deletion {
91
- background-color: #fc9b9b;
92
- color: #333;
93
- }
94
-
95
- .hljs-addition {
96
- background-color: #a2fca2;
97
- color: #333;
98
- }
99
-
100
- .hljs a {
101
- color: inherit;
102
- }
103
-
104
- .hljs a:focus,
105
- .hljs a:hover {
106
- color: inherit;
107
- text-decoration: underline;
108
- }
@@ -1,66 +0,0 @@
1
- /*
2
- Date: 24 Fev 2015
3
- Author: Pedro Oliveira <kanytu@gmail . com>
4
- */
5
-
6
- .hljs {
7
- color: #a9b7c6;
8
- background: #282b2e;
9
- display: block;
10
- overflow-x: auto;
11
- padding: 0.5em;
12
- }
13
-
14
- .hljs-number,
15
- .hljs-literal,
16
- .hljs-symbol,
17
- .hljs-bullet {
18
- color: #6897BB;
19
- }
20
-
21
- .hljs-keyword,
22
- .hljs-selector-tag,
23
- .hljs-deletion {
24
- color: #cc7832;
25
- }
26
-
27
- .hljs-variable,
28
- .hljs-template-variable,
29
- .hljs-link {
30
- color: #629755;
31
- }
32
-
33
- .hljs-comment,
34
- .hljs-quote {
35
- color: #808080;
36
- }
37
-
38
- .hljs-meta {
39
- color: #bbb529;
40
- }
41
-
42
- .hljs-string,
43
- .hljs-attribute,
44
- .hljs-addition {
45
- color: #6A8759;
46
- }
47
-
48
- .hljs-section,
49
- .hljs-title,
50
- .hljs-type {
51
- color: #ffc66d;
52
- }
53
-
54
- .hljs-name,
55
- .hljs-selector-id,
56
- .hljs-selector-class {
57
- color: #e8bf6a;
58
- }
59
-
60
- .hljs-emphasis {
61
- font-style: italic;
62
- }
63
-
64
- .hljs-strong {
65
- font-weight: bold;
66
- }
@@ -1,88 +0,0 @@
1
- /*
2
-
3
- Arduino® Light Theme - Stefania Mellai <s.mellai@arduino.cc>
4
-
5
- */
6
-
7
- .hljs {
8
- display: block;
9
- overflow-x: auto;
10
- padding: 0.5em;
11
- background: #FFFFFF;
12
- }
13
-
14
- .hljs,
15
- .hljs-subst {
16
- color: #434f54;
17
- }
18
-
19
- .hljs-keyword,
20
- .hljs-attribute,
21
- .hljs-selector-tag,
22
- .hljs-doctag,
23
- .hljs-name {
24
- color: #00979D;
25
- }
26
-
27
- .hljs-built_in,
28
- .hljs-literal,
29
- .hljs-bullet,
30
- .hljs-code,
31
- .hljs-addition {
32
- color: #D35400;
33
- }
34
-
35
- .hljs-regexp,
36
- .hljs-symbol,
37
- .hljs-variable,
38
- .hljs-template-variable,
39
- .hljs-link,
40
- .hljs-selector-attr,
41
- .hljs-selector-pseudo {
42
- color: #00979D;
43
- }
44
-
45
- .hljs-type,
46
- .hljs-string,
47
- .hljs-selector-id,
48
- .hljs-selector-class,
49
- .hljs-quote,
50
- .hljs-template-tag,
51
- .hljs-deletion {
52
- color: #005C5F;
53
- }
54
-
55
- .hljs-title,
56
- .hljs-section {
57
- color: #880000;
58
- font-weight: bold;
59
- }
60
-
61
- .hljs-comment {
62
- color: rgba(149,165,166,.8);
63
- }
64
-
65
- .hljs-meta-keyword {
66
- color: #728E00;
67
- }
68
-
69
- .hljs-meta {
70
- color: #728E00;
71
- color: #434f54;
72
- }
73
-
74
- .hljs-emphasis {
75
- font-style: italic;
76
- }
77
-
78
- .hljs-strong {
79
- font-weight: bold;
80
- }
81
-
82
- .hljs-function {
83
- color: #728E00;
84
- }
85
-
86
- .hljs-number {
87
- color: #8A7B52;
88
- }
@@ -1,73 +0,0 @@
1
- /*
2
- Date: 17.V.2011
3
- Author: pumbur <pumbur@pumbur.net>
4
- */
5
-
6
- .hljs {
7
- display: block;
8
- overflow-x: auto;
9
- padding: 0.5em;
10
- background: #222;
11
- }
12
-
13
- .hljs,
14
- .hljs-subst {
15
- color: #aaa;
16
- }
17
-
18
- .hljs-section {
19
- color: #fff;
20
- }
21
-
22
- .hljs-comment,
23
- .hljs-quote,
24
- .hljs-meta {
25
- color: #444;
26
- }
27
-
28
- .hljs-string,
29
- .hljs-symbol,
30
- .hljs-bullet,
31
- .hljs-regexp {
32
- color: #ffcc33;
33
- }
34
-
35
- .hljs-number,
36
- .hljs-addition {
37
- color: #00cc66;
38
- }
39
-
40
- .hljs-built_in,
41
- .hljs-builtin-name,
42
- .hljs-literal,
43
- .hljs-type,
44
- .hljs-template-variable,
45
- .hljs-attribute,
46
- .hljs-link {
47
- color: #32aaee;
48
- }
49
-
50
- .hljs-keyword,
51
- .hljs-selector-tag,
52
- .hljs-name,
53
- .hljs-selector-id,
54
- .hljs-selector-class {
55
- color: #6644aa;
56
- }
57
-
58
- .hljs-title,
59
- .hljs-variable,
60
- .hljs-deletion,
61
- .hljs-template-tag {
62
- color: #bb1166;
63
- }
64
-
65
- .hljs-section,
66
- .hljs-doctag,
67
- .hljs-strong {
68
- font-weight: bold;
69
- }
70
-
71
- .hljs-emphasis {
72
- font-style: italic;
73
- }
@@ -1,45 +0,0 @@
1
- /*
2
-
3
- Original style from softwaremaniacs.org (c) Ivan Sagalaev <Maniac@SoftwareManiacs.Org>
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-string,
16
- .hljs-variable,
17
- .hljs-template-variable,
18
- .hljs-symbol,
19
- .hljs-bullet,
20
- .hljs-section,
21
- .hljs-addition,
22
- .hljs-attribute,
23
- .hljs-link {
24
- color: #888;
25
- }
26
-
27
- .hljs-comment,
28
- .hljs-quote,
29
- .hljs-meta,
30
- .hljs-deletion {
31
- color: #ccc;
32
- }
33
-
34
- .hljs-keyword,
35
- .hljs-selector-tag,
36
- .hljs-section,
37
- .hljs-name,
38
- .hljs-type,
39
- .hljs-strong {
40
- font-weight: bold;
41
- }
42
-
43
- .hljs-emphasis {
44
- font-style: italic;
45
- }
@@ -1,60 +0,0 @@
1
- /*
2
- codepen.io Embed Theme
3
- Author: Justin Perry <http://github.com/ourmaninamsterdam>
4
- Original theme - https://github.com/chriskempson/tomorrow-theme
5
- */
6
-
7
- .hljs {
8
- display: block;
9
- overflow-x: auto;
10
- padding: 0.5em;
11
- background: #222;
12
- color: #fff;
13
- }
14
-
15
- .hljs-comment,
16
- .hljs-quote {
17
- color: #777;
18
- }
19
-
20
- .hljs-variable,
21
- .hljs-template-variable,
22
- .hljs-tag,
23
- .hljs-regexp,
24
- .hljs-meta,
25
- .hljs-number,
26
- .hljs-built_in,
27
- .hljs-builtin-name,
28
- .hljs-literal,
29
- .hljs-params,
30
- .hljs-symbol,
31
- .hljs-bullet,
32
- .hljs-link,
33
- .hljs-deletion {
34
- color: #ab875d;
35
- }
36
-
37
- .hljs-section,
38
- .hljs-title,
39
- .hljs-name,
40
- .hljs-selector-id,
41
- .hljs-selector-class,
42
- .hljs-type,
43
- .hljs-attribute {
44
- color: #9b869b;
45
- }
46
-
47
- .hljs-string,
48
- .hljs-keyword,
49
- .hljs-selector-tag,
50
- .hljs-addition {
51
- color: #8f9c6c;
52
- }
53
-
54
- .hljs-emphasis {
55
- font-style: italic;
56
- }
57
-
58
- .hljs-strong {
59
- font-weight: bold;
60
- }