Skip to content

Commit bc8af56

Browse files
miharpclaude
andcommitted
Derive mermaid CDN version from package.json; bump to 11.16.0
The mermaid version was pinned in two places that had to be kept in sync by hand: package.json (a Dependabot tracking shim, since there is no Node build) and a hardcoded CDN import URL in head_end.html, which is the version the site actually loads. Dependabot only edits package.json, so its bump PRs left the CDN URL untouched and the two pins drifted. Make package.json the single source of truth: symlink it into _data/ so Jekyll loads it as site.data.package, and derive the CDN version via Liquid in head_end.html. Future Dependabot bumps now propagate to the live version automatically. Also bumps mermaid 11.15.0 -> 11.16.0, which exercises the new mechanism. Verified with jekyll build: rendered pages import mermaid@11.16.0 and the project sequence diagram renders cleanly. Supersedes #367. Closes #370. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> Signed-off-by: Michael Harp <mike@mikeharp.com>
1 parent c7e9085 commit bc8af56

3 files changed

Lines changed: 3 additions & 2 deletions

File tree

_data/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
../package.json

_includes/jekyll_vitepress/head_end.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
</script>
1313

1414
<script type="module">
15-
import mermaid from 'https://cdn.jsdelivr.net/npm/mermaid@11.15.0/dist/mermaid.esm.min.mjs';
15+
import mermaid from 'https://cdn.jsdelivr.net/npm/mermaid@{{ site.data.package.dependencies.mermaid }}/dist/mermaid.esm.min.mjs';
1616
mermaid.initialize({ startOnLoad: false });
1717

1818
function renderMermaid() {

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,6 @@
22
"name": "openvox-docs",
33
"private": true,
44
"dependencies": {
5-
"mermaid": "11.15.0"
5+
"mermaid": "11.16.0"
66
}
77
}

0 commit comments

Comments
 (0)