Use script instead of npm package.

This commit is contained in:
Sidharth Vinod
2023-06-10 01:37:39 +05:30
parent 9b6f2ecf42
commit 88bda42e74
4 changed files with 15 additions and 20 deletions

View File

@@ -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: {

View File

@@ -9,12 +9,6 @@ import HomePage from '../components/HomePage.vue';
import { getRedirect } from './redirect.js';
import { h } from 'vue';
import Plausible from 'plausible-tracker';
// All tracked stats are public and available at https://p.mermaid.live/mermaid.js.org
const { enableAutoPageviews } = Plausible({
apiHost: 'https://p.mermaid.live',
});
enableAutoPageviews();
import Theme from 'vitepress/theme';
import '../style/main.css';

View File

@@ -16,7 +16,6 @@
"dependencies": {
"@vueuse/core": "^10.1.0",
"jiti": "^1.18.2",
"plausible-tracker": "^0.3.8",
"vue": "^3.2.47"
},
"devDependencies": {