Skip to content

Commit

Permalink
Merge pull request #18 from josias-r/cdn-docs-update
Browse files Browse the repository at this point in the history
chore(docs): update CDN example #17
  • Loading branch information
josias-r authored Apr 24, 2023
2 parents ea45bc3 + d91a7da commit 4712af8
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,10 +57,12 @@ yarn add boarding.js
npm install boarding.js
```

Or include it using CDN. If you want a specific version, put it as `boarding.js@3.0.1` in the name
Or import directly from a CDN. If you want a specific version, put it as `boarding.js@3.5.2` in the name

```html
<script src="https://unpkg.com/boarding.js/dist/main.js"></script>
<script type="module">
import { Boarding } from "https://unpkg.com/boarding.js/dist/main.js";
</script>
<link rel="stylesheet" href="https://unpkg.com/boarding.js/styles/main.css" />
<!-- optionally include the base theme -->
<link
Expand Down

0 comments on commit 4712af8

Please sign in to comment.