From dbcadc1d0bc1c7ea8ff7b5bb96755ee1123b65f9 Mon Sep 17 00:00:00 2001 From: CNOCTAVE Date: Mon, 13 Oct 2025 13:56:04 +0800 Subject: [PATCH 1/9] add doc to use marmaid.js in GNU Octave --- docs/ecosystem/tutorials.md | 39 +++++++++++++++++++ .../mermaid/src/docs/ecosystem/tutorials.md | 39 +++++++++++++++++++ 2 files changed, 78 insertions(+) diff --git a/docs/ecosystem/tutorials.md b/docs/ecosystem/tutorials.md index 8a6a9e8e2..207ea79f6 100644 --- a/docs/ecosystem/tutorials.md +++ b/docs/ecosystem/tutorials.md @@ -87,3 +87,42 @@ graph LR; ![Example graph of the Python integration](img/python-mermaid-integration.png) + +## GNU Octave Integration with mermaid-js + +Here's an example of GNU Octave integration with mermaid-js which uses the +octave_mermaid_js package to save graph image. + +```python +pkg load octave_mermaid_js +graph = { + "graph LR;" + " A--> B & C & D" + " B--> A & E" + " C--> A & E" + " D--> A & E" + " E--> B & C & D" +} +graph = strjoin(graph, "\n") +[ret, status] = mermaid_js_save(graph, "result.png") +``` + +Here's an example of GNU Octave integration with mermaid-js which uses the +octave_mermaid_js package to show graph image. + +```python +pkg load octave_mermaid_js +graph = { + "graph LR;" + " A--> B & C & D" + " B--> A & E" + " C--> A & E" + " D--> A & E" + " E--> B & C & D" +} +graph = strjoin(graph, "\n") +[ret, status] = mermaid_js_imshow(graph) +``` + +Here's a journal article about octave_mermaid_js. +[octave_mermaid_js: Integrating Mermaid.js Diagram Generation into GNU Octave](https://engrxiv.org/preprint/view/5547) diff --git a/packages/mermaid/src/docs/ecosystem/tutorials.md b/packages/mermaid/src/docs/ecosystem/tutorials.md index 9f0f351a2..d4b92fff5 100644 --- a/packages/mermaid/src/docs/ecosystem/tutorials.md +++ b/packages/mermaid/src/docs/ecosystem/tutorials.md @@ -81,3 +81,42 @@ graph LR; ![Example graph of the Python integration](img/python-mermaid-integration.png) + +## GNU Octave Integration with mermaid-js + +Here's an example of GNU Octave integration with mermaid-js which uses the +octave_mermaid_js package to save graph image. + +```python +pkg load octave_mermaid_js +graph = { + "graph LR;" + " A--> B & C & D" + " B--> A & E" + " C--> A & E" + " D--> A & E" + " E--> B & C & D" +} +graph = strjoin(graph, "\n") +[ret, status] = mermaid_js_save(graph, "result.png") +``` + +Here's an example of GNU Octave integration with mermaid-js which uses the +octave_mermaid_js package to show graph image. + +```python +pkg load octave_mermaid_js +graph = { + "graph LR;" + " A--> B & C & D" + " B--> A & E" + " C--> A & E" + " D--> A & E" + " E--> B & C & D" +} +graph = strjoin(graph, "\n") +[ret, status] = mermaid_js_imshow(graph) +``` + +Here's a journal article about octave_mermaid_js. +[octave_mermaid_js: Integrating Mermaid.js Diagram Generation into GNU Octave](https://engrxiv.org/preprint/view/5547) From 32ac2c689d1df551282601eaf49a965861578cdb Mon Sep 17 00:00:00 2001 From: CNOCTAVE Date: Mon, 13 Oct 2025 15:02:46 +0800 Subject: [PATCH 2/9] add doc to use marmaid.js in GNU Octave --- .changeset/full-clubs-learn.md | 5 +++++ .changeset/true-parrots-build.md | 5 +++++ packages/mermaid/src/docs/ecosystem/tutorials.md | 4 ++-- 3 files changed, 12 insertions(+), 2 deletions(-) create mode 100644 .changeset/full-clubs-learn.md create mode 100644 .changeset/true-parrots-build.md diff --git a/.changeset/full-clubs-learn.md b/.changeset/full-clubs-learn.md new file mode 100644 index 000000000..879d34c80 --- /dev/null +++ b/.changeset/full-clubs-learn.md @@ -0,0 +1,5 @@ +--- +'mermaid': major +--- + +add doc to use marmaid.js in GNU Octave diff --git a/.changeset/true-parrots-build.md b/.changeset/true-parrots-build.md new file mode 100644 index 000000000..64ff97c96 --- /dev/null +++ b/.changeset/true-parrots-build.md @@ -0,0 +1,5 @@ +--- +'mermaid': major +--- + +feat: add doc to use marmaid.js in GNU Octave diff --git a/packages/mermaid/src/docs/ecosystem/tutorials.md b/packages/mermaid/src/docs/ecosystem/tutorials.md index d4b92fff5..abe8f5b63 100644 --- a/packages/mermaid/src/docs/ecosystem/tutorials.md +++ b/packages/mermaid/src/docs/ecosystem/tutorials.md @@ -87,7 +87,7 @@ graph LR; Here's an example of GNU Octave integration with mermaid-js which uses the octave_mermaid_js package to save graph image. -```python +```matlab pkg load octave_mermaid_js graph = { "graph LR;" @@ -104,7 +104,7 @@ graph = strjoin(graph, "\n") Here's an example of GNU Octave integration with mermaid-js which uses the octave_mermaid_js package to show graph image. -```python +```matlab pkg load octave_mermaid_js graph = { "graph LR;" From 34f40f07948245e38b039a9d6198caea4cc678a0 Mon Sep 17 00:00:00 2001 From: CNOCTAVE Date: Mon, 13 Oct 2025 15:11:44 +0800 Subject: [PATCH 3/9] add doc to use marmaid.js in GNU Octave --- .changeset/full-clubs-learn.md | 2 +- docs/ecosystem/tutorials.md | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.changeset/full-clubs-learn.md b/.changeset/full-clubs-learn.md index 879d34c80..64ff97c96 100644 --- a/.changeset/full-clubs-learn.md +++ b/.changeset/full-clubs-learn.md @@ -2,4 +2,4 @@ 'mermaid': major --- -add doc to use marmaid.js in GNU Octave +feat: add doc to use marmaid.js in GNU Octave diff --git a/docs/ecosystem/tutorials.md b/docs/ecosystem/tutorials.md index 207ea79f6..72fd4d238 100644 --- a/docs/ecosystem/tutorials.md +++ b/docs/ecosystem/tutorials.md @@ -93,7 +93,7 @@ graph LR; Here's an example of GNU Octave integration with mermaid-js which uses the octave_mermaid_js package to save graph image. -```python +```matlab pkg load octave_mermaid_js graph = { "graph LR;" @@ -110,7 +110,7 @@ graph = strjoin(graph, "\n") Here's an example of GNU Octave integration with mermaid-js which uses the octave_mermaid_js package to show graph image. -```python +```matlab pkg load octave_mermaid_js graph = { "graph LR;" From 57530076aaaeea3940db8dc851020b8aa353423b Mon Sep 17 00:00:00 2001 From: CNOCTAVE Date: Tue, 4 Nov 2025 20:29:53 +0800 Subject: [PATCH 4/9] add doc to use marmaid.js in GNU Octave add doc to use marmaid.js in GNU Octave. Resolve #7073 --- .changeset/7123.md | 5 +++++ .../mermaid/src/docs/ecosystem/integrations-community.md | 6 ++++++ 2 files changed, 11 insertions(+) create mode 100644 .changeset/7123.md diff --git a/.changeset/7123.md b/.changeset/7123.md new file mode 100644 index 000000000..120650eeb --- /dev/null +++ b/.changeset/7123.md @@ -0,0 +1,5 @@ +--- +'mermaid': patch +--- + +feat: add doc to use marmaid.js in GNU Octave. Resolve #7073 diff --git a/packages/mermaid/src/docs/ecosystem/integrations-community.md b/packages/mermaid/src/docs/ecosystem/integrations-community.md index 59ed935ae..0fc1f6d8e 100644 --- a/packages/mermaid/src/docs/ecosystem/integrations-community.md +++ b/packages/mermaid/src/docs/ecosystem/integrations-community.md @@ -52,6 +52,12 @@ To add an integration to this list, see the [Integrations - create page](./integ - [GitHub Writer](https://github.com/ckeditor/github-writer) - [SVG diagram generator](https://github.com/SimonKenyonShepard/mermaidjs-github-svg-generator) - [GitLab](https://docs.gitlab.com/ee/user/markdown.html#diagrams-and-flowcharts) ✅ +- [GNU Octave](https://octave.org/) ✅ + - [Octave Repo Index](https://gnu-octave.github.io/packages/octave_mermaid_js/) ✅ + - [News](https://github.com/CNOCTAVE/octave_mermaid_js/blob/main/NEWS) ✅ + - [Source Code](https://github.com/CNOCTAVE/octave_mermaid_js) ✅ + - [Function Reference](https://cnoctave.github.io/octave_mermaid_js/index.html) ✅ + - [Bug Tracker](https://github.com/CNOCTAVE/octave_mermaid_js/issues) ✅ - [Mermaid Plugin for JetBrains IDEs](https://plugins.jetbrains.com/plugin/20146-mermaid) - [MonsterWriter](https://www.monsterwriter.com/) ✅ - [Joplin](https://joplinapp.org) ✅ From 38c289818ce6c33c97014448edf509431adfd2f8 Mon Sep 17 00:00:00 2001 From: CNOCTAVE Date: Tue, 4 Nov 2025 20:34:13 +0800 Subject: [PATCH 5/9] feat: add doc to use marmaid.js in GNU Octave feat: add doc to use marmaid.js in GNU Octave. Resolve #7073 --- docs/ecosystem/tutorials.md | 39 ------------------- .../mermaid/src/docs/ecosystem/tutorials.md | 39 ------------------- 2 files changed, 78 deletions(-) diff --git a/docs/ecosystem/tutorials.md b/docs/ecosystem/tutorials.md index 72fd4d238..8a6a9e8e2 100644 --- a/docs/ecosystem/tutorials.md +++ b/docs/ecosystem/tutorials.md @@ -87,42 +87,3 @@ graph LR; ![Example graph of the Python integration](img/python-mermaid-integration.png) - -## GNU Octave Integration with mermaid-js - -Here's an example of GNU Octave integration with mermaid-js which uses the -octave_mermaid_js package to save graph image. - -```matlab -pkg load octave_mermaid_js -graph = { - "graph LR;" - " A--> B & C & D" - " B--> A & E" - " C--> A & E" - " D--> A & E" - " E--> B & C & D" -} -graph = strjoin(graph, "\n") -[ret, status] = mermaid_js_save(graph, "result.png") -``` - -Here's an example of GNU Octave integration with mermaid-js which uses the -octave_mermaid_js package to show graph image. - -```matlab -pkg load octave_mermaid_js -graph = { - "graph LR;" - " A--> B & C & D" - " B--> A & E" - " C--> A & E" - " D--> A & E" - " E--> B & C & D" -} -graph = strjoin(graph, "\n") -[ret, status] = mermaid_js_imshow(graph) -``` - -Here's a journal article about octave_mermaid_js. -[octave_mermaid_js: Integrating Mermaid.js Diagram Generation into GNU Octave](https://engrxiv.org/preprint/view/5547) diff --git a/packages/mermaid/src/docs/ecosystem/tutorials.md b/packages/mermaid/src/docs/ecosystem/tutorials.md index abe8f5b63..9f0f351a2 100644 --- a/packages/mermaid/src/docs/ecosystem/tutorials.md +++ b/packages/mermaid/src/docs/ecosystem/tutorials.md @@ -81,42 +81,3 @@ graph LR; ![Example graph of the Python integration](img/python-mermaid-integration.png) - -## GNU Octave Integration with mermaid-js - -Here's an example of GNU Octave integration with mermaid-js which uses the -octave_mermaid_js package to save graph image. - -```matlab -pkg load octave_mermaid_js -graph = { - "graph LR;" - " A--> B & C & D" - " B--> A & E" - " C--> A & E" - " D--> A & E" - " E--> B & C & D" -} -graph = strjoin(graph, "\n") -[ret, status] = mermaid_js_save(graph, "result.png") -``` - -Here's an example of GNU Octave integration with mermaid-js which uses the -octave_mermaid_js package to show graph image. - -```matlab -pkg load octave_mermaid_js -graph = { - "graph LR;" - " A--> B & C & D" - " B--> A & E" - " C--> A & E" - " D--> A & E" - " E--> B & C & D" -} -graph = strjoin(graph, "\n") -[ret, status] = mermaid_js_imshow(graph) -``` - -Here's a journal article about octave_mermaid_js. -[octave_mermaid_js: Integrating Mermaid.js Diagram Generation into GNU Octave](https://engrxiv.org/preprint/view/5547) From 7b0763f26276cb16a73391092f923bc06b60d42f Mon Sep 17 00:00:00 2001 From: "autofix-ci[bot]" <114827586+autofix-ci[bot]@users.noreply.github.com> Date: Tue, 4 Nov 2025 12:43:03 +0000 Subject: [PATCH 6/9] [autofix.ci] apply automated fixes --- docs/ecosystem/integrations-community.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/docs/ecosystem/integrations-community.md b/docs/ecosystem/integrations-community.md index 33c99a4f3..54622d679 100644 --- a/docs/ecosystem/integrations-community.md +++ b/docs/ecosystem/integrations-community.md @@ -57,6 +57,12 @@ To add an integration to this list, see the [Integrations - create page](./integ - [GitHub Writer](https://github.com/ckeditor/github-writer) - [SVG diagram generator](https://github.com/SimonKenyonShepard/mermaidjs-github-svg-generator) - [GitLab](https://docs.gitlab.com/ee/user/markdown.html#diagrams-and-flowcharts) ✅ +- [GNU Octave](https://octave.org/) ✅ + - [Octave Repo Index](https://gnu-octave.github.io/packages/octave_mermaid_js/) ✅ + - [News](https://github.com/CNOCTAVE/octave_mermaid_js/blob/main/NEWS) ✅ + - [Source Code](https://github.com/CNOCTAVE/octave_mermaid_js) ✅ + - [Function Reference](https://cnoctave.github.io/octave_mermaid_js/index.html) ✅ + - [Bug Tracker](https://github.com/CNOCTAVE/octave_mermaid_js/issues) ✅ - [Mermaid Plugin for JetBrains IDEs](https://plugins.jetbrains.com/plugin/20146-mermaid) - [MonsterWriter](https://www.monsterwriter.com/) ✅ - [Joplin](https://joplinapp.org) ✅ From c0e1662e50c1ac99445dd79476bc43cb2da16db0 Mon Sep 17 00:00:00 2001 From: CNOCTAVE Date: Wed, 5 Nov 2025 01:08:04 +0800 Subject: [PATCH 7/9] Update packages/mermaid/src/docs/ecosystem/integrations-community.md Co-authored-by: Sidharth Vinod --- .../mermaid/src/docs/ecosystem/integrations-community.md | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/packages/mermaid/src/docs/ecosystem/integrations-community.md b/packages/mermaid/src/docs/ecosystem/integrations-community.md index 0fc1f6d8e..9ac390367 100644 --- a/packages/mermaid/src/docs/ecosystem/integrations-community.md +++ b/packages/mermaid/src/docs/ecosystem/integrations-community.md @@ -53,11 +53,7 @@ To add an integration to this list, see the [Integrations - create page](./integ - [SVG diagram generator](https://github.com/SimonKenyonShepard/mermaidjs-github-svg-generator) - [GitLab](https://docs.gitlab.com/ee/user/markdown.html#diagrams-and-flowcharts) ✅ - [GNU Octave](https://octave.org/) ✅ - - [Octave Repo Index](https://gnu-octave.github.io/packages/octave_mermaid_js/) ✅ - - [News](https://github.com/CNOCTAVE/octave_mermaid_js/blob/main/NEWS) ✅ - - [Source Code](https://github.com/CNOCTAVE/octave_mermaid_js) ✅ - - [Function Reference](https://cnoctave.github.io/octave_mermaid_js/index.html) ✅ - - [Bug Tracker](https://github.com/CNOCTAVE/octave_mermaid_js/issues) ✅ + - [octave_mermaid_js](https://github.com/CNOCTAVE/octave_mermaid_js) ✅ - [Mermaid Plugin for JetBrains IDEs](https://plugins.jetbrains.com/plugin/20146-mermaid) - [MonsterWriter](https://www.monsterwriter.com/) ✅ - [Joplin](https://joplinapp.org) ✅ From e4cf266c1d200e210743bb584be433c60fa3fc32 Mon Sep 17 00:00:00 2001 From: CNOCTAVE Date: Wed, 5 Nov 2025 01:12:15 +0800 Subject: [PATCH 8/9] remove changeset remove changeset --- .changeset/7123.md | 5 ----- .changeset/full-clubs-learn.md | 5 ----- .changeset/true-parrots-build.md | 5 ----- 3 files changed, 15 deletions(-) delete mode 100644 .changeset/7123.md delete mode 100644 .changeset/full-clubs-learn.md delete mode 100644 .changeset/true-parrots-build.md diff --git a/.changeset/7123.md b/.changeset/7123.md deleted file mode 100644 index 120650eeb..000000000 --- a/.changeset/7123.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'mermaid': patch ---- - -feat: add doc to use marmaid.js in GNU Octave. Resolve #7073 diff --git a/.changeset/full-clubs-learn.md b/.changeset/full-clubs-learn.md deleted file mode 100644 index 64ff97c96..000000000 --- a/.changeset/full-clubs-learn.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'mermaid': major ---- - -feat: add doc to use marmaid.js in GNU Octave diff --git a/.changeset/true-parrots-build.md b/.changeset/true-parrots-build.md deleted file mode 100644 index 64ff97c96..000000000 --- a/.changeset/true-parrots-build.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'mermaid': major ---- - -feat: add doc to use marmaid.js in GNU Octave From 545801e144873aea2461a0e9ee92242d0b4fd049 Mon Sep 17 00:00:00 2001 From: CNOCTAVE Date: Wed, 5 Nov 2025 01:16:17 +0800 Subject: [PATCH 9/9] Update integrations-community.md --- docs/ecosystem/integrations-community.md | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/docs/ecosystem/integrations-community.md b/docs/ecosystem/integrations-community.md index 54622d679..4cb73eb67 100644 --- a/docs/ecosystem/integrations-community.md +++ b/docs/ecosystem/integrations-community.md @@ -58,11 +58,7 @@ To add an integration to this list, see the [Integrations - create page](./integ - [SVG diagram generator](https://github.com/SimonKenyonShepard/mermaidjs-github-svg-generator) - [GitLab](https://docs.gitlab.com/ee/user/markdown.html#diagrams-and-flowcharts) ✅ - [GNU Octave](https://octave.org/) ✅ - - [Octave Repo Index](https://gnu-octave.github.io/packages/octave_mermaid_js/) ✅ - - [News](https://github.com/CNOCTAVE/octave_mermaid_js/blob/main/NEWS) ✅ - - [Source Code](https://github.com/CNOCTAVE/octave_mermaid_js) ✅ - - [Function Reference](https://cnoctave.github.io/octave_mermaid_js/index.html) ✅ - - [Bug Tracker](https://github.com/CNOCTAVE/octave_mermaid_js/issues) ✅ + - [octave_mermaid_js](https://github.com/CNOCTAVE/octave_mermaid_js) ✅ - [Mermaid Plugin for JetBrains IDEs](https://plugins.jetbrains.com/plugin/20146-mermaid) - [MonsterWriter](https://www.monsterwriter.com/) ✅ - [Joplin](https://joplinapp.org) ✅