Skip to content

Commit

Permalink
Add hints on using CDNs in docs and README
Browse files Browse the repository at this point in the history
  • Loading branch information
fatso83 committed Aug 8, 2017
1 parent 3ad5e05 commit b376dcf
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Expand Up @@ -13,7 +13,7 @@ via [npm](https://github.com/npm/npm)

$ npm install sinon

or via sinon's browser builds available for download on the [homepage](http://sinonjs.org/releases/).
or via sinon's browser builds available for download on the [homepage](http://sinonjs.org/releases/). There are also [NPM based CDNs]((http://sinonjs.org/releases#npm-cdns) one can use.

## Usage

Expand Down
20 changes: 20 additions & 0 deletions docs/releases.html
Expand Up @@ -11,6 +11,7 @@

<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">
Expand All @@ -32,3 +33,22 @@ <h1>Releases</h1>
{% 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 adressing 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>

0 comments on commit b376dcf

Please sign in to comment.