1
0
mirror of synced 2024-11-22 21:16:10 +03:00

Switched index to use Jekyll's code highlighting

We previously used Google's Prettify, which worked on the client side.
Now that we are actually using Jekyll, and it has built-in syntax
highlighting, we might as well change to doing highlighting on the
backend.
This commit is contained in:
Kevin Brown 2016-01-28 11:54:24 -05:00
parent ff9486bbd2
commit 54441e6a22

View File

@ -32,7 +32,6 @@ slug: home
<hr class="half-rule"> <hr class="half-rule">
<div class="s2-docs-featurette"> <div class="s2-docs-featurette">
<div class="row"> <div class="row">
<div class="col-sm-4"> <div class="col-sm-4">
@ -124,10 +123,10 @@ slug: home
section of your HTML. section of your HTML.
</p> </p>
<pre class="code prettyprint"> {% highlight html %}
&lt;link href="https://cdnjs.cloudflare.com/ajax/libs/select2/4.0.1/css/select2.min.css" rel="stylesheet" /&gt; <link href="https://cdnjs.cloudflare.com/ajax/libs/select2/4.0.1/css/select2.min.css" rel="stylesheet" />
&lt;script src="https://cdnjs.cloudflare.com/ajax/libs/select2/4.0.1/js/select2.min.js"&gt;&lt;/script&gt; <script src="https://cdnjs.cloudflare.com/ajax/libs/select2/4.0.1/js/select2.min.js"></script>
</pre> {% endhighlight %}
<div class="alert alert-info"> <div class="alert alert-info">
<i class="fa fa-info-circle"></i> <i class="fa fa-info-circle"></i>
@ -141,11 +140,11 @@ slug: home
want to make awesome. want to make awesome.
</p> </p>
<pre class="code prettyprint"> {% highlight html %}
&lt;script type="text/javascript"&gt; <script type="text/javascript">
$('select').select2(); $('select').select2();
&lt;/script&gt; </script>
</pre> {% endhighlight %}
</li> </li>
<li> <li>
@ -178,10 +177,10 @@ slug: home
section of your HTML. section of your HTML.
</p> </p>
<pre class="code prettyprint"> {% highlight html %}
&lt;link href="path/to/select2.min.css" rel="stylesheet" /&gt; <link href="path/to/select2.min.css" rel="stylesheet" />
&lt;script src="path/to/select2.min.js"&gt;&lt;/script&gt; <script src="path/to/select2.min.js"></script>
</pre> {% endhighlight %}
</li> </li>
<li> <li>