apitome 0.0.8 → 0.3.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (135) hide show
  1. checksums.yaml +5 -5
  2. data/MIT.LICENSE +2 -2
  3. data/README.md +99 -40
  4. data/app/assets/javascripts/apitome/application.js +16 -0
  5. data/app/assets/stylesheets/apitome/application.css +10 -0
  6. data/app/controllers/apitome/docs_controller.rb +83 -45
  7. data/app/helpers/apitome/docs_helper.rb +19 -0
  8. data/app/views/apitome/docs/_all_examples.html.erb +6 -2
  9. data/app/views/apitome/docs/_body.html.erb +1 -1
  10. data/app/views/apitome/docs/_curl.html.erb +1 -1
  11. data/app/views/apitome/docs/_endpoint.html.erb +4 -0
  12. data/app/views/apitome/docs/_example.html.erb +10 -6
  13. data/app/views/apitome/docs/_explanation.html.erb +3 -3
  14. data/app/views/apitome/docs/_headers.html.erb +6 -4
  15. data/app/views/apitome/docs/_navigation.html.erb +14 -10
  16. data/app/views/apitome/docs/_params.html.erb +4 -4
  17. data/app/views/apitome/docs/_query.html.erb +1 -1
  18. data/app/views/apitome/docs/_resource_explanation.html.erb +3 -0
  19. data/app/views/apitome/docs/_response_fields.html.erb +1 -1
  20. data/app/views/apitome/docs/_route.html.erb +1 -1
  21. data/app/views/apitome/docs/_status.html.erb +1 -1
  22. data/app/views/apitome/docs/index.html.erb +11 -6
  23. data/app/views/apitome/docs/show.html.erb +2 -1
  24. data/app/views/layouts/apitome/application.html.erb +4 -4
  25. data/config/locales/en.yml +14 -11
  26. data/config/locales/es.yml +14 -10
  27. data/lib/apitome.rb +5 -5
  28. data/lib/apitome/configuration.rb +36 -15
  29. data/lib/apitome/engine.rb +13 -7
  30. data/lib/apitome/exceptions.rb +5 -1
  31. data/lib/apitome/version.rb +1 -1
  32. data/lib/generators/apitome/install/POST_INSTALL +1 -1
  33. data/lib/generators/apitome/install/install_generator.rb +7 -8
  34. data/lib/generators/apitome/install/templates/initializer.rb +35 -13
  35. data/vendor/assets/javascripts/apitome/highlight.min.js +2 -1
  36. data/vendor/assets/stylesheets/apitome/highlight_themes/agate.css +108 -0
  37. data/vendor/assets/stylesheets/apitome/highlight_themes/androidstudio.css +66 -0
  38. data/vendor/assets/stylesheets/apitome/highlight_themes/arduino-light.css +88 -0
  39. data/vendor/assets/stylesheets/apitome/highlight_themes/arta.css +41 -126
  40. data/vendor/assets/stylesheets/apitome/highlight_themes/ascetic.css +31 -36
  41. data/vendor/assets/stylesheets/apitome/highlight_themes/atelier-cave-dark.css +83 -0
  42. data/vendor/assets/stylesheets/apitome/highlight_themes/atelier-cave-light.css +85 -0
  43. data/vendor/assets/stylesheets/apitome/highlight_themes/atelier-dune-dark.css +69 -0
  44. data/vendor/assets/stylesheets/apitome/highlight_themes/atelier-dune-light.css +69 -0
  45. data/vendor/assets/stylesheets/apitome/highlight_themes/atelier-estuary-dark.css +84 -0
  46. data/vendor/assets/stylesheets/apitome/highlight_themes/atelier-estuary-light.css +84 -0
  47. data/vendor/assets/stylesheets/apitome/highlight_themes/atelier-forest-dark.css +69 -0
  48. data/vendor/assets/stylesheets/apitome/highlight_themes/atelier-forest-light.css +69 -0
  49. data/vendor/assets/stylesheets/apitome/highlight_themes/atelier-heath-dark.css +69 -0
  50. data/vendor/assets/stylesheets/apitome/highlight_themes/atelier-heath-light.css +69 -0
  51. data/vendor/assets/stylesheets/apitome/highlight_themes/atelier-lakeside-dark.css +69 -0
  52. data/vendor/assets/stylesheets/apitome/highlight_themes/atelier-lakeside-light.css +69 -0
  53. data/vendor/assets/stylesheets/apitome/highlight_themes/atelier-plateau-dark.css +84 -0
  54. data/vendor/assets/stylesheets/apitome/highlight_themes/atelier-plateau-light.css +84 -0
  55. data/vendor/assets/stylesheets/apitome/highlight_themes/atelier-savanna-dark.css +84 -0
  56. data/vendor/assets/stylesheets/apitome/highlight_themes/atelier-savanna-light.css +84 -0
  57. data/vendor/assets/stylesheets/apitome/highlight_themes/atelier-seaside-dark.css +69 -0
  58. data/vendor/assets/stylesheets/apitome/highlight_themes/atelier-seaside-light.css +69 -0
  59. data/vendor/assets/stylesheets/apitome/highlight_themes/atelier-sulphurpool-dark.css +69 -0
  60. data/vendor/assets/stylesheets/apitome/highlight_themes/atelier-sulphurpool-light.css +69 -0
  61. data/vendor/assets/stylesheets/apitome/highlight_themes/brown-paper.css +64 -0
  62. data/vendor/assets/stylesheets/apitome/highlight_themes/{brown_papersq.png → brown-papersq.png} +0 -0
  63. data/vendor/assets/stylesheets/apitome/highlight_themes/codepen-embed.css +60 -0
  64. data/vendor/assets/stylesheets/apitome/highlight_themes/color-brewer.css +71 -0
  65. data/vendor/assets/stylesheets/apitome/highlight_themes/dark.css +41 -81
  66. data/vendor/assets/stylesheets/apitome/highlight_themes/darkula.css +74 -0
  67. data/vendor/assets/stylesheets/apitome/highlight_themes/default.css +74 -110
  68. data/vendor/assets/stylesheets/apitome/highlight_themes/docco.css +97 -0
  69. data/vendor/assets/stylesheets/apitome/highlight_themes/dracula.css +76 -0
  70. data/vendor/assets/stylesheets/apitome/highlight_themes/far.css +46 -86
  71. data/vendor/assets/stylesheets/apitome/highlight_themes/foundation.css +88 -0
  72. data/vendor/assets/stylesheets/apitome/highlight_themes/github-gist.css +71 -0
  73. data/vendor/assets/stylesheets/apitome/highlight_themes/github.css +53 -81
  74. data/vendor/assets/stylesheets/apitome/highlight_themes/googlecode.css +48 -103
  75. data/vendor/assets/stylesheets/apitome/highlight_themes/grayscale.css +101 -0
  76. data/vendor/assets/stylesheets/apitome/highlight_themes/gruvbox-dark.css +108 -0
  77. data/vendor/assets/stylesheets/apitome/highlight_themes/gruvbox-light.css +108 -0
  78. data/vendor/assets/stylesheets/apitome/highlight_themes/hopscotch.css +83 -0
  79. data/vendor/assets/stylesheets/apitome/highlight_themes/hybrid.css +102 -0
  80. data/vendor/assets/stylesheets/apitome/highlight_themes/idea.css +40 -64
  81. data/vendor/assets/stylesheets/apitome/highlight_themes/ir-black.css +73 -0
  82. data/vendor/assets/stylesheets/apitome/highlight_themes/kimbie.dark.css +74 -0
  83. data/vendor/assets/stylesheets/apitome/highlight_themes/kimbie.light.css +74 -0
  84. data/vendor/assets/stylesheets/apitome/highlight_themes/magula.css +36 -87
  85. data/vendor/assets/stylesheets/apitome/highlight_themes/mono-blue.css +59 -0
  86. data/vendor/assets/stylesheets/apitome/highlight_themes/monokai-sublime.css +83 -0
  87. data/vendor/assets/stylesheets/apitome/highlight_themes/monokai.css +50 -94
  88. data/vendor/assets/stylesheets/apitome/highlight_themes/obsidian.css +88 -0
  89. data/vendor/assets/stylesheets/apitome/highlight_themes/paraiso-dark.css +72 -0
  90. data/vendor/assets/stylesheets/apitome/highlight_themes/paraiso-light.css +72 -0
  91. data/vendor/assets/stylesheets/apitome/highlight_themes/pojoaque.css +45 -66
  92. data/vendor/assets/stylesheets/apitome/highlight_themes/purebasic.css +96 -0
  93. data/vendor/assets/stylesheets/apitome/highlight_themes/qtcreator_dark.css +83 -0
  94. data/vendor/assets/stylesheets/apitome/highlight_themes/qtcreator_light.css +83 -0
  95. data/vendor/assets/stylesheets/apitome/highlight_themes/railscasts.css +106 -0
  96. data/vendor/assets/stylesheets/apitome/highlight_themes/rainbow.css +48 -77
  97. data/vendor/assets/stylesheets/apitome/highlight_themes/school-book.css +72 -0
  98. data/vendor/assets/stylesheets/apitome/highlight_themes/{school_book.png → school-book.png} +0 -0
  99. data/vendor/assets/stylesheets/apitome/highlight_themes/solarized-dark.css +84 -0
  100. data/vendor/assets/stylesheets/apitome/highlight_themes/solarized-light.css +84 -0
  101. data/vendor/assets/stylesheets/apitome/highlight_themes/sunburst.css +55 -111
  102. data/vendor/assets/stylesheets/apitome/highlight_themes/tomorrow-night-blue.css +75 -0
  103. data/vendor/assets/stylesheets/apitome/highlight_themes/tomorrow-night-bright.css +74 -0
  104. data/vendor/assets/stylesheets/apitome/highlight_themes/tomorrow-night-eighties.css +74 -0
  105. data/vendor/assets/stylesheets/apitome/highlight_themes/tomorrow-night.css +75 -0
  106. data/vendor/assets/stylesheets/apitome/highlight_themes/tomorrow.css +43 -20
  107. data/vendor/assets/stylesheets/apitome/highlight_themes/vs.css +50 -68
  108. data/vendor/assets/stylesheets/apitome/highlight_themes/xcode.css +55 -116
  109. data/vendor/assets/stylesheets/apitome/highlight_themes/xt256.css +92 -0
  110. data/vendor/assets/stylesheets/apitome/highlight_themes/zenburn.css +49 -84
  111. metadata +80 -65
  112. data/config/routes.rb +0 -4
  113. data/spec/apitome/configuration_spec.rb +0 -0
  114. data/spec/apitome/engine_spec.rb +0 -0
  115. data/spec/dummy/Rakefile +0 -7
  116. data/spec/dummy/config.ru +0 -15
  117. data/spec/dummy/config/application.rb +0 -16
  118. data/spec/dummy/config/boot.rb +0 -7
  119. data/spec/dummy/config/environment.rb +0 -5
  120. data/spec/dummy/config/environments/development.rb +0 -27
  121. data/spec/dummy/config/environments/test.rb +0 -29
  122. data/spec/dummy/config/initializers/apitome.rb +0 -44
  123. data/spec/dummy/config/routes.rb +0 -2
  124. data/spec/dummy/doc/api.md +0 -20
  125. data/spec/dummy/public/favicon.ico +0 -0
  126. data/spec/dummy/script/rails +0 -6
  127. data/vendor/assets/stylesheets/apitome/highlight_themes/brown_paper.css +0 -104
  128. data/vendor/assets/stylesheets/apitome/highlight_themes/ir_black.css +0 -104
  129. data/vendor/assets/stylesheets/apitome/highlight_themes/school_book.css +0 -111
  130. data/vendor/assets/stylesheets/apitome/highlight_themes/solarized_dark.css +0 -88
  131. data/vendor/assets/stylesheets/apitome/highlight_themes/solarized_light.css +0 -88
  132. data/vendor/assets/stylesheets/apitome/highlight_themes/tomorrow_night.css +0 -52
  133. data/vendor/assets/stylesheets/apitome/highlight_themes/tomorrow_night_blue.css +0 -52
  134. data/vendor/assets/stylesheets/apitome/highlight_themes/tomorrow_night_bright.css +0 -51
  135. data/vendor/assets/stylesheets/apitome/highlight_themes/tomorrow_night_eighties.css +0 -51
@@ -4,141 +4,86 @@ Google Code style (c) Aahan Krish <geekpanth3r@gmail.com>
4
4
 
5
5
  */
6
6
 
7
- pre code {
8
- display: block; padding: 0.5em;
9
- background: white; color: black;
7
+ .hljs {
8
+ display: block;
9
+ overflow-x: auto;
10
+ padding: 0.5em;
11
+ background: white;
12
+ color: black;
10
13
  }
11
14
 
12
- pre .comment,
13
- pre .template_comment,
14
- pre .javadoc,
15
- pre .comment * {
15
+ .hljs-comment,
16
+ .hljs-quote {
16
17
  color: #800;
17
18
  }
18
19
 
19
- pre .keyword,
20
- pre .method,
21
- pre .list .title,
22
- pre .clojure .built_in,
23
- pre .nginx .title,
24
- pre .tag .title,
25
- pre .setting .value,
26
- pre .winutils,
27
- pre .tex .command,
28
- pre .http .title,
29
- pre .request,
30
- pre .status {
20
+ .hljs-keyword,
21
+ .hljs-selector-tag,
22
+ .hljs-section,
23
+ .hljs-title,
24
+ .hljs-name {
31
25
  color: #008;
32
26
  }
33
27
 
34
- pre .envvar,
35
- pre .tex .special {
28
+ .hljs-variable,
29
+ .hljs-template-variable {
36
30
  color: #660;
37
31
  }
38
32
 
39
- pre .string,
40
- pre .tag .value,
41
- pre .cdata,
42
- pre .filter .argument,
43
- pre .attr_selector,
44
- pre .apache .cbracket,
45
- pre .date,
46
- pre .regexp {
33
+ .hljs-string,
34
+ .hljs-selector-attr,
35
+ .hljs-selector-pseudo,
36
+ .hljs-regexp {
47
37
  color: #080;
48
38
  }
49
39
 
50
- pre .sub .identifier,
51
- pre .pi,
52
- pre .tag,
53
- pre .tag .keyword,
54
- pre .decorator,
55
- pre .ini .title,
56
- pre .shebang,
57
- pre .prompt,
58
- pre .hexcolor,
59
- pre .rules .value,
60
- pre .css .value .number,
61
- pre .literal,
62
- pre .symbol,
63
- pre .ruby .symbol .string,
64
- pre .number,
65
- pre .css .function,
66
- pre .clojure .attribute {
40
+ .hljs-literal,
41
+ .hljs-symbol,
42
+ .hljs-bullet,
43
+ .hljs-meta,
44
+ .hljs-number,
45
+ .hljs-link {
67
46
  color: #066;
68
47
  }
69
48
 
70
- pre .class .title,
71
- pre .haskell .type,
72
- pre .smalltalk .class,
73
- pre .javadoctag,
74
- pre .yardoctag,
75
- pre .phpdoc,
76
- pre .typename,
77
- pre .tag .attribute,
78
- pre .doctype,
79
- pre .class .id,
80
- pre .built_in,
81
- pre .setting,
82
- pre .params,
83
- pre .variable,
84
- pre .clojure .title {
49
+ .hljs-title,
50
+ .hljs-doctag,
51
+ .hljs-type,
52
+ .hljs-attr,
53
+ .hljs-built_in,
54
+ .hljs-builtin-name,
55
+ .hljs-params {
85
56
  color: #606;
86
57
  }
87
58
 
88
- pre .css .tag,
89
- pre .rules .property,
90
- pre .pseudo,
91
- pre .subst {
59
+ .hljs-attribute,
60
+ .hljs-subst {
92
61
  color: #000;
93
62
  }
94
63
 
95
- pre .css .class, pre .css .id {
96
- color: #9B703F;
97
- }
98
-
99
- pre .value .important {
100
- color: #ff7700;
101
- font-weight: bold;
102
- }
103
-
104
- pre .rules .keyword {
105
- color: #C5AF75;
106
- }
107
-
108
- pre .annotation,
109
- pre .apache .sqbracket,
110
- pre .nginx .built_in {
111
- color: #9B859D;
112
- }
113
-
114
- pre .preprocessor,
115
- pre .preprocessor * {
116
- color: #444;
117
- }
118
-
119
- pre .tex .formula {
120
- background-color: #EEE;
64
+ .hljs-formula {
65
+ background-color: #eee;
121
66
  font-style: italic;
122
67
  }
123
68
 
124
- pre .diff .header,
125
- pre .chunk {
126
- color: #808080;
127
- font-weight: bold;
69
+ .hljs-selector-id,
70
+ .hljs-selector-class {
71
+ color: #9B703F
128
72
  }
129
73
 
130
- pre .diff .change {
131
- background-color: #BCCFF9;
74
+ .hljs-addition {
75
+ background-color: #baeeba;
132
76
  }
133
77
 
134
- pre .addition {
135
- background-color: #BAEEBA;
78
+ .hljs-deletion {
79
+ background-color: #ffc8bd;
136
80
  }
137
81
 
138
- pre .deletion {
139
- background-color: #FFC8BD;
82
+ .hljs-doctag,
83
+ .hljs-strong {
84
+ font-weight: bold;
140
85
  }
141
86
 
142
- pre .comment .yardoctag {
143
- font-weight: bold;
87
+ .hljs-emphasis {
88
+ font-style: italic;
144
89
  }
@@ -0,0 +1,101 @@
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
+ }
@@ -0,0 +1,108 @@
1
+ /*
2
+
3
+ Gruvbox style (dark) (c) Pavel Pertsev (original style at https://github.com/morhetz/gruvbox)
4
+
5
+ */
6
+
7
+ .hljs {
8
+ display: block;
9
+ overflow-x: auto;
10
+ padding: 0.5em;
11
+ background: #282828;
12
+ }
13
+
14
+ .hljs,
15
+ .hljs-subst {
16
+ color: #ebdbb2;
17
+ }
18
+
19
+ /* Gruvbox Red */
20
+ .hljs-deletion,
21
+ .hljs-formula,
22
+ .hljs-keyword,
23
+ .hljs-link,
24
+ .hljs-selector-tag {
25
+ color: #fb4934;
26
+ }
27
+
28
+ /* Gruvbox Blue */
29
+ .hljs-built_in,
30
+ .hljs-emphasis,
31
+ .hljs-name,
32
+ .hljs-quote,
33
+ .hljs-strong,
34
+ .hljs-title,
35
+ .hljs-variable {
36
+ color: #83a598;
37
+ }
38
+
39
+ /* Gruvbox Yellow */
40
+ .hljs-attr,
41
+ .hljs-params,
42
+ .hljs-template-tag,
43
+ .hljs-type {
44
+ color: #fabd2f;
45
+ }
46
+
47
+ /* Gruvbox Purple */
48
+ .hljs-builtin-name,
49
+ .hljs-doctag,
50
+ .hljs-literal,
51
+ .hljs-number {
52
+ color: #8f3f71;
53
+ }
54
+
55
+ /* Gruvbox Orange */
56
+ .hljs-code,
57
+ .hljs-meta,
58
+ .hljs-regexp,
59
+ .hljs-selector-id,
60
+ .hljs-template-variable {
61
+ color: #fe8019;
62
+ }
63
+
64
+ /* Gruvbox Green */
65
+ .hljs-addition,
66
+ .hljs-meta-string,
67
+ .hljs-section,
68
+ .hljs-selector-attr,
69
+ .hljs-selector-class,
70
+ .hljs-string,
71
+ .hljs-symbol {
72
+ color: #b8bb26;
73
+ }
74
+
75
+ /* Gruvbox Aqua */
76
+ .hljs-attribute,
77
+ .hljs-bullet,
78
+ .hljs-class,
79
+ .hljs-function,
80
+ .hljs-function .hljs-keyword,
81
+ .hljs-meta-keyword,
82
+ .hljs-selector-pseudo,
83
+ .hljs-tag {
84
+ color: #8ec07c;
85
+ }
86
+
87
+ /* Gruvbox Gray */
88
+ .hljs-comment {
89
+ color: #928374;
90
+ }
91
+
92
+ /* Gruvbox Purple */
93
+ .hljs-link_label,
94
+ .hljs-literal,
95
+ .hljs-number {
96
+ color: #d3869b;
97
+ }
98
+
99
+ .hljs-comment,
100
+ .hljs-emphasis {
101
+ font-style: italic;
102
+ }
103
+
104
+ .hljs-section,
105
+ .hljs-strong,
106
+ .hljs-tag {
107
+ font-weight: bold;
108
+ }
@@ -0,0 +1,108 @@
1
+ /*
2
+
3
+ Gruvbox style (light) (c) Pavel Pertsev (original style at https://github.com/morhetz/gruvbox)
4
+
5
+ */
6
+
7
+ .hljs {
8
+ display: block;
9
+ overflow-x: auto;
10
+ padding: 0.5em;
11
+ background: #fbf1c7;
12
+ }
13
+
14
+ .hljs,
15
+ .hljs-subst {
16
+ color: #3c3836;
17
+ }
18
+
19
+ /* Gruvbox Red */
20
+ .hljs-deletion,
21
+ .hljs-formula,
22
+ .hljs-keyword,
23
+ .hljs-link,
24
+ .hljs-selector-tag {
25
+ color: #9d0006;
26
+ }
27
+
28
+ /* Gruvbox Blue */
29
+ .hljs-built_in,
30
+ .hljs-emphasis,
31
+ .hljs-name,
32
+ .hljs-quote,
33
+ .hljs-strong,
34
+ .hljs-title,
35
+ .hljs-variable {
36
+ color: #076678;
37
+ }
38
+
39
+ /* Gruvbox Yellow */
40
+ .hljs-attr,
41
+ .hljs-params,
42
+ .hljs-template-tag,
43
+ .hljs-type {
44
+ color: #b57614;
45
+ }
46
+
47
+ /* Gruvbox Purple */
48
+ .hljs-builtin-name,
49
+ .hljs-doctag,
50
+ .hljs-literal,
51
+ .hljs-number {
52
+ color: #8f3f71;
53
+ }
54
+
55
+ /* Gruvbox Orange */
56
+ .hljs-code,
57
+ .hljs-meta,
58
+ .hljs-regexp,
59
+ .hljs-selector-id,
60
+ .hljs-template-variable {
61
+ color: #af3a03;
62
+ }
63
+
64
+ /* Gruvbox Green */
65
+ .hljs-addition,
66
+ .hljs-meta-string,
67
+ .hljs-section,
68
+ .hljs-selector-attr,
69
+ .hljs-selector-class,
70
+ .hljs-string,
71
+ .hljs-symbol {
72
+ color: #79740e;
73
+ }
74
+
75
+ /* Gruvbox Aqua */
76
+ .hljs-attribute,
77
+ .hljs-bullet,
78
+ .hljs-class,
79
+ .hljs-function,
80
+ .hljs-function .hljs-keyword,
81
+ .hljs-meta-keyword,
82
+ .hljs-selector-pseudo,
83
+ .hljs-tag {
84
+ color: #427b58;
85
+ }
86
+
87
+ /* Gruvbox Gray */
88
+ .hljs-comment {
89
+ color: #928374;
90
+ }
91
+
92
+ /* Gruvbox Purple */
93
+ .hljs-link_label,
94
+ .hljs-literal,
95
+ .hljs-number {
96
+ color: #8f3f71;
97
+ }
98
+
99
+ .hljs-comment,
100
+ .hljs-emphasis {
101
+ font-style: italic;
102
+ }
103
+
104
+ .hljs-section,
105
+ .hljs-strong,
106
+ .hljs-tag {
107
+ font-weight: bold;
108
+ }