jekyll-docs 3.2.1 → 3.3.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (102) hide show
  1. checksums.yaml +4 -4
  2. data/site/404.html +2 -2
  3. data/site/community/index.html +4 -4
  4. data/site/css/screen.css +16 -8
  5. data/site/docs/assets/index.html +90 -79
  6. data/site/docs/collections/index.html +106 -84
  7. data/site/docs/conduct/index.html +70 -70
  8. data/site/docs/configuration/index.html +143 -93
  9. data/site/docs/continuous-integration/index.html +137 -95
  10. data/site/docs/contributing/index.html +70 -70
  11. data/site/docs/datafiles/index.html +116 -87
  12. data/site/docs/deployment-methods/index.html +108 -84
  13. data/site/docs/drafts/index.html +75 -72
  14. data/site/docs/extras/index.html +74 -71
  15. data/site/docs/frontmatter/index.html +82 -76
  16. data/site/docs/github-pages/index.html +88 -83
  17. data/site/docs/history/index.html +185 -74
  18. data/site/docs/home/index.html +70 -70
  19. data/site/docs/installation/index.html +94 -82
  20. data/site/docs/migrations/index.html +70 -70
  21. data/site/docs/pages/index.html +80 -74
  22. data/site/docs/pagination/index.html +91 -76
  23. data/site/docs/permalinks/index.html +70 -70
  24. data/site/docs/plugins/index.html +142 -96
  25. data/site/docs/posts/index.html +117 -87
  26. data/site/docs/quickstart/index.html +77 -73
  27. data/site/docs/resources/index.html +76 -71
  28. data/site/docs/sites/index.html +70 -70
  29. data/site/docs/static-files/index.html +88 -72
  30. data/site/docs/structure/index.html +79 -76
  31. data/site/docs/templates/index.html +210 -84
  32. data/site/docs/themes/index.html +106 -81
  33. data/site/docs/troubleshooting/index.html +155 -91
  34. data/site/docs/upgrading/0-to-2/index.html +74 -71
  35. data/site/docs/upgrading/2-to-3/index.html +99 -79
  36. data/site/docs/upgrading/index.html +70 -70
  37. data/site/docs/usage/index.html +95 -80
  38. data/site/docs/variables/index.html +71 -72
  39. data/site/docs/windows/index.html +89 -77
  40. data/site/feed.xml +111 -35
  41. data/site/help/index.html +2 -2
  42. data/site/index.html +3 -8
  43. data/site/latest_version.txt +1 -1
  44. data/site/news/2013/05/05/jekyll-1-0-0-released/index.html +18 -6
  45. data/site/news/2013/05/08/jekyll-1-0-1-released/index.html +18 -6
  46. data/site/news/2013/05/12/jekyll-1-0-2-released/index.html +18 -6
  47. data/site/news/2013/06/07/jekyll-1-0-3-released/index.html +18 -6
  48. data/site/news/2013/07/14/jekyll-1-1-0-released/index.html +18 -6
  49. data/site/news/2013/07/24/jekyll-1-1-1-released/index.html +18 -6
  50. data/site/news/2013/07/25/jekyll-1-0-4-released/index.html +18 -6
  51. data/site/news/2013/07/25/jekyll-1-1-2-released/index.html +18 -6
  52. data/site/news/2013/09/06/jekyll-1-2-0-released/index.html +18 -6
  53. data/site/news/2013/09/14/jekyll-1-2-1-released/index.html +18 -6
  54. data/site/news/2013/10/28/jekyll-1-3-0-rc1-released/index.html +18 -6
  55. data/site/news/2013/11/04/jekyll-1-3-0-released/index.html +18 -6
  56. data/site/news/2013/11/26/jekyll-1-3-1-released/index.html +18 -6
  57. data/site/news/2013/12/07/jekyll-1-4-0-released/index.html +18 -6
  58. data/site/news/2013/12/09/jekyll-1-4-1-released/index.html +18 -6
  59. data/site/news/2013/12/16/jekyll-1-4-2-released/index.html +18 -6
  60. data/site/news/2014/01/13/jekyll-1-4-3-released/index.html +18 -6
  61. data/site/news/2014/03/24/jekyll-1-5-0-released/index.html +18 -6
  62. data/site/news/2014/03/27/jekyll-1-5-1-released/index.html +18 -6
  63. data/site/news/2014/05/06/jekyll-turns-2-0-0/index.html +18 -6
  64. data/site/news/2014/05/08/jekyll-2-0-3-released/index.html +18 -6
  65. data/site/news/2014/06/04/jekyll-stickers-1-dollar-stickermule/index.html +18 -6
  66. data/site/news/2014/06/28/jekyll-turns-21-i-mean-2-1-0/index.html +18 -6
  67. data/site/news/2014/07/01/jekyll-2-1-1-released/index.html +18 -6
  68. data/site/news/2014/07/29/jekyll-2-2-0-released/index.html +18 -6
  69. data/site/news/2014/08/10/jekyll-2-3-0-released/index.html +18 -6
  70. data/site/news/2014/09/09/jekyll-2-4-0-released/index.html +18 -6
  71. data/site/news/2014/11/05/jekylls-midlife-crisis-jekyll-turns-2-5-0/index.html +18 -6
  72. data/site/news/2014/11/09/jekyll-2-5-1-released/index.html +18 -6
  73. data/site/news/2014/11/12/jekyll-2-5-2-released/index.html +18 -6
  74. data/site/news/2014/12/17/alfredxing-welcome-to-jekyll-core/index.html +18 -6
  75. data/site/news/2014/12/22/jekyll-2-5-3-released/index.html +18 -6
  76. data/site/news/2015/01/20/jekyll-meet-and-greet/index.html +18 -6
  77. data/site/news/2015/01/24/jekyll-3-0-0-beta1-released/index.html +18 -6
  78. data/site/news/2015/02/26/introducing-jekyll-talk/index.html +18 -6
  79. data/site/news/2015/10/26/jekyll-3-0-released/index.html +18 -6
  80. data/site/news/2015/11/17/jekyll-3-0-1-released/index.html +18 -6
  81. data/site/news/2016/01/20/jekyll-3-0-2-released/index.html +18 -6
  82. data/site/news/2016/01/24/jekyll-3-1-0-released/index.html +18 -6
  83. data/site/news/2016/01/28/jekyll-3-1-1-released/index.html +18 -6
  84. data/site/news/2016/02/08/jekyll-3-0-3-released/index.html +18 -6
  85. data/site/news/2016/02/19/jekyll-3-1-2-released/index.html +18 -6
  86. data/site/news/2016/03/10/making-it-easier-to-contribute-to-jekyll/index.html +18 -6
  87. data/site/news/2016/04/19/jekyll-3-0-4-released/index.html +18 -6
  88. data/site/news/2016/04/19/jekyll-3-1-3-released/index.html +18 -6
  89. data/site/news/2016/04/26/jekyll-3-0-5-released/index.html +18 -6
  90. data/site/news/2016/05/18/jekyll-3-1-4-released/index.html +18 -6
  91. data/site/news/2016/05/18/jekyll-3-1-5-released/index.html +18 -6
  92. data/site/news/2016/05/19/jekyll-3-1-6-released/index.html +18 -6
  93. data/site/news/2016/06/03/update-on-jekyll-s-google-summer-of-code-projects/index.html +18 -6
  94. data/site/news/2016/07/26/jekyll-3-2-0-released/index.html +19 -7
  95. data/site/news/2016/08/02/jekyll-3-2-1-released/index.html +18 -6
  96. data/site/news/2016/08/24/jekyll-admin-initial-release/index.html +536 -0
  97. data/site/news/2016/10/06/jekyll-3-3-is-here/index.html +615 -0
  98. data/site/news/index.html +172 -7
  99. data/site/news/releases/index.html +135 -7
  100. data/site/sitemap.xml +8 -0
  101. metadata +6 -5
  102. data/site/README.md +0 -16
@@ -4,7 +4,7 @@
4
4
  <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
5
5
  <meta charset="UTF-8">
6
6
  <meta name="viewport" content="width=device-width,initial-scale=1">
7
- <meta name="generator" content="Jekyll v3.2.1">
7
+ <meta name="generator" content="Jekyll v3.3.0">
8
8
  <link type="application/atom+xml" rel="alternate" href="https://jekyllrb.com/feed.xml" title="Jekyll • Simple, blog-aware, static sites">
9
9
  <link rel="alternate" type="application/atom+xml" title="Recent commits to Jekyll’s master branch" href="https://github.com/jekyll/jekyll/commits/master.atom">
10
10
  <link rel="stylesheet" href="//fonts.googleapis.com/css?family=Lato:300,300italic,400,400italic,700,700italic,900">
@@ -19,7 +19,7 @@
19
19
  <meta property="og:url" content="https://jekyllrb.com/docs/posts/">
20
20
  <meta property="og:site_name" content="Jekyll • Simple, blog-aware, static sites">
21
21
  <meta property="og:type" content="article">
22
- <meta property="article:published_time" content="2016-08-02T18:14:35-07:00">
22
+ <meta property="article:published_time" content="2016-10-06T11:16:34-07:00">
23
23
  <meta name="twitter:card" content="summary">
24
24
  <meta name="twitter:site" content="@jekyllrb">
25
25
  <meta name="google-site-verification" content="onQcXpAvtHBrUI5LlroHNE_FP0b2qvFyPq7VZw36iEY">
@@ -28,9 +28,9 @@
28
28
  "@context": "http://schema.org",
29
29
  "@type": "BlogPosting",
30
30
  "headline": "Writing posts",
31
- "datePublished": "2016-08-02T18:14:35-07:00",
31
+ "datePublished": "2016-10-06T11:16:34-07:00",
32
32
  "description": "One of Jekyll’s best aspects is that it is “blog aware”. What does this mean,exactly? Well, simply put, it means that blogging is baked into Jekyll’sfunctionality. If you write articles and publish them online, you can publishand maintain a blog simply by managing a folder of text-files on your computer.Compared to the hassle of configuring and maintaining databases and web-basedCMS systems, this will be a welcome change!",
33
- "logo": "https://jekyllrb.comimg/logo-2x.png",
33
+ "logo": "https://jekyllrb.com/img/logo-2x.png",
34
34
  "url": "https://jekyllrb.com/docs/posts/"
35
35
  }
36
36
  </script>
@@ -114,27 +114,27 @@
114
114
 
115
115
 
116
116
 
117
- <option value="https://jekyllrb.com/docs/home/">Welcome</option>
117
+ <option value="/docs/home/">Welcome</option>
118
118
 
119
119
 
120
120
 
121
- <option value="https://jekyllrb.com/docs/quickstart/">Quick-start guide</option>
121
+ <option value="/docs/quickstart/">Quick-start guide</option>
122
122
 
123
123
 
124
124
 
125
- <option value="https://jekyllrb.com/docs/installation/">Installation</option>
125
+ <option value="/docs/installation/">Installation</option>
126
126
 
127
127
 
128
128
 
129
- <option value="https://jekyllrb.com/docs/usage/">Basic Usage</option>
129
+ <option value="/docs/usage/">Basic Usage</option>
130
130
 
131
131
 
132
132
 
133
- <option value="https://jekyllrb.com/docs/structure/">Directory structure</option>
133
+ <option value="/docs/structure/">Directory structure</option>
134
134
 
135
135
 
136
136
 
137
- <option value="https://jekyllrb.com/docs/configuration/">Configuration</option>
137
+ <option value="/docs/configuration/">Configuration</option>
138
138
 
139
139
 
140
140
  </optgroup>
@@ -143,43 +143,43 @@
143
143
 
144
144
 
145
145
 
146
- <option value="https://jekyllrb.com/docs/frontmatter/">Front Matter</option>
146
+ <option value="/docs/frontmatter/">Front Matter</option>
147
147
 
148
148
 
149
149
 
150
- <option value="https://jekyllrb.com/docs/posts/">Writing posts</option>
150
+ <option value="/docs/posts/">Writing posts</option>
151
151
 
152
152
 
153
153
 
154
- <option value="https://jekyllrb.com/docs/drafts/">Working with drafts</option>
154
+ <option value="/docs/drafts/">Working with drafts</option>
155
155
 
156
156
 
157
157
 
158
- <option value="https://jekyllrb.com/docs/pages/">Creating pages</option>
158
+ <option value="/docs/pages/">Creating pages</option>
159
159
 
160
160
 
161
161
 
162
- <option value="https://jekyllrb.com/docs/static-files/">Static Files</option>
162
+ <option value="/docs/static-files/">Static Files</option>
163
163
 
164
164
 
165
165
 
166
- <option value="https://jekyllrb.com/docs/variables/">Variables</option>
166
+ <option value="/docs/variables/">Variables</option>
167
167
 
168
168
 
169
169
 
170
- <option value="https://jekyllrb.com/docs/collections/">Collections</option>
170
+ <option value="/docs/collections/">Collections</option>
171
171
 
172
172
 
173
173
 
174
- <option value="https://jekyllrb.com/docs/datafiles/">Data Files</option>
174
+ <option value="/docs/datafiles/">Data Files</option>
175
175
 
176
176
 
177
177
 
178
- <option value="https://jekyllrb.com/docs/assets/">Assets</option>
178
+ <option value="/docs/assets/">Assets</option>
179
179
 
180
180
 
181
181
 
182
- <option value="https://jekyllrb.com/docs/migrations/">Blog migrations</option>
182
+ <option value="/docs/migrations/">Blog migrations</option>
183
183
 
184
184
 
185
185
  </optgroup>
@@ -188,27 +188,27 @@
188
188
 
189
189
 
190
190
 
191
- <option value="https://jekyllrb.com/docs/templates/">Templates</option>
191
+ <option value="/docs/templates/">Templates</option>
192
192
 
193
193
 
194
194
 
195
- <option value="https://jekyllrb.com/docs/permalinks/">Permalinks</option>
195
+ <option value="/docs/permalinks/">Permalinks</option>
196
196
 
197
197
 
198
198
 
199
- <option value="https://jekyllrb.com/docs/pagination/">Pagination</option>
199
+ <option value="/docs/pagination/">Pagination</option>
200
200
 
201
201
 
202
202
 
203
- <option value="https://jekyllrb.com/docs/plugins/">Plugins</option>
203
+ <option value="/docs/plugins/">Plugins</option>
204
204
 
205
205
 
206
206
 
207
- <option value="https://jekyllrb.com/docs/themes/">Themes</option>
207
+ <option value="/docs/themes/">Themes</option>
208
208
 
209
209
 
210
210
 
211
- <option value="https://jekyllrb.com/docs/extras/">Extras</option>
211
+ <option value="/docs/extras/">Extras</option>
212
212
 
213
213
 
214
214
  </optgroup>
@@ -217,15 +217,15 @@
217
217
 
218
218
 
219
219
 
220
- <option value="https://jekyllrb.com/docs/github-pages/">GitHub Pages</option>
220
+ <option value="/docs/github-pages/">GitHub Pages</option>
221
221
 
222
222
 
223
223
 
224
- <option value="https://jekyllrb.com/docs/deployment-methods/">Deployment methods</option>
224
+ <option value="/docs/deployment-methods/">Deployment methods</option>
225
225
 
226
226
 
227
227
 
228
- <option value="https://jekyllrb.com/docs/continuous-integration/">Continuous Integration</option>
228
+ <option value="/docs/continuous-integration/">Continuous Integration</option>
229
229
 
230
230
 
231
231
  </optgroup>
@@ -234,23 +234,23 @@
234
234
 
235
235
 
236
236
 
237
- <option value="https://jekyllrb.com/docs/troubleshooting/">Troubleshooting</option>
237
+ <option value="/docs/troubleshooting/">Troubleshooting</option>
238
238
 
239
239
 
240
240
 
241
- <option value="https://jekyllrb.com/docs/sites/">Sites using Jekyll</option>
241
+ <option value="/docs/sites/">Sites using Jekyll</option>
242
242
 
243
243
 
244
244
 
245
- <option value="https://jekyllrb.com/docs/resources/">Resources</option>
245
+ <option value="/docs/resources/">Resources</option>
246
246
 
247
247
 
248
248
 
249
- <option value="https://jekyllrb.com/docs/upgrading/0-to-2/">Upgrading from 0.x to 2.x</option>
249
+ <option value="/docs/upgrading/0-to-2/">Upgrading from 0.x to 2.x</option>
250
250
 
251
251
 
252
252
 
253
- <option value="https://jekyllrb.com/docs/upgrading/2-to-3/">Upgrading from 2.x to 3.x</option>
253
+ <option value="/docs/upgrading/2-to-3/">Upgrading from 2.x to 3.x</option>
254
254
 
255
255
 
256
256
  </optgroup>
@@ -259,15 +259,15 @@
259
259
 
260
260
 
261
261
 
262
- <option value="https://jekyllrb.com/docs/contributing/">Contributing</option>
262
+ <option value="/docs/contributing/">Contributing</option>
263
263
 
264
264
 
265
265
 
266
- <option value="https://jekyllrb.com/docs/conduct/">Code of Conduct</option>
266
+ <option value="/docs/conduct/">Code of Conduct</option>
267
267
 
268
268
 
269
269
 
270
- <option value="https://jekyllrb.com/docs/history/">History</option>
270
+ <option value="/docs/history/">History</option>
271
271
 
272
272
 
273
273
  </optgroup>
@@ -305,14 +305,20 @@ static site.</p>
305
305
  directory. How you name files in this folder is important. Jekyll requires blog
306
306
  post files to be named according to the following format:</p>
307
307
 
308
- <figure class="highlight"><pre><code class="language-shell" data-lang="shell">YEAR-MONTH-DAY-title.MARKUP</code></pre></figure>
308
+ <div class="language-sh highlighter-rouge">
309
+ <pre class="highlight"><code>YEAR-MONTH-DAY-title.MARKUP
310
+ </code></pre>
311
+ </div>
309
312
 
310
313
  <p>Where <code class="highlighter-rouge">YEAR</code> is a four-digit number, <code class="highlighter-rouge">MONTH</code> and <code class="highlighter-rouge">DAY</code> are both two-digit
311
314
  numbers, and <code class="highlighter-rouge">MARKUP</code> is the file extension representing the format used in the
312
315
  file. For example, the following are examples of valid post filenames:</p>
313
316
 
314
- <figure class="highlight"><pre><code class="language-shell" data-lang="shell">2011-12-31-new-years-eve-is-awesome.md
315
- 2012-09-12-how-to-write-a-blog.textile</code></pre></figure>
317
+ <div class="language-sh highlighter-rouge">
318
+ <pre class="highlight"><code>2011-12-31-new-years-eve-is-awesome.md
319
+ 2012-09-12-how-to-write-a-blog.md
320
+ </code></pre>
321
+ </div>
316
322
 
317
323
  <div class="note">
318
324
  <h5>ProTip™: Link to other posts</h5>
@@ -364,12 +370,18 @@ variable in a post.</p>
364
370
 
365
371
  <p>Including an image asset in a post:</p>
366
372
 
367
- <figure class="highlight"><pre><code class="language-text" data-lang="text">... which is shown in the screenshot below:
368
- ![My helpful screenshot]({{ site.url }}/assets/screenshot.jpg)</code></pre></figure>
373
+ <div class="language-text highlighter-rouge">
374
+ <pre class="highlight"><code>... which is shown in the screenshot below:
375
+ ![My helpful screenshot]({{ site.url }}/assets/screenshot.jpg)
376
+ </code></pre>
377
+ </div>
369
378
 
370
379
  <p>Linking to a PDF for readers to download:</p>
371
380
 
372
- <figure class="highlight"><pre><code class="language-text" data-lang="text">... you can [get the PDF]({{ site.url }}/assets/mydoc.pdf) directly.</code></pre></figure>
381
+ <div class="language-text highlighter-rouge">
382
+ <pre class="highlight"><code>... you can [get the PDF]({{ site.url }}/assets/mydoc.pdf) directly.
383
+ </code></pre>
384
+ </div>
373
385
 
374
386
  <div class="note">
375
387
  <h5>ProTip™: Link using just the site root URL</h5>
@@ -389,13 +401,16 @@ you have a list of posts somewhere. Creating an index of posts on another page
389
401
  language</a> and its tags. Here’s a
390
402
  basic example of how to create a list of links to your blog posts:</p>
391
403
 
392
- <figure class="highlight"><pre><code class="language-html" data-lang="html"><span class="nt">&lt;ul&gt;</span>
404
+ <div class="language-html highlighter-rouge">
405
+ <pre class="highlight"><code><span class="nt">&lt;ul&gt;</span>
393
406
  {% for post in site.posts %}
394
407
  <span class="nt">&lt;li&gt;</span>
395
408
  <span class="nt">&lt;a</span> <span class="na">href=</span><span class="s">"{{ post.url }}"</span><span class="nt">&gt;</span>{{ post.title }}<span class="nt">&lt;/a&gt;</span>
396
409
  <span class="nt">&lt;/li&gt;</span>
397
410
  {% endfor %}
398
- <span class="nt">&lt;/ul&gt;</span></code></pre></figure>
411
+ <span class="nt">&lt;/ul&gt;</span>
412
+ </code></pre>
413
+ </div>
399
414
 
400
415
  <p>Of course, you have full control over how (and where) you display your posts,
401
416
  and how you structure your site. You should read more about <a href="../templates/">how templates
@@ -414,33 +429,42 @@ Take the above example of an index of posts. Perhaps you want to include
414
429
  a little hint about the post’s content by adding the first paragraph of each of
415
430
  your posts:</p>
416
431
 
417
- <figure class="highlight"><pre><code class="language-html" data-lang="html"><span class="nt">&lt;ul&gt;</span>
432
+ <div class="language-html highlighter-rouge">
433
+ <pre class="highlight"><code><span class="nt">&lt;ul&gt;</span>
418
434
  {% for post in site.posts %}
419
435
  <span class="nt">&lt;li&gt;</span>
420
436
  <span class="nt">&lt;a</span> <span class="na">href=</span><span class="s">"{{ post.url }}"</span><span class="nt">&gt;</span>{{ post.title }}<span class="nt">&lt;/a&gt;</span>
421
437
  {{ post.excerpt }}
422
438
  <span class="nt">&lt;/li&gt;</span>
423
439
  {% endfor %}
424
- <span class="nt">&lt;/ul&gt;</span></code></pre></figure>
440
+ <span class="nt">&lt;/ul&gt;</span>
441
+ </code></pre>
442
+ </div>
425
443
 
426
444
  <p>Because Jekyll grabs the first paragraph you will not need to wrap the excerpt
427
445
  in <code class="highlighter-rouge">p</code> tags, which is already done for you. These tags can be removed with the
428
446
  following if you’d prefer:</p>
429
447
 
430
- <figure class="highlight"><pre><code class="language-html" data-lang="html">{{ post.excerpt | remove: '<span class="nt">&lt;p&gt;</span>' | remove: '<span class="nt">&lt;/p&gt;</span>' }}</code></pre></figure>
448
+ <div class="language-html highlighter-rouge">
449
+ <pre class="highlight"><code>{{ post.excerpt | remove: '<span class="nt">&lt;p&gt;</span>' | remove: '<span class="nt">&lt;/p&gt;</span>' }}
450
+ </code></pre>
451
+ </div>
431
452
 
432
453
  <p>If you don’t like the automatically-generated post excerpt, it can be
433
454
  explicitly overridden by adding an <code class="highlighter-rouge">excerpt</code> value to your post’s YAML
434
455
  Front Matter. Alternatively, you can choose to define a custom
435
456
  <code class="highlighter-rouge">excerpt_separator</code> in the post’s YAML front matter:</p>
436
457
 
437
- <figure class="highlight"><pre><code class="language-text" data-lang="text">---
458
+ <div class="language-text highlighter-rouge">
459
+ <pre class="highlight"><code>---
438
460
  excerpt_separator: &lt;!--more--&gt;
439
461
  ---
440
462
 
441
463
  Excerpt
442
464
  &lt;!--more--&gt;
443
- Out-of-excerpt</code></pre></figure>
465
+ Out-of-excerpt
466
+ </code></pre>
467
+ </div>
444
468
 
445
469
  <p>You can also set the <code class="highlighter-rouge">excerpt_separator</code> globally in your <code class="highlighter-rouge">_config.yml</code>
446
470
  configuration file.</p>
@@ -459,7 +483,8 @@ html tags along with the content is not desirable.</p>
459
483
  either Pygments or Rouge, and including a code snippet in any post is easy.
460
484
  Just use the dedicated Liquid tag as follows:</p>
461
485
 
462
- <figure class="highlight"><pre><code class="language-text" data-lang="text">{% highlight ruby %}
486
+ <div class="language-text highlighter-rouge">
487
+ <pre class="highlight"><code>{% highlight ruby %}
463
488
  def show
464
489
  @widget = Widget(params[:id])
465
490
  respond_to do |format|
@@ -467,17 +492,22 @@ def show
467
492
  format.json { render json: @widget }
468
493
  end
469
494
  end
470
- {% endhighlight %}</code></pre></figure>
495
+ {% endhighlight %}
496
+ </code></pre>
497
+ </div>
471
498
 
472
499
  <p>And the output will look like this:</p>
473
500
 
474
- <figure class="highlight"><pre><code class="language-ruby" data-lang="ruby"><span class="k">def</span> <span class="nf">show</span>
501
+ <div class="language-ruby highlighter-rouge">
502
+ <pre class="highlight"><code><span class="k">def</span> <span class="nf">show</span>
475
503
  <span class="vi">@widget</span> <span class="o">=</span> <span class="no">Widget</span><span class="p">(</span><span class="n">params</span><span class="p">[</span><span class="ss">:id</span><span class="p">])</span>
476
504
  <span class="n">respond_to</span> <span class="k">do</span> <span class="o">|</span><span class="nb">format</span><span class="o">|</span>
477
505
  <span class="nb">format</span><span class="p">.</span><span class="nf">html</span> <span class="c1"># show.html.erb</span>
478
506
  <span class="nb">format</span><span class="p">.</span><span class="nf">json</span> <span class="p">{</span> <span class="n">render</span> <span class="ss">json: </span><span class="vi">@widget</span> <span class="p">}</span>
479
507
  <span class="k">end</span>
480
- <span class="k">end</span></code></pre></figure>
508
+ <span class="k">end</span>
509
+ </code></pre>
510
+ </div>
481
511
 
482
512
  <div class="note">
483
513
  <h5>ProTip™: Show line numbers</h5>
@@ -552,27 +582,27 @@ site.</p>
552
582
 
553
583
 
554
584
 
555
- <li class=""><a href="https://jekyllrb.com/docs/home/">Welcome</a></li>
585
+ <li class=""><a href="/docs/home/">Welcome</a></li>
556
586
 
557
587
 
558
588
 
559
- <li class=""><a href="https://jekyllrb.com/docs/quickstart/">Quick-start guide</a></li>
589
+ <li class=""><a href="/docs/quickstart/">Quick-start guide</a></li>
560
590
 
561
591
 
562
592
 
563
- <li class=""><a href="https://jekyllrb.com/docs/installation/">Installation</a></li>
593
+ <li class=""><a href="/docs/installation/">Installation</a></li>
564
594
 
565
595
 
566
596
 
567
- <li class=""><a href="https://jekyllrb.com/docs/usage/">Basic Usage</a></li>
597
+ <li class=""><a href="/docs/usage/">Basic Usage</a></li>
568
598
 
569
599
 
570
600
 
571
- <li class=""><a href="https://jekyllrb.com/docs/structure/">Directory structure</a></li>
601
+ <li class=""><a href="/docs/structure/">Directory structure</a></li>
572
602
 
573
603
 
574
604
 
575
- <li class=""><a href="https://jekyllrb.com/docs/configuration/">Configuration</a></li>
605
+ <li class=""><a href="/docs/configuration/">Configuration</a></li>
576
606
 
577
607
  </ul>
578
608
 
@@ -582,43 +612,43 @@ site.</p>
582
612
 
583
613
 
584
614
 
585
- <li class=""><a href="https://jekyllrb.com/docs/frontmatter/">Front Matter</a></li>
615
+ <li class=""><a href="/docs/frontmatter/">Front Matter</a></li>
586
616
 
587
617
 
588
618
 
589
- <li class="current"><a href="https://jekyllrb.com/docs/posts/">Writing posts</a></li>
619
+ <li class="current"><a href="/docs/posts/">Writing posts</a></li>
590
620
 
591
621
 
592
622
 
593
- <li class=""><a href="https://jekyllrb.com/docs/drafts/">Working with drafts</a></li>
623
+ <li class=""><a href="/docs/drafts/">Working with drafts</a></li>
594
624
 
595
625
 
596
626
 
597
- <li class=""><a href="https://jekyllrb.com/docs/pages/">Creating pages</a></li>
627
+ <li class=""><a href="/docs/pages/">Creating pages</a></li>
598
628
 
599
629
 
600
630
 
601
- <li class=""><a href="https://jekyllrb.com/docs/static-files/">Static Files</a></li>
631
+ <li class=""><a href="/docs/static-files/">Static Files</a></li>
602
632
 
603
633
 
604
634
 
605
- <li class=""><a href="https://jekyllrb.com/docs/variables/">Variables</a></li>
635
+ <li class=""><a href="/docs/variables/">Variables</a></li>
606
636
 
607
637
 
608
638
 
609
- <li class=""><a href="https://jekyllrb.com/docs/collections/">Collections</a></li>
639
+ <li class=""><a href="/docs/collections/">Collections</a></li>
610
640
 
611
641
 
612
642
 
613
- <li class=""><a href="https://jekyllrb.com/docs/datafiles/">Data Files</a></li>
643
+ <li class=""><a href="/docs/datafiles/">Data Files</a></li>
614
644
 
615
645
 
616
646
 
617
- <li class=""><a href="https://jekyllrb.com/docs/assets/">Assets</a></li>
647
+ <li class=""><a href="/docs/assets/">Assets</a></li>
618
648
 
619
649
 
620
650
 
621
- <li class=""><a href="https://jekyllrb.com/docs/migrations/">Blog migrations</a></li>
651
+ <li class=""><a href="/docs/migrations/">Blog migrations</a></li>
622
652
 
623
653
  </ul>
624
654
 
@@ -628,27 +658,27 @@ site.</p>
628
658
 
629
659
 
630
660
 
631
- <li class=""><a href="https://jekyllrb.com/docs/templates/">Templates</a></li>
661
+ <li class=""><a href="/docs/templates/">Templates</a></li>
632
662
 
633
663
 
634
664
 
635
- <li class=""><a href="https://jekyllrb.com/docs/permalinks/">Permalinks</a></li>
665
+ <li class=""><a href="/docs/permalinks/">Permalinks</a></li>
636
666
 
637
667
 
638
668
 
639
- <li class=""><a href="https://jekyllrb.com/docs/pagination/">Pagination</a></li>
669
+ <li class=""><a href="/docs/pagination/">Pagination</a></li>
640
670
 
641
671
 
642
672
 
643
- <li class=""><a href="https://jekyllrb.com/docs/plugins/">Plugins</a></li>
673
+ <li class=""><a href="/docs/plugins/">Plugins</a></li>
644
674
 
645
675
 
646
676
 
647
- <li class=""><a href="https://jekyllrb.com/docs/themes/">Themes</a></li>
677
+ <li class=""><a href="/docs/themes/">Themes</a></li>
648
678
 
649
679
 
650
680
 
651
- <li class=""><a href="https://jekyllrb.com/docs/extras/">Extras</a></li>
681
+ <li class=""><a href="/docs/extras/">Extras</a></li>
652
682
 
653
683
  </ul>
654
684
 
@@ -658,15 +688,15 @@ site.</p>
658
688
 
659
689
 
660
690
 
661
- <li class=""><a href="https://jekyllrb.com/docs/github-pages/">GitHub Pages</a></li>
691
+ <li class=""><a href="/docs/github-pages/">GitHub Pages</a></li>
662
692
 
663
693
 
664
694
 
665
- <li class=""><a href="https://jekyllrb.com/docs/deployment-methods/">Deployment methods</a></li>
695
+ <li class=""><a href="/docs/deployment-methods/">Deployment methods</a></li>
666
696
 
667
697
 
668
698
 
669
- <li class=""><a href="https://jekyllrb.com/docs/continuous-integration/">Continuous Integration</a></li>
699
+ <li class=""><a href="/docs/continuous-integration/">Continuous Integration</a></li>
670
700
 
671
701
  </ul>
672
702
 
@@ -676,23 +706,23 @@ site.</p>
676
706
 
677
707
 
678
708
 
679
- <li class=""><a href="https://jekyllrb.com/docs/troubleshooting/">Troubleshooting</a></li>
709
+ <li class=""><a href="/docs/troubleshooting/">Troubleshooting</a></li>
680
710
 
681
711
 
682
712
 
683
- <li class=""><a href="https://jekyllrb.com/docs/sites/">Sites using Jekyll</a></li>
713
+ <li class=""><a href="/docs/sites/">Sites using Jekyll</a></li>
684
714
 
685
715
 
686
716
 
687
- <li class=""><a href="https://jekyllrb.com/docs/resources/">Resources</a></li>
717
+ <li class=""><a href="/docs/resources/">Resources</a></li>
688
718
 
689
719
 
690
720
 
691
- <li class=""><a href="https://jekyllrb.com/docs/upgrading/0-to-2/">Upgrading from 0.x to 2.x</a></li>
721
+ <li class=""><a href="/docs/upgrading/0-to-2/">Upgrading from 0.x to 2.x</a></li>
692
722
 
693
723
 
694
724
 
695
- <li class=""><a href="https://jekyllrb.com/docs/upgrading/2-to-3/">Upgrading from 2.x to 3.x</a></li>
725
+ <li class=""><a href="/docs/upgrading/2-to-3/">Upgrading from 2.x to 3.x</a></li>
696
726
 
697
727
  </ul>
698
728
 
@@ -702,15 +732,15 @@ site.</p>
702
732
 
703
733
 
704
734
 
705
- <li class=""><a href="https://jekyllrb.com/docs/contributing/">Contributing</a></li>
735
+ <li class=""><a href="/docs/contributing/">Contributing</a></li>
706
736
 
707
737
 
708
738
 
709
- <li class=""><a href="https://jekyllrb.com/docs/conduct/">Code of Conduct</a></li>
739
+ <li class=""><a href="/docs/conduct/">Code of Conduct</a></li>
710
740
 
711
741
 
712
742
 
713
- <li class=""><a href="https://jekyllrb.com/docs/history/">History</a></li>
743
+ <li class=""><a href="/docs/history/">History</a></li>
714
744
 
715
745
  </ul>
716
746