From cd0eae28079658a5ff30e8a8bb6e99b8ae568334 Mon Sep 17 00:00:00 2001 From: Sidharth Vinod Date: Thu, 1 Dec 2022 11:23:50 +0530 Subject: [PATCH 1/2] chore: Switch back from unpkg to jsdelivr --- docs/config/usage.md | 4 ++-- docs/intro/index.md | 2 +- docs/intro/n00b-gettingStarted.md | 4 ++-- docs/syntax/mindmap.md | 4 ++-- packages/mermaid/src/docs.mts | 2 +- 5 files changed, 8 insertions(+), 8 deletions(-) diff --git a/docs/config/usage.md b/docs/config/usage.md index 29273e9b5..476806d8f 100644 --- a/docs/config/usage.md +++ b/docs/config/usage.md @@ -62,7 +62,7 @@ Example: ```html ``` @@ -85,7 +85,7 @@ Example: B-->D(fa:fa-spinner); diff --git a/docs/intro/index.md b/docs/intro/index.md index b8a27acff..5aa068e27 100644 --- a/docs/intro/index.md +++ b/docs/intro/index.md @@ -267,7 +267,7 @@ To Deploy Mermaid: ```html ``` diff --git a/docs/intro/n00b-gettingStarted.md b/docs/intro/n00b-gettingStarted.md index 2f422758e..7354f0181 100644 --- a/docs/intro/n00b-gettingStarted.md +++ b/docs/intro/n00b-gettingStarted.md @@ -128,7 +128,7 @@ b. The importing of mermaid library through the `mermaid.esm.js` or `mermaid.esm ```html @@ -172,7 +172,7 @@ Please refer to the [Mindmap](./mindmap.md?id=integrating-with-your-librarywebsi diff --git a/docs/syntax/mindmap.md b/docs/syntax/mindmap.md index e789646bc..0214a5512 100644 --- a/docs/syntax/mindmap.md +++ b/docs/syntax/mindmap.md @@ -260,8 +260,8 @@ Mindmap uses the experimental lazy loading & async rendering features which coul ```html ``` diff --git a/packages/mermaid/src/docs.mts b/packages/mermaid/src/docs.mts index 846e92212..313d1f2de 100644 --- a/packages/mermaid/src/docs.mts +++ b/packages/mermaid/src/docs.mts @@ -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'); From 1e30e33ad321826f55f2ebdf19db52b7f747cf19 Mon Sep 17 00:00:00 2001 From: Sidharth Vinod Date: Thu, 1 Dec 2022 13:51:50 +0530 Subject: [PATCH 2/2] chore: Fix mindmap link --- docs/intro/n00b-gettingStarted.md | 2 +- packages/mermaid/src/docs/intro/n00b-gettingStarted.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/intro/n00b-gettingStarted.md b/docs/intro/n00b-gettingStarted.md index 7354f0181..2a05a1fdd 100644 --- a/docs/intro/n00b-gettingStarted.md +++ b/docs/intro/n00b-gettingStarted.md @@ -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 diff --git a/packages/mermaid/src/docs/intro/n00b-gettingStarted.md b/packages/mermaid/src/docs/intro/n00b-gettingStarted.md index e17bbffb9..a4dd7662f 100644 --- a/packages/mermaid/src/docs/intro/n00b-gettingStarted.md +++ b/packages/mermaid/src/docs/intro/n00b-gettingStarted.md @@ -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