Compare commits

...

2 Commits

Author SHA1 Message Date
nobody 354e519ae9
Error in docsify themes request fixed (#1623) 2024-03-18 17:46:33 +01:00
nobody e04d7e4d1d
Revert "Add docsify themes (#1623)" 2024-03-18 16:59:57 +01:00
11 changed files with 5 additions and 24 deletions

View File

@ -333,11 +333,6 @@ https://cdnjs.cloudflare.com/ajax/libs/dexie/3.2.6/dexie.min.js
https://cdnjs.cloudflare.com/ajax/libs/docsearch.js/2.6.3/docsearch.min.css
https://cdnjs.cloudflare.com/ajax/libs/docsearch.js/2.6.3/docsearch.min.js
https://cdnjs.cloudflare.com/ajax/libs/docsify/4.13.1/docsify.min.js
https://cdnjs.cloudflare.com/ajax/libs/docsify/4.13.1/themes/buble.min.css
https://cdnjs.cloudflare.com/ajax/libs/docsify/4.13.1/themes/dark.min.css
https://cdnjs.cloudflare.com/ajax/libs/docsify/4.13.1/themes/dolphin.min.css
https://cdnjs.cloudflare.com/ajax/libs/docsify/4.13.1/themes/pure.min.css
https://cdnjs.cloudflare.com/ajax/libs/docsify/4.13.1/themes/vue.min.css
https://cdnjs.cloudflare.com/ajax/libs/drawer/3.2.2/css/drawer.min.css
https://cdnjs.cloudflare.com/ajax/libs/drawer/3.2.2/js/drawer.min.js
https://cdnjs.cloudflare.com/ajax/libs/dygraph/1.1.1/dygraph-combined.js

View File

@ -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 = {

View File

@ -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,

View File

@ -288,17 +288,13 @@ shorthands.specialFiles = function (channelHost, channelPath, searchString) {
'path': `resources/aos/${lastVersion}/${file}`,
'bundle': ''
};
} else if (CompleteURL.startsWith('unpkg.com/docsify/lib/themes/')) {
let theme = CompleteURL.split('/').pop();
} else if (Regex.DOCSIFY.test(channelPath)) {
lastVersion = targets.setLastVersion('/docsify/');
if (!theme.includes('.min.')) {
theme = theme.replace('.css', '.min.css');
}
return {
'source': channelHost,
'versionDelivered': lastVersion,
'versionRequested': 'latest',
'path': `resources/docsify/${lastVersion}/themes/${theme}`,
'versionRequested': channelPath.split('@')[1],
'path': `resources/docsify/${lastVersion}/docsify.min.jsm`,
'bundle': ''
};
}

View File

@ -514,11 +514,6 @@ targets.determineResourceName = function (filename) {
};
const ListOfFiles = {
'buble.min.css': 'docsify Theme (buble)',
'dark.min.css': 'docsify Theme (dark)',
'dolphin.min.css': 'docsify Theme (dolphin)',
'pure.min.css': 'docsify Theme (pure)',
'vue.min.css': 'docsify Theme (vue)',
'supabase.min.jsm': 'supabase-js',
'handlebars.min.jsm': 'handlebars.js',
'URI.min.jsm': 'URI.js',

View File

@ -86,7 +86,7 @@
<li>Support wildcard TLD in all lists (<a href="https://codeberg.org/nobody/LocalCDN/issues/1622">#1622</a>)</li>
<li>Fixed incorrect description in the settings (<a href="https://codeberg.org/nobody/LocalCDN/issues/1622">#1622</a>)</li>
</ul>
<p>Added</p>
<p>Fixed</p>
<ul>
<li>docsify themes (<a href="https://codeberg.org/nobody/LocalCDN/issues/1623">#1623</a>)</li>
</ul>

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long