Skip to content

Commit 415f295

Browse files
update: updated docs site dark and light mode with switch and redesigned search bar using docsify-darklight-theme (#1182)
* theme updated with dark and light mode switch * requested changes made
1 parent 5ea28c4 commit 415f295

File tree

1 file changed

+14
-7
lines changed

1 file changed

+14
-7
lines changed

Diff for: docs/index.html

+14-7
Original file line numberDiff line numberDiff line change
@@ -9,14 +9,20 @@
99
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
1010
<meta name="keywords" content="doc,docs,documentation,gitbook,creator,generator,github,jekyll,github-pages">
1111
<meta name="description" content="A magical documentation generator.">
12+
1213
<meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0">
13-
<link rel="stylesheet" href="//cdn.jsdelivr.net/npm/docsify/lib/themes/vue.css" title="vue">
14+
<link
15+
rel="stylesheet"
16+
href="//cdn.jsdelivr.net/npm/docsify-darklight-theme@3/dist/docsify-style.min.css"
17+
title="docsify-darklight-theme"
18+
type="text/css"
19+
/>
20+
<link rel="stylesheet" href="//cdn.jsdelivr.net/npm/docsify/lib/themes/vue.css" title="vue" disabled>
1421
<link rel="stylesheet" href="//cdn.jsdelivr.net/npm/docsify/lib/themes/dark.css" title="dark" disabled>
1522
<link rel="stylesheet" href="//cdn.jsdelivr.net/npm/docsify/lib/themes/buble.css" title="buble" disabled>
1623
<link rel="stylesheet" href="//cdn.jsdelivr.net/npm/docsify/lib/themes/pure.css" title="pure" disabled>
1724

1825
<script src="//cdn.jsdelivr.net/npm/docsify-plugin-codefund/index.js"></script>
19-
<link rel="stylesheet" href="//cdn.jsdelivr.net/npm/[email protected]/dist/style.css"/>
2026
<style>
2127
nav.app-nav li ul {
2228
min-width: 100px;
@@ -64,10 +70,8 @@
6470
'/': 'Search'
6571
}
6672
},
67-
darkMode: {
68-
light: {
69-
toggleBtnBg: '#42b983'
70-
}
73+
darklightTheme: {
74+
bodyFontSize : '15px',
7175
},
7276
formatUpdated: '{MM}/{DD} {HH}:{mm}',
7377
plugins: [
@@ -103,7 +107,10 @@
103107
<script src="//cdn.jsdelivr.net/npm/prismjs/components/prism-bash.min.js"></script>
104108
<script src="//cdn.jsdelivr.net/npm/prismjs/components/prism-markdown.min.js"></script>
105109
<script src="//cdn.jsdelivr.net/npm/prismjs/components/prism-nginx.min.js"></script>
106-
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/index.js"></script>
110+
<script
111+
src="//cdn.jsdelivr.net/npm/docsify-darklight-theme@3/dist/index.min.js"
112+
type="text/javascript">
113+
</script>
107114
<script>
108115
((window.gitter = {}).chat = {}).options = {
109116
room: 'docsifyjs/Lobby'

0 commit comments

Comments
 (0)