Skip to content

Commit

Permalink
Update installation methods in index.md (#13)
Browse files Browse the repository at this point in the history
  • Loading branch information
DenverCoder1 committed Feb 10, 2023
1 parent 34c24e6 commit 43971c9
Showing 1 changed file with 12 additions and 3 deletions.
15 changes: 12 additions & 3 deletions docs/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ Setup is trivially easy. A little bit of markup...
</div>
```

If you are using a module bundler like Webpack or Browserify...
**Option 1:** If you are using a module bundler like Webpack or Browserify...

```
yarn add siemano
Expand All @@ -41,10 +41,19 @@ import Siema from "siemano";
new Siema();
```

...or manually inject the minified script into your website.
**Option 2:** Install from a CDN such as [jsDelivr](https://www.jsdelivr.com/package/npm/siemano)...

```html
<script src="siema.min.js"></script>
<script src="https://cdn.jsdelivr.net/gh/DenverCoderOne/siemano@1.6.0/dist/siema.min.js" type="text/javascript"></script>
<script>
new Siema();
</script>
```

**Option 3:** Manually inject the minified script into your website...

```html
<script src="siema.min.js" type="text/javascript"></script>
<script>
new Siema();
</script>
Expand Down

0 comments on commit 43971c9

Please sign in to comment.