-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
140 lines (132 loc) · 5.86 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Русская документация SvelteKit</title>
<link rel="icon" href="/_media/favicon.png" />
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
<meta name="description" content="SvelteKit - это фреймворк для быстрой разработки надежных и производительных веб-приложений с использованием Svelte. Если вы пришли из React, SvelteKit похож на Next. Если вы переходите с Vue, SvelteKit похож на Nuxt." />
<meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0">
<meta name="keywords" content="русский, документация, docs, доки, svelte, kit, sveltekit, svelte kit, руководство, инструкция, гайд, туториал, tutorial, russian, guide, " />
<meta name="yandex-verification" content="f991e27d36a80eac" />
<link rel="stylesheet" href="/_media/sk.css">
<link rel="stylesheet" href="/_media/toc.css">
<!-- Yandex.Metrika counter -->
<script type="text/javascript" >
(function(m,e,t,r,i,k,a){m[i]=m[i]||function(){(m[i].a=m[i].a||[]).push(arguments)};
m[i].l=1*new Date();
for (var j = 0; j < document.scripts.length; j++) {if (document.scripts[j].src === r) { return; }}
k=e.createElement(t),a=e.getElementsByTagName(t)[0],k.async=1,k.src=r,a.parentNode.insertBefore(k,a)})
(window, document, "script", "https://mc.yandex.ru/metrika/tag.js", "ym");
ym(92815834, "init", {
clickmap:true,
trackLinks:true,
accurateTrackBounce:true
});
</script>
<noscript><div><img src="https://mc.yandex.ru/watch/92815834" style="position:absolute; left:-9999px;" alt="" /></div></noscript>
<!-- /Yandex.Metrika counter -->
</head>
<body>
<style>
:root {
--theme-color: #FF4000;
}
</style>
<div id="app"></div>
<script>
window.$docsify = {
name: 'SvelteKit',
repo: '',
loadSidebar: true,
maxLevel: 4,
subMaxLevel: 2,
auto2top: true,
routerMode: 'history',
search: {
noData: {
'/': 'Никаких результатов!',
},
paths: 'auto',
placeholder: {
'/': 'Поиск',
},
namespace: 'sveltekit',
},
pagination: {
previousText: 'Назад',
nextText: {
'/': 'Далее'
},
crossChapter: true,
crossChapterText: true,
},
tabs: {
theme: 'material'
},
toc: {
scope: '.markdown-section',
headings: 'h2, h3',
title: 'На этой странице',
},
plugins: [
function (hook, vm) {
hook.beforeEach(function (html) {
url = 'https://github.com/Romkar/sveltekit-docs-rus/blob/main/' + vm.route.file;
var editHtml = '[:memo:](' + url + ') [-> Svelte](https://sveltedocs.ru/)\n';
return (
editHtml + html
);
});
hook.doneEach(function () {
/// https://github.com/docsifyjs/docsify/issues/351
// true = show debug log
let dd = false
let TARGET_QUERY = 'id'
let SCROLL_DELAY = 2000 // in milisecond
let location = window.location
dd&&console.log('custom scroll plugin called!')
let currentUrlWithoutHash = new URL(
location.origin+location.pathname+
location.search+location.hash.substring(1)
)
let urlQueryParam = currentUrlWithoutHash.searchParams
let isUrlHasIdQuery = urlQueryParam.has(TARGET_QUERY)
if(isUrlHasIdQuery){
dd&&console.log('url has id, will scroll to element')
let urlId = urlQueryParam.get(TARGET_QUERY)
// run delayed, to make sure everything loaded
setTimeout(function() {
dd&&console.log('will scroll now!')
try{
document.querySelector('#'+urlId)
.scrollIntoView()
} catch(e){ dd&&console.log('custom scroll failed',e) }
}, SCROLL_DELAY);
}
});
},
],
copyCode: {
buttonText : '📋',
errorText : 'ошибка',
successText: 'скопировано'
}
}
</script>
<script src="//cdn.jsdelivr.net/npm/docsify@4/lib/docsify.min.js"></script>
<script src="//cdn.jsdelivr.net/npm/docsify@4/lib/plugins/search.min.js"></script>
<script src="//cdn.jsdelivr.net/npm/prismjs@1/components/prism-bash.min.js"></script>
<script src="//cdn.jsdelivr.net/npm/prismjs@1/components/prism-markdown.min.js"></script>
<script src="//cdn.jsdelivr.net/npm/prismjs@1/components/prism-nginx.min.js"></script>
<script src="//cdn.jsdelivr.net/npm/prismjs@1/components/prism-javascript.min.js"></script>
<script src="//cdn.jsdelivr.net/npm/prismjs@1/components/prism-typescript.min.js"></script>
<script src="//cdn.jsdelivr.net/npm/prismjs@1/components/prism-diff.min.js"></script>
<script src="//cdn.jsdelivr.net/npm/prismjs@1/components/prism-json.min.js"></script>
<script src="//cdn.jsdelivr.net/npm/prismjs@1/components/prism-yaml.min.js"></script>
<script src="//cdn.jsdelivr.net/npm/docsify-copy-code/dist/docsify-copy-code.min.js"></script>
<script src="//cdn.jsdelivr.net/npm/[email protected]/dist/docsify-pagination.min.js"></script>
<script src="//cdn.jsdelivr.net/npm/docsify-tabs@1"></script>
<script src="//cdn.jsdelivr.net/npm/[email protected]/dist/toc.min.js"></script>
</body>
</html>