Skip to content

Commit

Permalink
chore(docs): using jsdelivr insted of unpkg (#838)
Browse files Browse the repository at this point in the history
  • Loading branch information
davidnussio committed Feb 20, 2023
1 parent 9639352 commit 97f3abf
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions docs/README.md
Expand Up @@ -136,15 +136,15 @@ The `options` here is derived from CLI flags.

#### JSON Schema Store

Developers who are using [vscode](https://code.visualstudio.com/) or text editor which supports the JSON Language Server can leverage the [tsup schema store](https://unpkg.com/tsup/schema.json) via CDN. This schema store will provide intellisense capabilities such as completions, validations and descriptions within JSON file configurations like the `tsup.config.json` and `package.json` (tsup) property.
Developers who are using [vscode](https://code.visualstudio.com/) or text editor which supports the JSON Language Server can leverage the [tsup schema store](https://cdn.jsdelivr.net/npm/tsup/schema.json) via CDN. This schema store will provide intellisense capabilities such as completions, validations and descriptions within JSON file configurations like the `tsup.config.json` and `package.json` (tsup) property.

Provide the following configuration in your `.vscode/settings.json` (or global) settings file:

```json
{
"json.schemas": [
{
"url": "https://unpkg.com/tsup/schema.json",
"url": "https://cdn.jsdelivr.net/npm/tsup/schema.json",
"fileMatch": [
"package.json",
"tsup.config.json"
Expand Down
4 changes: 2 additions & 2 deletions docs/index.html
Expand Up @@ -18,7 +18,7 @@
<!-- Stylesheet -->
<link
rel="stylesheet"
href="https://unpkg.com/@egoist/docup@2/dist/docup.min.css"
href="https://cdn.jsdelivr.net/npm/@egoist/docup@2/dist/docup.min.css"
/>
<style>
.logo-dark {
Expand All @@ -36,7 +36,7 @@
</head>
<body>
<script type="module">
import * as docup from 'https://unpkg.com/@egoist/docup@2/dist/docup.min.js'
import * as docup from 'https://cdn.jsdelivr.net/npm/@egoist/docup@2/dist/docup.min.js'
docup.init({
// ..options
navLinks: [
Expand Down

1 comment on commit 97f3abf

@vercel
Copy link

@vercel vercel bot commented on 97f3abf Feb 20, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.