Skip to content

Commit

Permalink
Merge pull request #4473 from mermaid-js/sidv/addPlausible
Browse files Browse the repository at this point in the history
Add Plausible analytics
  • Loading branch information
sidharthv96 committed Jun 9, 2023
2 parents dad9e94 + 88bda42 commit 40f517d
Show file tree
Hide file tree
Showing 3 changed files with 76 additions and 11 deletions.
13 changes: 12 additions & 1 deletion packages/mermaid/src/docs/.vitepress/config.ts
Expand Up @@ -16,7 +16,18 @@ export default defineConfig({
description: 'Create diagrams and visualizations using text and code.',
base: '/',
markdown: allMarkdownTransformers,
head: [['link', { rel: 'icon', type: 'image/x-icon', href: '/favicon.ico' }]],
head: [
['link', { rel: 'icon', type: 'image/x-icon', href: '/favicon.ico' }],
[
'script',
{
defer: 'true',
'data-domain': 'mermaid.js.org',
// All tracked stats are public and available at https://p.mermaid.live/mermaid.js.org
src: 'https://p.mermaid.live/js/script.js',
},
],
],
themeConfig: {
nav: nav(),
editLink: {
Expand Down
1 change: 1 addition & 0 deletions packages/mermaid/src/docs/.vitepress/theme/index.ts
Expand Up @@ -9,6 +9,7 @@ import HomePage from '../components/HomePage.vue';
import { getRedirect } from './redirect.js';

import { h } from 'vue';

import Theme from 'vitepress/theme';
import '../style/main.css';
import 'uno.css';
Expand Down
73 changes: 63 additions & 10 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 40f517d

Please sign in to comment.