-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
123 lines (116 loc) · 4.25 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>flutter japan</title>
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"/>
<meta name="google-site-verification" content="ZJCUTVJitrxWBFcoyqN_TD0gI4ej0NIEHZzCj_6Bh1M" />
<meta name="description" content="A new Flutter study application.">
<meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
<link rel="stylesheet" href="//unpkg.com/gitalk/dist/gitalk.css">
<!-- theme -->
<link rel="stylesheet" href="//unpkg.com/docsify/lib/themes/vue.css">
<style>
.markdown-section a:not(:hover) {
text-decoration: none;
}
.sidebar {
padding-top: 20px;
}
.sidebar h1 {
font-weight: normal;
}
.sidebar blockquote {
margin-left: 12px;
}
section.content {
padding-top: 50px;
}
</style>
</head>
<body>
<div id="app">loading...</div>
</body>
<!-- core lib -->
<script src="//unpkg.com/docsify/lib/docsify.min.js" data-ga="UA-xxxxxxxx-x"></script>
<!--plguin ga 和search have bug-->
<!--<script src="//unpkg.com/docsify/lib/plugins/search.min.js"></script>-->
<!--<script src="//unpkg.com/docsify/lib/plugins/ga.min.js"></script>-->
<script src="//unpkg.com/gitalk/dist/gitalk.min.js"></script>
<script src="//unpkg.com/docsify-edit-on-github/index.js"></script>
<script src="//unpkg.com/docsify-copy-code@2"></script>
<script async src="//unpkg.com/docsify/lib/plugins/zoom-image.min.js"></script>
<script async src="//unpkg.com/docsify/lib/plugins/emoji.min.js"></script>
<!-- languge extension -->
<script async src="//unpkg.com/prismjs/components/prism-java.min.js"></script>
<script async src="//unpkg.com/prismjs/components/prism-markup.min.js"></script>
<script async src="//unpkg.com/prismjs/components/prism-sql.min.js"></script>
<script async src="//unpkg.com/prismjs/components/prism-dart.min.js"></script>
<script>
// service worker
if (typeof navigator.serviceWorker !== 'undefined') {
navigator.serviceWorker.register('sw.js')
}
// config
window.$docsify = {
name: 'flutter japan',
repo: 'https://github.com/flutter-jp/website',
// logo:'assets/images/avatar.png',
coverpage: true,
loadSidebar: true,
subMaxLevel: 3,
// copyCode: {
// buttonText: 'Copy to clipboard',
// errorText: 'Error',
// successText: 'Copied'
// },
formatUpdated: '{YYYY}-{MM}-{DD}',
alias: {
'/.*/_sidebar.md': '/_sidebar.md'
},
auto2top: true,
homepage: 'README.md',
mergeNavbar: true,
search: {
maxAge: 86400000,
placeholder: 'search...',
noData: 'no data!'
},
plugins: [
EditOnGithubPlugin.create('https://github.com/flutter-jp/website/'),
function (hook, vm) {
hook.beforeEach(function (html) {
return html
+ '<hr/>'
+ 'last update:{docsify-updated} '
})
},
function (hook, vm) {
hook.mounted(function () {
var div = Docsify.dom.create('div');
div.id = 'gitalk-container';
var main = Docsify.dom.getNode('#main');
div.style = `width: ${main.clientWidth}px; margin: 0 auto 20px;`;
Docsify.dom.appendTo(Docsify.dom.find('.content'), div)
});
hook.doneEach(function () {
var el = document.getElementById('gitalk-container');
while (el.hasChildNodes()) el.removeChild(el.firstChild);
gitalk.render('gitalk-container')
})
}
]
};
// git talk
const gitalk = new Gitalk({
clientID: '01d078a9227cb98337e0',
clientSecret: '62d4f8c6beb0cfb64318059594d0be7c278ab995',
repo: 'website',
owner: 'flutter-jp',
admin: ['houko'],
distractionFreeMode: false,
language:'en',
id: decodeURI(location.pathname),
});
</script>
</html>