Skip to content

Commit

Permalink
Merge pull request #3873 from mermaid-js/sidv/jsdelivr
Browse files Browse the repository at this point in the history
Switch back to jsdelivr
  • Loading branch information
sidharthv96 committed Dec 2, 2022
2 parents bcbf68b + 1e30e33 commit abc6ee0
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 10 deletions.
4 changes: 2 additions & 2 deletions docs/config/usage.md
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ Example:

```html
<script type="module">
import mermaid from 'https://unpkg.com/mermaid@9/dist/mermaid.esm.min.mjs';
import mermaid from 'https://cdn.jsdelivr.net/npm/mermaid@9/dist/mermaid.esm.min.mjs';
mermaid.initialize({ startOnLoad: true });
</script>
```
Expand All @@ -85,7 +85,7 @@ Example:
B-->D(fa:fa-spinner);
</pre>
<script type="module">
import mermaid from 'https://unpkg.com/mermaid@9/dist/mermaid.esm.min.mjs';
import mermaid from 'https://cdn.jsdelivr.net/npm/mermaid@9/dist/mermaid.esm.min.mjs';
mermaid.initialize({ startOnLoad: true });
</script>
</body>
Expand Down
2 changes: 1 addition & 1 deletion docs/intro/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -267,7 +267,7 @@ To Deploy Mermaid:

```html
<script type="module">
import mermaid from 'https://unpkg.com/mermaid@9/dist/mermaid.esm.min.mjs';
import mermaid from 'https://cdn.jsdelivr.net/npm/mermaid@9/dist/mermaid.esm.min.mjs';
mermaid.initialize({ startOnLoad: true });
</script>
```
Expand Down
6 changes: 3 additions & 3 deletions docs/intro/n00b-gettingStarted.md
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ b. The importing of mermaid library through the `mermaid.esm.js` or `mermaid.esm
```html
<body>
<script type="module">
import mermaid from 'https://unpkg.com/mermaid@9/dist/mermaid.esm.min.mjs';
import mermaid from 'https://cdn.jsdelivr.net/npm/mermaid@9/dist/mermaid.esm.min.mjs';
mermaid.initialize({ startOnLoad: true });
</script>
</body>
Expand All @@ -145,7 +145,7 @@ Rendering in Mermaid is initialized by `mermaid.initialize()` call. You can plac

### Adding external diagrams to mermaid

Please refer to the [Mindmap](./mindmap.md?id=integrating-with-your-librarywebsite) section for more information.
Please refer to the [Mindmap](../syntax/mindmap.md?id=integrating-with-your-librarywebsite) section for more information.

### Working Examples

Expand All @@ -172,7 +172,7 @@ Please refer to the [Mindmap](./mindmap.md?id=integrating-with-your-librarywebsi
</pre>

<script type="module">
import mermaid from 'https://unpkg.com/mermaid@9/dist/mermaid.esm.min.mjs';
import mermaid from 'https://cdn.jsdelivr.net/npm/mermaid@9/dist/mermaid.esm.min.mjs';
mermaid.initialize({ startOnLoad: true });
</script>
</body>
Expand Down
4 changes: 2 additions & 2 deletions docs/syntax/mindmap.md
Original file line number Diff line number Diff line change
Expand Up @@ -260,8 +260,8 @@ Mindmap uses the experimental lazy loading & async rendering features which coul

```html
<script type="module">
import mermaid from 'https://unpkg.com/mermaid@9/dist/mermaid.esm.min.mjs';
import mindmap from 'https://unpkg.com/@mermaid-js/mermaid-mindmap@9/dist/mermaid-mindmap.esm.min.mjs';
import mermaid from 'https://cdn.jsdelivr.net/npm/mermaid@9/dist/mermaid.esm.min.mjs';
import mindmap from 'https://cdn.jsdelivr.net/npm/@mermaid-js/mermaid-mindmap@9/dist/mermaid-mindmap.esm.min.mjs';
await mermaid.registerExternalDiagrams([mindmap]);
</script>
```
Expand Down
2 changes: 1 addition & 1 deletion packages/mermaid/src/docs.mts
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ import flatmap from 'unist-util-flatmap';
const MERMAID_MAJOR_VERSION = (
JSON.parse(readFileSync('../mermaid/package.json', 'utf8')).version as string
).split('.')[0];
const CDN_URL = 'https://unpkg.com'; // https://cdn.jsdelivr.net/npm
const CDN_URL = 'https://cdn.jsdelivr.net/npm'; // 'https://unpkg.com';

const verifyOnly: boolean = process.argv.includes('--verify');
const git: boolean = process.argv.includes('--git');
Expand Down
2 changes: 1 addition & 1 deletion packages/mermaid/src/docs/intro/n00b-gettingStarted.md
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ Rendering in Mermaid is initialized by `mermaid.initialize()` call. You can plac

### Adding external diagrams to mermaid

Please refer to the [Mindmap](./mindmap.md?id=integrating-with-your-librarywebsite) section for more information.
Please refer to the [Mindmap](../syntax/mindmap.md?id=integrating-with-your-librarywebsite) section for more information.

### Working Examples

Expand Down

0 comments on commit abc6ee0

Please sign in to comment.