rest_framework 0.9.2 → 0.9.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (42) hide show
  1. checksums.yaml +4 -4
  2. data/VERSION +1 -1
  3. data/app/views/rest_framework/_external.html.erb +13 -0
  4. data/app/views/rest_framework/_head.html.erb +2 -192
  5. data/{docs/assets/js/rest_framework.js → app/views/rest_framework/_shared.html} +69 -42
  6. data/docs/Gemfile +1 -0
  7. data/docs/Gemfile.lock +14 -14
  8. data/docs/_config.yml +4 -2
  9. data/docs/_guide/2_controllers.md +342 -0
  10. data/docs/_guide/3_serializers.md +1 -1
  11. data/docs/_guide/4_filtering_and_ordering.md +8 -8
  12. data/docs/_includes/external.html +9 -0
  13. data/docs/_includes/head.html +135 -15
  14. data/docs/_includes/shared.html +164 -0
  15. data/lib/rest_framework/controller_mixins/base.rb +23 -36
  16. data/lib/rest_framework/controller_mixins/models.rb +86 -75
  17. data/lib/rest_framework/controller_mixins.rb +1 -0
  18. data/lib/rest_framework/engine.rb +9 -0
  19. data/lib/rest_framework/filters/base.rb +9 -0
  20. data/lib/rest_framework/filters/model_ordering.rb +48 -0
  21. data/lib/rest_framework/filters/model_query.rb +51 -0
  22. data/lib/rest_framework/filters/model_search.rb +41 -0
  23. data/lib/rest_framework/filters/ransack.rb +25 -0
  24. data/lib/rest_framework/filters.rb +6 -150
  25. data/lib/rest_framework/paginators.rb +7 -11
  26. data/lib/rest_framework/serializers.rb +10 -10
  27. data/lib/rest_framework/utils.rb +15 -7
  28. data/lib/rest_framework.rb +93 -4
  29. data/vendor/assets/javascripts/rest_framework/bootstrap.js +7 -0
  30. data/vendor/assets/javascripts/rest_framework/highlight-json.js +7 -0
  31. data/vendor/assets/javascripts/rest_framework/highlight-xml.js +29 -0
  32. data/vendor/assets/javascripts/rest_framework/highlight.js +1202 -0
  33. data/vendor/assets/javascripts/rest_framework/neatjson.js +8 -0
  34. data/vendor/assets/javascripts/rest_framework/trix.js +6 -0
  35. data/vendor/assets/stylesheets/rest_framework/bootstrap-icons.css +13 -0
  36. data/vendor/assets/stylesheets/rest_framework/bootstrap.css +6 -0
  37. data/vendor/assets/stylesheets/rest_framework/highlight-a11y-dark.css +7 -0
  38. data/vendor/assets/stylesheets/rest_framework/highlight-a11y-light.css +7 -0
  39. data/vendor/assets/stylesheets/rest_framework/trix.css +410 -0
  40. metadata +23 -5
  41. data/docs/_guide/2_controller_mixins.md +0 -293
  42. data/docs/assets/css/rest_framework.css +0 -159
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: b18de6060f0b8d4182b8bd7aac3edf3f6b8b2543892d205713f96a7cb3951b4e
4
- data.tar.gz: 688299d1ee295d805745b365dfde9dc75c6d866855e94c4505513ff40ee214b8
3
+ metadata.gz: f87930fef1ded3809f2c37a80ac0553bac65ce9982a6cab7f124efada7456670
4
+ data.tar.gz: e32641840931ae691de4eb247416a40d89c80c591250bce18b69146520832e31
5
5
  SHA512:
6
- metadata.gz: f9767ad1b2714143b6746724e26f2a66846db38998d484472735cb21342c780c0ea396ca372b4a7f206597040a415a4097cbdc8a6a4d004aef41665b564e2549
7
- data.tar.gz: c6230e7917d490d319905e9bbcd661a52005fcf697406ef36747479593d7884951d1a0655964f74b7edeaddc97ebf26769f7193dfa8fac95cf99b98667734628
6
+ metadata.gz: 272804b24fe4f0c2f7ab7b21953955991d250dd6f156a7180f524f83b1a211511b8bc94962ed60dac6de8d8fb286b6f4c1acc9077d2270a0736c5e61463d7ec1
7
+ data.tar.gz: 83ea4be1c4889b84942e8662ff3478cea0d3cb96fcf230239af9c423b79d15600fb72d92f7ea53efd9926ba06cc499805e887df7e3c8d1a97c29148f50224244
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.9.2
1
+ 0.9.3
@@ -0,0 +1,13 @@
1
+ <% if RESTFramework.config.use_vendored_assets %>
2
+ <% RESTFramework::EXTERNAL_ASSETS.each do |name, cfg| %>
3
+ <% if cfg[:place] == "javascripts" %>
4
+ <%= javascript_include_tag "rest_framework/#{name}", defer: true, **cfg[:extra_tag_attrs] %>
5
+ <% else %>
6
+ <%= stylesheet_link_tag "rest_framework/#{name}", **cfg[:extra_tag_attrs] %>
7
+ <% end %>
8
+ <% end %>
9
+ <% else %>
10
+ <% RESTFramework::EXTERNAL_ASSETS.each do |name, cfg| %>
11
+ <%= cfg[:tag] %>
12
+ <% end %>
13
+ <% end %>
@@ -3,96 +3,10 @@
3
3
  <%= csrf_meta_tags %>
4
4
  <%= csp_meta_tag rescue nil %>
5
5
 
6
- <!-- Bootstrap -->
7
- <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0-alpha2/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-aFq/bzH65dt+w6FI2ooMVUpc+21e0SRygnTpmBvdBgSdnuTN7QbdgL+OapgHtvPp" crossorigin="anonymous">
8
- <script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0-alpha2/dist/js/bootstrap.bundle.min.js" integrity="sha384-qKXV1j0HvMUeCBQ+QVp7JcfGl760yU08IQ+GpUo5hlbpg51QRiuqHAJz8+BrxE/N" crossorigin="anonymous"></script>
9
- <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap-icons@1.10.4/font/bootstrap-icons.css">
6
+ <%= render partial: "rest_framework/external" %>
7
+ <%= render partial: "rest_framework/shared" %>
10
8
 
11
- <!-- Highlight.js -->
12
- <link rel="stylesheet" class="rrf-light-mode" href="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.7.0/styles/a11y-light.min.css" integrity="sha512-WDk6RzwygsN9KecRHAfm9HTN87LQjqdygDmkHSJxVkVI7ErCZ8ZWxP6T8RvBujY1n2/E4Ac+bn2ChXnp5rnnHA==" crossorigin="anonymous" referrerpolicy="no-referrer" />
13
- <link rel="stylesheet" class="rrf-dark-mode" href="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.7.0/styles/a11y-dark.min.css" integrity="sha512-Vj6gPCk8EZlqnoveEyuGyYaWZ1+jyjMPg8g4shwyyNlRQl6d3L9At02ZHQr5K6s5duZl/+YKMnM3/8pDhoUphg==" crossorigin="anonymous" referrerpolicy="no-referrer" />
14
- <script src="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.7.0/highlight.min.js" integrity="sha512-bgHRAiTjGrzHzLyKOnpFvaEpGzJet3z4tZnXGjpsCcqOnAH6VGUx9frc5bcIhKTVLEiCO6vEhNAgx5jtLUYrfA==" crossorigin="anonymous" referrerpolicy="no-referrer"></script>
15
- <script src="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.7.0/languages/json.min.js" integrity="sha512-0xYvyncS9OLE7GOpNBZFnwyh9+bq4HVgk4yVVYI678xRvE22ASicF1v6fZ1UiST+M6pn17MzFZdvVCI3jTHSyw==" crossorigin="anonymous" referrerpolicy="no-referrer"></script>
16
- <script src="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.7.0/languages/xml.min.js" integrity="sha512-5zBcw+OKRkaNyvUEPlTSfYylVzgpi7KpncY36b0gRudfxIYIH0q0kl2j26uCUB3YBRM6ytQQEZSgRg+ZlBTmdA==" crossorigin="anonymous" referrerpolicy="no-referrer"></script>
17
-
18
- <!-- NeatJSON -->
19
- <script src="https://cdn.jsdelivr.net/npm/neatjson@0.10.5/javascript/neatjson.min.js"></script>
20
-
21
- <!-- Trix -->
22
- <link rel="stylesheet" type="text/css" href="https://unpkg.com/trix@2.0.0/dist/trix.css">
23
- <script type="text/javascript" src="https://unpkg.com/trix@2.0.0/dist/trix.umd.min.js"></script>
24
-
25
- <!-- Custom Style -->
26
9
  <style>
27
- /********************************
28
- * START OF LIB/DOCS COMMON CSS *
29
- ********************************/
30
-
31
- :root {
32
- --rrf-red: #900;
33
- --rrf-red-hover: #5f0c0c;
34
- --rrf-light-red: #db2525;
35
- --rrf-light-red-hover: #b80404;
36
- }
37
- #rrfAccentBar {
38
- background-color: var(--rrf-red);
39
- height: .3em;
40
- }
41
- header nav { background-color: black; }
42
-
43
- /* Header adjustments. */
44
- h1 { font-size: 2rem; }
45
- h2 { font-size: 1.7rem; }
46
- h3 { font-size: 1.5rem; }
47
- h4 { font-size: 1.3rem; }
48
- h5 { font-size: 1.1rem; }
49
- h6 { font-size: 1rem; }
50
- h1, h2, h3, h4, h5, h6 {
51
- color: var(--rrf-red);
52
- }
53
- html[data-bs-theme="dark"] h1,
54
- html[data-bs-theme="dark"] h2,
55
- html[data-bs-theme="dark"] h3,
56
- html[data-bs-theme="dark"] h4,
57
- html[data-bs-theme="dark"] h5,
58
- html[data-bs-theme="dark"] h6 {
59
- color: var(--rrf-light-red);
60
- }
61
-
62
- /* Improve code and code blocks. */
63
- pre code {
64
- display: block;
65
- overflow-x: auto;
66
- }
67
- code, .trix-content pre {
68
- padding: .5em !important;
69
- background-color: #eee !important;
70
- border: 1px solid #aaa;
71
- border-radius: 3px;
72
- }
73
- p code {
74
- padding: .1em .3em !important;
75
- }
76
- html[data-bs-theme="dark"] code, html[data-bs-theme="dark"] .trix-content pre {
77
- background-color: #2b2b2b !important;
78
- }
79
-
80
- /* Anchors */
81
- a:not(.nav-link) {
82
- text-decoration: none;
83
- color: var(--rrf-red);
84
- }
85
- a:hover:not(.nav-link) {
86
- text-decoration: underline;
87
- color: var(--rrf-red-hover);
88
- }
89
- html[data-bs-theme="dark"] a:not(.nav-link) { color: var(--rrf-light-red); }
90
- html[data-bs-theme="dark"] a:hover:not(.nav-link) { color: var(--rrf-light-red-hover); }
91
-
92
- /******************************
93
- * END OF LIB/DOCS COMMON CSS *
94
- ******************************/
95
-
96
10
  /* Header adjustments. */
97
11
  h1,h2,h3,h4,h5,h6 { display: inline-block; font-weight: normal; margin-bottom: 0; }
98
12
 
@@ -148,111 +62,7 @@ html[data-bs-theme="dark"] .rrf-routes .rrf-route-group-header:hover {
148
62
  }
149
63
  </style>
150
64
 
151
- <!-- Custom JavaScript -->
152
65
  <script>
153
- /*******************************
154
- * START OF LIB/DOCS COMMON JS *
155
- *******************************/
156
-
157
- ;(() => {
158
- // Get the real mode from a selected mode. Anything other than "light" or "dark" is treated as
159
- // "system" mode.
160
- const rrfGetRealMode = (selectedMode) => {
161
- if (selectedMode === "light" || selectedMode === "dark") {
162
- return selectedMode
163
- }
164
-
165
- if (window.matchMedia && window.matchMedia("(prefers-color-scheme: dark)").matches) {
166
- return "dark"
167
- }
168
-
169
- return "light"
170
- }
171
-
172
- // Set the mode, given a "selected" mode.
173
- const rrfSetSelectedMode = (selectedMode) => {
174
- // Anything except "light" or "dark" is casted to "system".
175
- if (selectedMode !== "light" && selectedMode !== "dark") {
176
- selectedMode = "system"
177
- }
178
-
179
- // Store selected mode in `localStorage`.
180
- localStorage.setItem("rrfMode", selectedMode)
181
-
182
- // Set the mode selector to the selected mode.
183
- const modeComponent = document.getElementById("rrfModeComponent")
184
- if (modeComponent) {
185
- let labelHTML
186
- modeComponent.querySelectorAll("button[data-rrf-mode-value]").forEach((el) => {
187
- if (el.getAttribute("data-rrf-mode-value") === selectedMode) {
188
- el.classList.add("active")
189
- labelHTML = el.querySelector("i").outerHTML.replace("ms-2", "me-1")
190
- } else {
191
- el.classList.remove("active")
192
- }
193
- })
194
- modeComponent.querySelector("button[data-bs-toggle]").innerHTML = labelHTML
195
- }
196
-
197
- // Get the real mode to use.
198
- realMode = rrfGetRealMode(selectedMode)
199
-
200
- // Set the `realMode` effects.
201
- if (realMode === "light") {
202
- document.querySelectorAll(".rrf-light-mode").forEach((el) => {
203
- el.disabled = false
204
- })
205
- document.querySelectorAll(".rrf-dark-mode").forEach((el) => {
206
- el.disabled = true
207
- })
208
- document.querySelectorAll(".rrf-mode").forEach((el) => {
209
- el.setAttribute("data-bs-theme", "light")
210
- })
211
- } else if (realMode === "dark") {
212
- document.querySelectorAll(".rrf-light-mode").forEach((el) => {
213
- el.disabled = true
214
- })
215
- document.querySelectorAll(".rrf-dark-mode").forEach((el) => {
216
- el.disabled = false
217
- })
218
- document.querySelectorAll(".rrf-mode").forEach((el) => {
219
- el.setAttribute("data-bs-theme", "dark")
220
- })
221
- } else {
222
- console.log(`RRF: Unknown mode: ${mode}`)
223
- }
224
- }
225
-
226
- // Initialize dark/light mode before page fully loads to prevent flash.
227
- rrfSetSelectedMode(localStorage.getItem("rrfMode"))
228
-
229
- // Initialize dark/light mode after page load (mostly so mode component is updated).
230
- document.addEventListener("DOMContentLoaded", (event) => {
231
- rrfSetSelectedMode(localStorage.getItem("rrfMode"))
232
-
233
- // Also set up mode selector.
234
- document.querySelectorAll("#rrfModeComponent button[data-rrf-mode-value]").forEach((el) => {
235
- el.addEventListener("click", (event) => {
236
- rrfSetSelectedMode(event.target.getAttribute("data-rrf-mode-value"))
237
- })
238
- })
239
- })
240
-
241
- // Handle case where user changes system theme.
242
- if (window.matchMedia) {
243
- window.matchMedia("(prefers-color-scheme: dark)").addEventListener("change", () => {
244
- const selectedMode = localStorage.getItem("rrfMode")
245
- if (selectedMode !== "light" && selectedMode !== "dark") {
246
- rrfSetSelectedMode("system")
247
- }
248
- })
249
- }
250
- })()
251
-
252
- /*****************************
253
- * END OF LIB/DOCS COMMON JS *
254
- *****************************/
255
-
256
66
  document.addEventListener("DOMContentLoaded", (event) => {
257
67
  // Pretty-print JSON.
258
68
  document.querySelectorAll(".language-json").forEach((el) => {
@@ -1,7 +1,71 @@
1
- /*******************************
2
- * START OF LIB/DOCS COMMON JS *
3
- *******************************/
4
-
1
+ <!--
2
+ AUTOGENERATED
3
+ Updates must be written to `shared.{css,js}` and synced with `rake maintain_assets`.
4
+ -->
5
+ <style>
6
+ :root {
7
+ --rrf-red: #900;
8
+ --rrf-red-hover: #5f0c0c;
9
+ --rrf-light-red: #db2525;
10
+ --rrf-light-red-hover: #b80404;
11
+ }
12
+ #rrfAccentBar {
13
+ background-color: var(--rrf-red);
14
+ height: .3em;
15
+ }
16
+ header nav { background-color: black; }
17
+
18
+ /* Header adjustments. */
19
+ h1 { font-size: 2rem; }
20
+ h2 { font-size: 1.7rem; }
21
+ h3 { font-size: 1.5rem; }
22
+ h4 { font-size: 1.3rem; }
23
+ h5 { font-size: 1.1rem; }
24
+ h6 { font-size: 1rem; }
25
+ h1, h2, h3, h4, h5, h6 {
26
+ color: var(--rrf-red);
27
+ }
28
+ html[data-bs-theme="dark"] h1,
29
+ html[data-bs-theme="dark"] h2,
30
+ html[data-bs-theme="dark"] h3,
31
+ html[data-bs-theme="dark"] h4,
32
+ html[data-bs-theme="dark"] h5,
33
+ html[data-bs-theme="dark"] h6 {
34
+ color: var(--rrf-light-red);
35
+ }
36
+
37
+ /* Improve code and code blocks. */
38
+ pre code, .trix-content pre {
39
+ display: block;
40
+ overflow-x: auto;
41
+ padding: .5em !important;
42
+ }
43
+ code, .trix-content pre {
44
+ --bs-code-color: black;
45
+ background-color: #eee !important;
46
+ border: 1px solid #aaa;
47
+ border-radius: 3px;
48
+ padding: .1em .3em;
49
+ }
50
+ html[data-bs-theme="dark"] code, html[data-bs-theme="dark"] .trix-content pre {
51
+ --bs-code-color: white;
52
+ background-color: #2b2b2b !important;
53
+ }
54
+
55
+ /* Anchors */
56
+ a:not(.nav-link) {
57
+ text-decoration: none;
58
+ color: var(--rrf-red);
59
+ }
60
+ a:hover:not(.nav-link) {
61
+ text-decoration: underline;
62
+ color: var(--rrf-red-hover);
63
+ }
64
+ html[data-bs-theme="dark"] a:not(.nav-link) { color: var(--rrf-light-red); }
65
+ html[data-bs-theme="dark"] a:hover:not(.nav-link) { color: var(--rrf-light-red-hover); }
66
+
67
+ </style>
68
+ <script>
5
69
  ;(() => {
6
70
  // Get the real mode from a selected mode. Anything other than "light" or "dark" is treated as
7
71
  // "system" mode.
@@ -97,41 +161,4 @@
97
161
  }
98
162
  })()
99
163
 
100
- /*****************************
101
- * END OF LIB/DOCS COMMON JS *
102
- *****************************/
103
-
104
- document.addEventListener("DOMContentLoaded", () => {
105
- // Initialize `Highlight.js`.
106
- hljs.configure({ ignoreUnescapedHTML: true })
107
- hljs.highlightAll()
108
-
109
- // Setup the floating table of contents.
110
- let table = "<ul>"
111
- let hlevel = 2
112
- let hprevlevel = 2
113
- document.querySelectorAll("h2, h3, h4").forEach((header) => {
114
- hlevel = parseInt(header.tagName[1])
115
-
116
- if (hlevel > hprevlevel) {
117
- table += "<ul>"
118
- } else if (hlevel < hprevlevel) {
119
- Array(hprevlevel - hlevel)
120
- .fill(0)
121
- .forEach(function () {
122
- table += "</ul>"
123
- })
124
- }
125
- table += `<li><a href="${
126
- header.querySelectorAll("a")[0].href
127
- }">${header.childNodes[0].nodeValue.trim()}</a></li>`
128
- hprevlevel = hlevel
129
- })
130
- if (hlevel > hprevlevel) {
131
- table += "</ul>"
132
- }
133
- table += "</ul>"
134
- if (table != "<ul></ul>") {
135
- document.getElementById("headersTable").innerHTML = table
136
- }
137
- })
164
+ </script>
data/docs/Gemfile CHANGED
@@ -2,3 +2,4 @@ source "https://rubygems.org"
2
2
 
3
3
  gem "github-pages"
4
4
  gem "yard"
5
+ gem "webrick"
data/docs/Gemfile.lock CHANGED
@@ -1,22 +1,22 @@
1
1
  GEM
2
2
  remote: https://rubygems.org/
3
3
  specs:
4
- activesupport (7.0.4.3)
4
+ activesupport (7.0.5)
5
5
  concurrent-ruby (~> 1.0, >= 1.0.2)
6
6
  i18n (>= 1.6, < 2)
7
7
  minitest (>= 5.1)
8
8
  tzinfo (~> 2.0)
9
- addressable (2.8.2)
9
+ addressable (2.8.4)
10
10
  public_suffix (>= 2.0.2, < 6.0)
11
11
  coffee-script (2.4.1)
12
12
  coffee-script-source
13
13
  execjs
14
14
  coffee-script-source (1.11.1)
15
15
  colorator (1.1.0)
16
- commonmarker (0.23.8)
16
+ commonmarker (0.23.9)
17
17
  concurrent-ruby (1.2.2)
18
- dnsruby (1.61.9)
19
- simpleidn (~> 0.1)
18
+ dnsruby (1.70.0)
19
+ simpleidn (~> 0.2.1)
20
20
  em-websocket (0.5.3)
21
21
  eventmachine (>= 0.12.9)
22
22
  http_parser.rb (~> 0)
@@ -24,7 +24,7 @@ GEM
24
24
  ffi (>= 1.15.0)
25
25
  eventmachine (1.2.7)
26
26
  execjs (2.8.1)
27
- faraday (2.7.4)
27
+ faraday (2.7.6)
28
28
  faraday-net_http (>= 2.0, < 3.1)
29
29
  ruby2_keywords (>= 0.0.4)
30
30
  faraday-net_http (3.0.2)
@@ -86,7 +86,7 @@ GEM
86
86
  activesupport (>= 2)
87
87
  nokogiri (>= 1.4)
88
88
  http_parser.rb (0.8.0)
89
- i18n (1.12.0)
89
+ i18n (1.14.1)
90
90
  concurrent-ruby (~> 1.0)
91
91
  jekyll (3.9.3)
92
92
  addressable (~> 2.4)
@@ -205,14 +205,14 @@ GEM
205
205
  rb-fsevent (~> 0.10, >= 0.10.3)
206
206
  rb-inotify (~> 0.9, >= 0.9.10)
207
207
  mercenary (0.3.6)
208
- mini_portile2 (2.8.1)
208
+ mini_portile2 (2.8.2)
209
209
  minima (2.5.1)
210
210
  jekyll (>= 3.5, < 5.0)
211
211
  jekyll-feed (~> 0.9)
212
212
  jekyll-seo-tag (~> 2.1)
213
213
  minitest (5.18.0)
214
- nokogiri (1.14.2)
215
- mini_portile2 (~> 2.8.0)
214
+ nokogiri (1.15.2)
215
+ mini_portile2 (~> 2.8.2)
216
216
  racc (~> 1.4)
217
217
  octokit (4.25.1)
218
218
  faraday (>= 1, < 3)
@@ -220,7 +220,7 @@ GEM
220
220
  pathutil (0.16.2)
221
221
  forwardable-extended (~> 2.6)
222
222
  public_suffix (4.0.7)
223
- racc (1.6.2)
223
+ racc (1.7.0)
224
224
  rb-fsevent (0.11.2)
225
225
  rb-inotify (0.10.1)
226
226
  ffi (~> 1.0)
@@ -249,15 +249,15 @@ GEM
249
249
  unf_ext
250
250
  unf_ext (0.0.8.2)
251
251
  unicode-display_width (1.8.0)
252
- webrick (1.7.0)
253
- yard (0.9.28)
254
- webrick (~> 1.7.0)
252
+ webrick (1.8.1)
253
+ yard (0.9.34)
255
254
 
256
255
  PLATFORMS
257
256
  ruby
258
257
 
259
258
  DEPENDENCIES
260
259
  github-pages
260
+ webrick
261
261
  yard
262
262
 
263
263
  BUNDLED WITH
data/docs/_config.yml CHANGED
@@ -7,11 +7,13 @@ collections:
7
7
  output: true
8
8
  permalink: /:collection/:slug/
9
9
 
10
- # Build settings
10
+ # Build settings.
11
11
  markdown: kramdown
12
+ highlighter: none
12
13
 
13
14
  defaults:
14
15
  - scope:
15
- path: "" # All files.
16
+ # All files.
17
+ path: ""
16
18
  values:
17
19
  layout: default