Add docsify themes (#1623)

This commit is contained in:
nobody 2024-03-17 10:48:01 +01:00
parent 0e0bd4172e
commit 16aed7ebc0
No known key found for this signature in database
GPG Key ID: 8F6DE3D614FCFD7A
9 changed files with 32 additions and 0 deletions

View File

@ -333,6 +333,11 @@ 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

@ -288,6 +288,19 @@ 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();
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}`,
'bundle': ''
};
}
return {
'result': false,

View File

@ -514,6 +514,11 @@ 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

@ -30,6 +30,10 @@
<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>
<ul>
<li>docsify themes (<a href="https://codeberg.org/nobody/LocalCDN/issues/1623">#1623</a>)</li>
</ul>
</div>
<div id="generator-section">
<div class="topic-label">

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