Skip to content

Commit

Permalink
docs: fix imports
Browse files Browse the repository at this point in the history
  • Loading branch information
schoero committed Nov 10, 2023
1 parent 240b533 commit b618fb9
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
10 changes: 6 additions & 4 deletions docs/importing.md
Original file line number Diff line number Diff line change
Expand Up @@ -72,10 +72,12 @@ As PDFKit internally relies on several different built in modules of Node.js, it
PDFKit provides a pre-built bundle that can be used directly in the browser. Similarly SwissQRBill also provides a pre-built bundle. It can be imported from the JSDelivr CDN as follows:

```html
<script
type="text/javascript"
src="https://cdn.jsdelivr.net/npm/swissqrbill@beta/lib/bundle/swissqrbill.js"
></script>
<script type="text/javascript" src="https://cdn.jsdelivr.net/npm/pdfkit@0/js/pdfkit.standalone.js"></script>
<script type="text/javascript" src="https://cdn.jsdelivr.net/npm/[email protected]/+esm"></script>
```

```html
<script type="text/javascript" src="https://cdn.jsdelivr.net/npm/swissqrbill@beta/lib/bundle/swissqrbill.js"></script>
```

The bundle exposes all exports in the global variable `SwissQRBill`.
Expand Down
2 changes: 1 addition & 1 deletion docs/migration-v3-to-v4.md
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ If you previously used the pre built bundle, provided by SwissQRBill, you now ha
<!-- SwissQRBill >= v4 -->
<script type="text/javascript" src="https://cdn.jsdelivr.net/npm/pdfkit@0/js/pdfkit.standalone.js"></script>
<script type="text/javascript" src="https://cdn.jsdelivr.net/npm/[email protected]/+esm"></script>
<script type="text/javascript" src="https://cdn.jsdelivr.net/npm/swissqrbill@beta/lib/pdf/swissqrbill.js"></script>
<script type="text/javascript" src="https://cdn.jsdelivr.net/npm/swissqrbill@beta/lib/bundle/swissqrbill.js"></script>
```

Again, please have a look at the [importing documentation](./importing.md) for more information and examples on how to import the library now.
Expand Down

0 comments on commit b618fb9

Please sign in to comment.