From 534a10edea8be7cd11b7dcfc636e721ad506a632 Mon Sep 17 00:00:00 2001 From: steph Date: Wed, 26 Jun 2024 21:24:27 -0700 Subject: [PATCH 1/3] 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 0000000000..b283c644cb --- /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 3ebb7614a1..4fd4d7b66f 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 2/3] 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 f1ca85af0c..9b3440a0a5 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 732b9b68cd..049df836ef 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 3/3] 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 130d6babc2..d8e36ded48 100644 --- a/packages/mermaid/src/docs/.vitepress/components/TopBar.vue +++ b/packages/mermaid/src/docs/.vitepress/components/TopBar.vue @@ -1,6 +1,6 @@