diff --git a/core/constants.js b/core/constants.js index 5e582212..014aa5c6 100644 --- a/core/constants.js +++ b/core/constants.js @@ -278,6 +278,7 @@ const Regex = { 'INTERNAL_RESOURCES': /resources\/[0-9a-z.-]+\/((?:\d{1,2}\.){1,3}\d{1,2})?.*\.(css|jsm)/, 'ISO_DATE': /((2\d)\d{2})-(0[1-9]|1[012])-(0[1-9]|[12]\d|3[01])/, 'HEX_COLOR': /#([A-Fa-f0-9]{6}|[A-Fa-f0-9]{3})/, + 'DOCSIFY': /docsify@(?:\d{1,2}\.){0,3}\d{1,2}(?:-\d)?$/, }; const MaterialIcons = { diff --git a/core/mappings.js b/core/mappings.js index 3546ae29..a1f6ce4b 100644 --- a/core/mappings.js +++ b/core/mappings.js @@ -637,7 +637,6 @@ mappings.cdn = { 'docsify-themeable@{version}/dist/css/theme-defaults.css': resources.docsifyThemeDefault, 'docsify-themeable@{version}/dist/css/theme-simple.css': resources.docsifyThemeSimple, 'docsify-themeable@{version}/dist/css/theme-simple-dark.css': resources.docsifyThemeSimpleDark, - 'docsify@{version}': resources.docsify, 'ethjs@{version}/dist/ethjs.': resources.ethJs, 'exif-js@{version}/exif.': resources.exifJS, 'flv.js/dist/flv.min.js': resources.flvJS, diff --git a/core/shorthands.js b/core/shorthands.js index f80e1271..f9b242f3 100644 --- a/core/shorthands.js +++ b/core/shorthands.js @@ -288,6 +288,15 @@ shorthands.specialFiles = function (channelHost, channelPath, searchString) { 'path': `resources/aos/${lastVersion}/${file}`, 'bundle': '' }; + } else if (Regex.DOCSIFY.test(channelPath)) { + lastVersion = targets.setLastVersion('/docsify/'); + return { + 'source': channelHost, + 'versionDelivered': lastVersion, + 'versionRequested': channelPath.split('@')[1], + 'path': `resources/docsify/${lastVersion}/docsify.min.jsm`, + 'bundle': '' + }; } return { 'result': false, diff --git a/pages/updates/updates.html b/pages/updates/updates.html index ffa70d91..5aa098b4 100644 --- a/pages/updates/updates.html +++ b/pages/updates/updates.html @@ -86,6 +86,10 @@
  • Support wildcard TLD in all lists (#1622)
  • Fixed incorrect description in the settings (#1622)
  • +

    Fixed

    +

    2023-02-29 (v2.6.64)

    Updated