Skip to content

Commit

Permalink
Fix echarts cdn url for jsdelivr and cdnjs.
Browse files Browse the repository at this point in the history
  • Loading branch information
jhuix committed Jul 26, 2024
1 parent 937216d commit dc4bea4
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
3 changes: 2 additions & 1 deletion rollup.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,8 @@ if (!isFormatCJS) {
{ src: 'public/*', dest: 'docs' },
{ src: 'demo', dest: 'docs' },
{ src: 'logo.png', dest: 'docs' },
{ src: 'favicon.ico', dest: 'docs' }
{ src: 'favicon.ico', dest: 'docs' },
{ src: 'dist/showdowns.min.*', dest: 'docs/dist' }
]
})
);
Expand Down
4 changes: 3 additions & 1 deletion src/extensions/cdn.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ const cdnSrc = {
cdnjs: {
ABCJS: scheme + 'cdnjs.cloudflare.com/ajax/libs/abcjs/6.4.1/abcjs-basic-min.js',
ABCJSCSS: scheme + 'cdnjs.cloudflare.com/ajax/libs/abcjs/abcjs-audio.css',
echarts: scheme + 'cdnjs.cloudflare.com/ajax/libs/echarts/5.5.0/echarts.min.js',
Viz: scheme + 'cdn.jsdelivr.net/npm/@viz-js/viz@3/lib/viz-standalone.js',
Raphael: scheme + 'cdnjs.cloudflare.com/ajax/libs/raphael/2.3.0/raphael.min.js',
flowchart: scheme + 'cdnjs.cloudflare.com/ajax/libs/flowchart/1.18.0/flowchart.min.js',
Expand All @@ -68,7 +69,8 @@ const cdnSrc = {
},
jsdelivr: {
ABCJS: scheme + 'cdn.jsdelivr.net/npm/abcjs@6/dist/abcjs-basic-min.js',
ABCJSCSS: scheme + 'cdn.jsdelivr.net/npm/abcjs@6/abcjs-audio.css',
ABCJSCSS: scheme + 'cdn.jsdelivr.net/npm/abcjs@6/abcjs-audio.css',
echarts: scheme + 'cdn.jsdelivr.net/npm/echarts@5/dist/echarts.min.js',
Viz: scheme + 'cdn.jsdelivr.net/npm/@viz-js/viz@3/lib/viz-standalone.js',
Raphael: scheme + 'cdn.jsdelivr.net/npm/raphael@2/raphael.min.js',
flowchart: scheme + 'cdnjs.cloudflare.com/ajax/libs/flowchart/1.18.0/flowchart.min.js',
Expand Down

0 comments on commit dc4bea4

Please sign in to comment.