diff --git a/.github/lychee.toml b/.github/lychee.toml index 5070c3d50..b6f8c0cd8 100644 --- a/.github/lychee.toml +++ b/.github/lychee.toml @@ -50,7 +50,8 @@ exclude = [ "https://docs.swimm.io", # Timeout -"https://huehive.co" +"https://huehive.co", +"https://foswiki.org" ] # Exclude all private IPs from checking. diff --git a/packages/mermaid/src/docs/.vitepress/components/TopBar.vue b/packages/mermaid/src/docs/.vitepress/components/TopBar.vue index deb6d451f..4029d47b6 100644 --- a/packages/mermaid/src/docs/.vitepress/components/TopBar.vue +++ b/packages/mermaid/src/docs/.vitepress/components/TopBar.vue @@ -19,15 +19,15 @@ const taglines: Taglines[] = [ const randomTagLines: Taglines[] = [ { - label: 'Customize your layout and design in Mermaid Chart’s whiteboard!', + label: "Customize your layout and design in Mermaid Chart's whiteboard!", url: 'https://www.mermaidchart.com/whiteboard?utm_source=mermaid_js&utm_medium=banner_ad&utm_campaign=whiteboard', }, { - label: 'Customize your layout and design in Mermaid Chart’s visual editor!', + label: "Customize your layout and design in Mermaid Chart's visual editor!", url: 'https://www.mermaidchart.com/whiteboard?utm_source=mermaid_js&utm_medium=banner_ad&utm_campaign=visual_editor', }, { - label: 'Customize your layout and design with Mermaid Chart’s GUI!', + label: "Customize your layout and design with Mermaid Chart's GUI!", url: 'https://www.mermaidchart.com/whiteboard?utm_source=mermaid_js&utm_medium=banner_ad&utm_campaign=gui', }, { @@ -38,26 +38,34 @@ const randomTagLines: Taglines[] = [ const index: Ref = ref(0); const currentBannerSet: Ref = ref(taglines); +const isPaused: Ref = ref(false); onMounted(() => { const newIndex = Math.floor(Math.random() * randomTagLines.length); currentBannerSet.value = [...taglines, randomTagLines[newIndex]]; index.value = Math.floor(Math.random() * currentBannerSet.value.length); setInterval(() => { + if (isPaused.value) { + return; + } index.value = (index.value + 1) % currentBannerSet.value.length; }, 5_000); });