Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use SRI #85

Merged
merged 2 commits into from
Nov 29, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 12 additions & 2 deletions docs/src/content/docs/docs/api/importing.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,24 @@ As Julia Evans describes, in 2024
To use Dusa in your random web page, include the UMD module in a script tag in
the head of your file, for example with unpkg like this:

<!-- https://www.srihash.org/ for updating this when the package bumps -->

```html
<script src="https://unpkg.com/dusa@0.1.6"></script>
<script
src="https://unpkg.com/dusa@0.1.6"
integrity="sha384-dQ1a/faivdqPhpQcxYG+tCkmln6OAQAi5gccaliGtbeOcGFGgXlsLuSKl+h8Jp8r"
crossorigin="anonymous"
></script>
```

or with jsdelivr like this:

```html
<script src="https://cdn.jsdelivr.net/npm/dusa@0.1.6"></script>
<script
src="https://cdn.jsdelivr.net/npm/dusa@0.1.6"
integrity="sha384-rz5oQihX+60VISoW9hKtiHrEU11ydb3dfTN93lQEAIx0XwNOEfR3z3jFaYieGfrp"
crossorigin="anonymous"
></script>
```

This defines the `Dusa` name, which can be used to make new Dusa classes or
Expand Down