Skip to content

Commit 628bb49

Browse files
committed
Fix mermaid distribution
1 parent d3d20ad commit 628bb49

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

docs/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
"start": "astro dev",
88
"prebuild": "npm run generate-agent-factory && npm run build:slides",
99
"build": "astro build",
10-
"build:slides": "mkdir -p public/js && cp node_modules/mermaid/dist/mermaid.esm.min.mjs public/js/ && npx @marp-team/marp-cli slides/index.md --html --allow-local-files -o public/slides/index.html",
10+
"build:slides": "mkdir -p public/js && cp node_modules/mermaid/dist/mermaid.min.js public/js/ && npx @marp-team/marp-cli slides/index.md --html --allow-local-files -o public/slides/index.html",
1111
"preview": "astro preview",
1212
"astro": "astro",
1313
"validate-links": "astro build",

docs/slides/index.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22
marp: true
33
---
44

5-
<script type="module">
6-
import mermaid from '/gh-aw/js/mermaid.esm.min.mjs';
5+
<script src="/gh-aw/js/mermaid.min.js"></script>
6+
<script>
77
mermaid.initialize({ startOnLoad: true });
88
</script>
99

0 commit comments

Comments
 (0)