mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-09-23 09:20:03 +02:00
Use script instead of npm package.
This commit is contained in:
@@ -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: {
|
||||
|
@@ -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';
|
||||
|
@@ -16,7 +16,6 @@
|
||||
"dependencies": {
|
||||
"@vueuse/core": "^10.1.0",
|
||||
"jiti": "^1.18.2",
|
||||
"plausible-tracker": "^0.3.8",
|
||||
"vue": "^3.2.47"
|
||||
},
|
||||
"devDependencies": {
|
||||
|
Reference in New Issue
Block a user