Skip to content

Commit 8f9f0e5

Browse files
committed
Prettier format updates (no changes)
1 parent 7297ee5 commit 8f9f0e5

File tree

1 file changed

+109
-101
lines changed

1 file changed

+109
-101
lines changed

Diff for: index.html

+109-101
Original file line numberDiff line numberDiff line change
@@ -1,110 +1,118 @@
11
<!DOCTYPE html>
22
<html lang="en">
3+
<head>
4+
<meta charset="UTF-8" />
5+
<title>docsify</title>
6+
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
7+
<meta name="viewport" content="width=device-width,initial-scale=1" />
8+
<link rel="stylesheet" href="/themes/vue.css" title="vue" />
9+
<link rel="stylesheet" href="/themes/dark.css" title="dark" disabled />
10+
<link rel="stylesheet" href="/themes/buble.css" title="buble" disabled />
11+
<link rel="stylesheet" href="/themes/pure.css" title="pure" disabled />
12+
<script src="//cdn.jsdelivr.net/npm/[email protected]/index.min.js"></script>
13+
<style>
14+
nav.app-nav li ul {
15+
min-width: 100px;
16+
}
317

4-
<head>
5-
<meta charset="UTF-8">
6-
<title>docsify</title>
7-
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
8-
<meta name="viewport" content="width=device-width,initial-scale=1">
9-
<link rel="stylesheet" href="/themes/vue.css" title="vue">
10-
<link rel="stylesheet" href="/themes/dark.css" title="dark" disabled>
11-
<link rel="stylesheet" href="/themes/buble.css" title="buble" disabled>
12-
<link rel="stylesheet" href="/themes/pure.css" title="pure" disabled>
13-
<script src="//cdn.jsdelivr.net/npm/[email protected]/index.min.js"></script>
14-
<style>
15-
nav.app-nav li ul {
16-
min-width: 100px;
17-
}
18+
#carbonads {
19+
box-shadow: none !important;
20+
width: auto !important;
21+
}
22+
</style>
23+
</head>
1824

19-
#carbonads {
20-
box-shadow: none !important;
21-
width: auto !important;
22-
}
23-
</style>
24-
</head>
25+
<body>
26+
<div id="app"></div>
27+
<script>
28+
// Set html "lang" attribute based on URL
29+
var lang = location.hash.match(/#\/(de-de|es|ru-ru|zh-cn)\//);
2530

26-
<body>
27-
<div id="app"></div>
28-
<script>
29-
// Set html "lang" attribute based on URL
30-
var lang = location.hash.match(/#\/(de-de|es|ru-ru|zh-cn)\//);
31+
if (lang) {
32+
document.documentElement.setAttribute('lang', lang[1]);
33+
}
3134

32-
if (lang) {
33-
document.documentElement.setAttribute('lang', lang[1]);
34-
}
35-
36-
// Docsify configuration
37-
window.$docsify = {
38-
alias: {
39-
'.*?/awesome': 'https://raw.githubusercontent.com/docsifyjs/awesome-docsify/master/README.md',
40-
'.*?/changelog': 'https://raw.githubusercontent.com/docsifyjs/docsify/master/CHANGELOG.md',
41-
'/.*/_navbar.md': '/_navbar.md',
42-
'/es/(.*)': 'https://raw.githubusercontent.com/docsifyjs/docs-es/master/$1',
43-
'/de-de/(.*)': 'https://raw.githubusercontent.com/docsifyjs/docs-de/master/$1',
44-
'/ru-ru/(.*)': 'https://raw.githubusercontent.com/docsifyjs/docs-ru/master/$1',
45-
'/zh-cn/(.*)': 'https://cdn.jsdelivr.net/gh/docsifyjs/docs-zh@master/$1'
46-
},
47-
auto2top: true,
48-
basePath: '/docs/',
49-
coverpage: true,
50-
executeScript: true,
51-
loadSidebar: true,
52-
loadNavbar: true,
53-
mergeNavbar: true,
54-
maxLevel: 4,
55-
subMaxLevel: 2,
56-
name: 'docsify',
57-
search: {
58-
noData: {
59-
'/es/': '¡No hay resultados!',
60-
'/de-de/': 'Keine Ergebnisse!',
61-
'/ru-ru/': 'Никаких результатов!',
62-
'/zh-cn/': '没有结果!',
63-
'/': 'No results!'
64-
},
65-
paths: 'auto',
66-
placeholder: {
67-
'/es/': 'Buscar',
68-
'/de-de/': 'Suche',
69-
'/ru-ru/': 'Поиск',
70-
'/zh-cn/': '搜索',
71-
'/': 'Search'
35+
// Docsify configuration
36+
window.$docsify = {
37+
alias: {
38+
'.*?/awesome':
39+
'https://raw.githubusercontent.com/docsifyjs/awesome-docsify/master/README.md',
40+
'.*?/changelog':
41+
'https://raw.githubusercontent.com/docsifyjs/docsify/master/CHANGELOG.md',
42+
'/.*/_navbar.md': '/_navbar.md',
43+
'/es/(.*)':
44+
'https://raw.githubusercontent.com/docsifyjs/docs-es/master/$1',
45+
'/de-de/(.*)':
46+
'https://raw.githubusercontent.com/docsifyjs/docs-de/master/$1',
47+
'/ru-ru/(.*)':
48+
'https://raw.githubusercontent.com/docsifyjs/docs-ru/master/$1',
49+
'/zh-cn/(.*)':
50+
'https://cdn.jsdelivr.net/gh/docsifyjs/docs-zh@master/$1',
7251
},
73-
pathNamespaces: ['/zh-cn', '/de-de', '/ru-ru', '/es']
74-
},
75-
plugins: [
76-
DocsifyCarbon.create('CEBI6KQE', 'docsifyjsorg'),
77-
function (hook, vm) {
78-
hook.beforeEach(function (html) {
79-
if (/githubusercontent\.com/.test(vm.route.file)) {
80-
url = vm.route.file
81-
.replace('raw.githubusercontent.com', 'github.com')
82-
.replace(/\/master/, '/blob/master')
83-
} else if (/jsdelivr\.net/.test(vm.route.file)) {
84-
url = vm.route.file
85-
.replace('cdn.jsdelivr.net/gh', 'github.com')
86-
.replace('@master', '/blob/master')
87-
} else {
88-
url = 'https://github.com/docsifyjs/docsify/blob/master/docs/' + vm.route.file
89-
}
90-
var editHtml = '[:memo: Edit Document](' + url + ')\n'
91-
return editHtml
92-
+ html
93-
+ '\n\n----\n\n'
94-
+ '<a href="https://docsify.js.org" target="_blank" style="color: inherit; font-weight: normal; text-decoration: none;">Powered by docsify</a>'
95-
})
52+
auto2top: true,
53+
basePath: '/docs/',
54+
coverpage: true,
55+
executeScript: true,
56+
loadSidebar: true,
57+
loadNavbar: true,
58+
mergeNavbar: true,
59+
maxLevel: 4,
60+
subMaxLevel: 2,
61+
name: 'docsify',
62+
search: {
63+
noData: {
64+
'/es/': '¡No hay resultados!',
65+
'/de-de/': 'Keine Ergebnisse!',
66+
'/ru-ru/': 'Никаких результатов!',
67+
'/zh-cn/': '没有结果!',
68+
'/': 'No results!',
69+
},
70+
paths: 'auto',
71+
placeholder: {
72+
'/es/': 'Buscar',
73+
'/de-de/': 'Suche',
74+
'/ru-ru/': 'Поиск',
75+
'/zh-cn/': '搜索',
76+
'/': 'Search',
77+
},
78+
// pathNamespaces: ['/es', '/de-de', '/ru-ru', '/zh-cn']
9679
},
97-
]
98-
}
99-
</script>
100-
<script src="/lib/docsify.js"></script>
101-
<script src="/lib/plugins/search.js"></script>
102-
<script src="/lib/plugins/emoji.js"></script>
103-
<script src="/lib/plugins/front-matter.js"></script>
104-
<script src="//cdn.jsdelivr.net/npm/prismjs/components/prism-bash.min.js"></script>
105-
<script src="//cdn.jsdelivr.net/npm/prismjs/components/prism-markdown.min.js"></script>
106-
<script src="//cdn.jsdelivr.net/npm/prismjs/components/prism-nginx.min.js"></script>
107-
<script src="//cdn.jsdelivr.net/npm/prismjs/components/prism-php.min.js"></script>
108-
</body>
109-
80+
plugins: [
81+
DocsifyCarbon.create('CEBI6KQE', 'docsifyjsorg'),
82+
function(hook, vm) {
83+
hook.beforeEach(function(html) {
84+
if (/githubusercontent\.com/.test(vm.route.file)) {
85+
url = vm.route.file
86+
.replace('raw.githubusercontent.com', 'github.com')
87+
.replace(/\/master/, '/blob/master');
88+
} else if (/jsdelivr\.net/.test(vm.route.file)) {
89+
url = vm.route.file
90+
.replace('cdn.jsdelivr.net/gh', 'github.com')
91+
.replace('@master', '/blob/master');
92+
} else {
93+
url =
94+
'https://github.com/docsifyjs/docsify/blob/master/docs/' +
95+
vm.route.file;
96+
}
97+
var editHtml = '[:memo: Edit Document](' + url + ')\n';
98+
return (
99+
editHtml +
100+
html +
101+
'\n\n----\n\n' +
102+
'<a href="https://docsify.js.org" target="_blank" style="color: inherit; font-weight: normal; text-decoration: none;">Powered by docsify</a>'
103+
);
104+
});
105+
},
106+
],
107+
};
108+
</script>
109+
<script src="/lib/docsify.js"></script>
110+
<script src="/lib/plugins/search.js"></script>
111+
<script src="/lib/plugins/emoji.js"></script>
112+
<script src="/lib/plugins/front-matter.js"></script>
113+
<script src="//cdn.jsdelivr.net/npm/prismjs/components/prism-bash.min.js"></script>
114+
<script src="//cdn.jsdelivr.net/npm/prismjs/components/prism-markdown.min.js"></script>
115+
<script src="//cdn.jsdelivr.net/npm/prismjs/components/prism-nginx.min.js"></script>
116+
<script src="//cdn.jsdelivr.net/npm/prismjs/components/prism-php.min.js"></script>
117+
</body>
110118
</html>

0 commit comments

Comments
 (0)