forked from sinonjs/sinon
/
releases.html
63 lines (60 loc) · 2.04 KB
/
releases.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
---
layout: default
title: Releases - Sinon.JS
permalink: /releases/index.html
redirect_from:
- /docs
- /docs/
- /download
- /download/
- /releases/download/
---
<div class="head-page">
<h1>Releases</h1>
In addition to our download page, you can also
<a href="#npm-cdns">use a NPM based CDN</a> for your convenience.
</div>
<div class="in-content releases">
<ul>
{% assign sorted_releases = site.releases | sort | reverse %} {% for
release in sorted_releases %} {% assign url_parts = release.url | split:
"/" %} {% comment %} Weird as hell, but .size == 3 means there are 2
elements ... {% endcomment %} {% if url_parts.size == 3 and url_parts[2]
!= "latest" %}
<li>
<p>
<span class="ver">{{ release.release_id }}</span>
<span class="pull-right">
<a
class="btn btn-primary"
href="{{site.baseurl}}/releases/sinon-{{ release.release_id | remove_first: 'v' }}.js"
>Download</a
>
<a
class="btn btn-default"
href="{{site.baseurl}}{{ release.url }}"
>Docs</a
>
</span>
</p>
</li>
{% endif %} {% endfor %}
</ul>
</div>
<div>
<h2 id="npm-cdns">Using NPM based CDNs</h2>
<p>
There are now several CDNs that are backed by NPM, which means that you
can have auto-updated scripts. Examples of such free providers are
<a href="http://jsdelivr.com">jsDelivr</a>,
<a href="https://unpkg.com">UNPKG</a> and
<a href="https://cdnjs.com">cdnjs</a>.
</p>
<p>
Their addressing schemes vary, but an example url such as
<a href="https://cdn.jsdelivr.net/npm/sinon@3/pkg/sinon.js"
>https://cdn.jsdelivr.net/npm/sinon@3/pkg/sinon.js</a
>
would download the latest browser bundle of Sinon 3.
</p>
</div>