diff --git a/_vendors.yml b/_vendors.yml index de690b0..556fb00 100644 --- a/_vendors.yml +++ b/_vendors.yml @@ -172,8 +172,6 @@ canvas_ribbon: name: ribbon.js version: 1.0.2 file: dist/ribbon.min.js - unavailable: - - cdnjs integrity: sha256-UkSSapoJqxvq+8bSCIrAhXO+aOMBRmkK6vxjTstemLs= creative_commons: name: '@creativecommons/vocabulary' diff --git a/scripts/events/lib/utils.js b/scripts/events/lib/utils.js index dc4a827..3fdd110 100644 --- a/scripts/events/lib/utils.js +++ b/scripts/events/lib/utils.js @@ -75,7 +75,7 @@ const points = { ] }; -// Required by theme-next-docs +// Required by theme-next-docs and @next-theme/plugins module.exports = { resolve, highlightTheme, diff --git a/scripts/events/lib/vendors.js b/scripts/events/lib/vendors.js index 8f5e591..e727bad 100644 --- a/scripts/events/lib/vendors.js +++ b/scripts/events/lib/vendors.js @@ -34,7 +34,7 @@ module.exports = hexo => { if (key === 'pace_css') { value.file = `${value.dir}/${pace.color}/pace-theme-${pace.theme}.css`; } - const { name, file, unavailable } = value; + const { name, file } = value; const links = getVendors({ ...value, minified: file, @@ -42,7 +42,6 @@ module.exports = hexo => { custom : vendors.custom_cdn_url }); let { plugins = 'jsdelivr' } = vendors; - if (plugins === 'cdnjs' && unavailable && unavailable.includes('cdnjs')) plugins = 'jsdelivr'; if (plugins === 'local' && typeof internal === 'undefined') plugins = 'jsdelivr'; vendors[key] = { url : links[plugins] || links.jsdelivr,