From 3d44eb0f421d5e024dbcfafb38e505c145038be4 Mon Sep 17 00:00:00 2001 From: Steph <35910788+huynhicode@users.noreply.github.com> Date: Wed, 22 May 2024 13:40:49 -0700 Subject: [PATCH 001/154] add blog post confluence plugin --- docs/news/blog.md | 6 ++++++ packages/mermaid/src/docs/news/blog.md | 6 ++++++ 2 files changed, 12 insertions(+) diff --git a/docs/news/blog.md b/docs/news/blog.md index 65fa9246e..06276948a 100644 --- a/docs/news/blog.md +++ b/docs/news/blog.md @@ -6,6 +6,12 @@ # Blog +## [How to Use the official Mermaid Chart for Confluence app](https://www.mermaidchart.com/blog/posts/how-to-use-the-official-mermaid-chart-for-confluence-app/) + +21 May 2024 · 4 mins + +It doesn’t matter if you’re a data enthusiast, software engineer, or visual storyteller; our Confluence app can allow you to embed Mermaid Chart diagrams — and dynamically edit them — within your Confluence pages. + ## [How to Choose the Right Documentation Software](https://www.mermaidchart.com/blog/posts/how-to-choose-the-right-documentation-software/) 7 May 2024 · 5 mins diff --git a/packages/mermaid/src/docs/news/blog.md b/packages/mermaid/src/docs/news/blog.md index 4ada1e05c..e77087102 100644 --- a/packages/mermaid/src/docs/news/blog.md +++ b/packages/mermaid/src/docs/news/blog.md @@ -1,5 +1,11 @@ # Blog +## [How to Use the official Mermaid Chart for Confluence app](https://www.mermaidchart.com/blog/posts/how-to-use-the-official-mermaid-chart-for-confluence-app/) + +21 May 2024 · 4 mins + +It doesn’t matter if you’re a data enthusiast, software engineer, or visual storyteller; our Confluence app can allow you to embed Mermaid Chart diagrams — and dynamically edit them — within your Confluence pages. + ## [How to Choose the Right Documentation Software](https://www.mermaidchart.com/blog/posts/how-to-choose-the-right-documentation-software/) 7 May 2024 · 5 mins From 20b03189df7765034cfb6f1ca809a6b5e0f9ccbb Mon Sep 17 00:00:00 2001 From: Steph <35910788+huynhicode@users.noreply.github.com> Date: Wed, 22 May 2024 13:45:58 -0700 Subject: [PATCH 002/154] fix linting issue --- packages/mermaid/src/diagrams/block/blockDB.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/mermaid/src/diagrams/block/blockDB.ts b/packages/mermaid/src/diagrams/block/blockDB.ts index f401495a5..44b2783f5 100644 --- a/packages/mermaid/src/diagrams/block/blockDB.ts +++ b/packages/mermaid/src/diagrams/block/blockDB.ts @@ -20,7 +20,7 @@ const config = getConfig(); let classes = {} as Record; -const sanitizeText = (txt:string) => common.sanitizeText(txt, config); +const sanitizeText = (txt: string) => common.sanitizeText(txt, config); /** * Called when the parser comes across a (style) class definition @@ -93,7 +93,7 @@ const populateBlockDatabase = (_blockList: Block[] | Block[][], parent: Block): const children = []; for (const block of blockList) { if (block.label) { - block.label = sanitizeText(block.label); + block.label = sanitizeText(block.label); } if (block.type === 'classDef') { addStyleClass(block.id, block.css); From 534a10edea8be7cd11b7dcfc636e721ad506a632 Mon Sep 17 00:00:00 2001 From: steph Date: Wed, 26 Jun 2024 21:24:27 -0700 Subject: [PATCH 003/154] add product hunt badge to homepage --- .../.vitepress/components/ProductHuntBadge.vue | 14 ++++++++++++++ .../mermaid/src/docs/.vitepress/theme/index.ts | 3 +++ 2 files changed, 17 insertions(+) create mode 100644 packages/mermaid/src/docs/.vitepress/components/ProductHuntBadge.vue diff --git a/packages/mermaid/src/docs/.vitepress/components/ProductHuntBadge.vue b/packages/mermaid/src/docs/.vitepress/components/ProductHuntBadge.vue new file mode 100644 index 000000000..b283c644c --- /dev/null +++ b/packages/mermaid/src/docs/.vitepress/components/ProductHuntBadge.vue @@ -0,0 +1,14 @@ + diff --git a/packages/mermaid/src/docs/.vitepress/theme/index.ts b/packages/mermaid/src/docs/.vitepress/theme/index.ts index 3ebb7614a..4fd4d7b66 100644 --- a/packages/mermaid/src/docs/.vitepress/theme/index.ts +++ b/packages/mermaid/src/docs/.vitepress/theme/index.ts @@ -8,6 +8,8 @@ import Contributors from '../components/Contributors.vue'; import HomePage from '../components/HomePage.vue'; // @ts-ignore import TopBar from '../components/TopBar.vue'; +// @ts-ignore +import ProductHuntBadge from '../components/ProductHuntBadge.vue'; import { getRedirect } from './redirect.js'; import { h } from 'vue'; import Theme from 'vitepress/theme'; @@ -21,6 +23,7 @@ export default { return h(Theme.Layout, null, { // Keeping this as comment as it took a lot of time to figure out how to add a component to the top bar. 'home-hero-before': () => h(TopBar), + 'home-hero-info-before': () => h(ProductHuntBadge), 'home-features-after': () => h(HomePage), }); }, From 0691c722c37e79e89139dcd1f390149748c4a012 Mon Sep 17 00:00:00 2001 From: steph Date: Wed, 26 Jun 2024 22:21:49 -0700 Subject: [PATCH 004/154] update product hunt badge on mermaid chart page --- docs/ecosystem/mermaid-chart.md | 2 +- packages/mermaid/src/docs/ecosystem/mermaid-chart.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/ecosystem/mermaid-chart.md b/docs/ecosystem/mermaid-chart.md index f1ca85af0..9b3440a0a 100644 --- a/docs/ecosystem/mermaid-chart.md +++ b/docs/ecosystem/mermaid-chart.md @@ -12,7 +12,7 @@ Try the Ultimate AI, Mermaid, and Visual Diagramming Suite by creating an accoun
-Mermaid Chart - A smarter way to create diagrams | Product Hunt +Mermaid Chart - A smarter way to create diagrams | Product Hunt ## About diff --git a/packages/mermaid/src/docs/ecosystem/mermaid-chart.md b/packages/mermaid/src/docs/ecosystem/mermaid-chart.md index 732b9b68c..049df836e 100644 --- a/packages/mermaid/src/docs/ecosystem/mermaid-chart.md +++ b/packages/mermaid/src/docs/ecosystem/mermaid-chart.md @@ -6,7 +6,7 @@ Try the Ultimate AI, Mermaid, and Visual Diagramming Suite by creating an accoun
-Mermaid Chart - A smarter way to create diagrams | Product Hunt +Mermaid Chart - A smarter way to create diagrams | Product Hunt ## About From 7391b05c43989b9c26200ecb3500b1bc2338e830 Mon Sep 17 00:00:00 2001 From: steph Date: Wed, 26 Jun 2024 22:23:42 -0700 Subject: [PATCH 005/154] add announcement bar to docs and minor styling update --- packages/mermaid/src/docs/.vitepress/components/TopBar.vue | 2 +- packages/mermaid/src/docs/.vitepress/theme/index.ts | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/mermaid/src/docs/.vitepress/components/TopBar.vue b/packages/mermaid/src/docs/.vitepress/components/TopBar.vue index 130d6babc..d8e36ded4 100644 --- a/packages/mermaid/src/docs/.vitepress/components/TopBar.vue +++ b/packages/mermaid/src/docs/.vitepress/components/TopBar.vue @@ -1,6 +1,6 @@