forked from fengyann/FedML-docs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
88 lines (84 loc) · 3.48 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>FedML</title>
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
<meta name="description" content="A Research Library and Benchmark for Federated Machine Learning">
<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="//cdn.jsdelivr.net/npm/docsify/lib/themes/buble.css">
<link rel="stylesheet" href="//cdn.jsdelivr.net/npm/gitalk/dist/gitalk.css">
<script src="//unpkg.com/docsify-edit-on-github/index.js"></script>
<script src="//cdn.jsdelivr.net/npm/docsify/lib/plugins/gitalk.min.js"></script>
<script src="//cdn.jsdelivr.net/npm/gitalk/dist/gitalk.min.js"></script>
</head>
<body>
<div id="app"></div>
<script>
var gitalkConfig = {
clientID: 'f9a2f47df3d681560afd',
clientSecret: '10e6c8a9606f570894d8c67cb738a369ffc0e347',
repo: 'FedML-docs',
owner: 'FedML-AI',
admin: ['wzpan', 'chaoyanghe'],
id: location.hash.slice(0, 50),
// facebook-like distraction free mode
distractionFreeMode: false,
};
window.$docsify = {
loadSidebar: true,
subMaxLevel: 2,
coverpage: false,
homepage: 'intro.md',
repo: 'FedML-AI/FedML',
search: 'auto',
ga: 'UA-134706009-2',
formatUpdated: '{MM}/{DD} {HH}:{mm}',
plugins: [
EditOnGithubPlugin.create(
'https://github.com/FedML-AI/FedML-docs/blob/master/'
),
function (hook, vm) {
hook.beforeEach(function (html) {
return html
+ '<hr/>'
+ 'Last updated:{docsify-updated} '
})
},
function (hook, vm) {
hook.doneEach(function() {
var label, domObj, main, divEle, gitalk;
label = vm.route.path.split("/").pop();
domObj = Docsify.dom;
main = domObj.getNode("#main");
Array.apply(
null,
document.querySelectorAll("div.gitalk-container")
).forEach(function(ele) {
ele.remove();
});
divEle = domObj.create("div");
divEle.id = "gitalk-container-" + label;
divEle.className = "gitalk-container";
divEle.style = "width: " + main.clientWidth + "px; margin: 0 auto 20px;";
domObj.appendTo(domObj.find(".content"), divEle);
gitalk = new Gitalk(
Object.assign(gitalkConfig, { id: !label ? "home" : label })
);
gitalk.render("gitalk-container-" + label);
});
}
]
}
</script>
<script src="//unpkg.com/docsify/lib/docsify.min.js"></script>
<script src="//unpkg.com/docsify/lib/plugins/search.js"></script>
<script src="//unpkg.com/prismjs/components/prism-bash.min.js"></script>
<script src="//unpkg.com/prismjs/components/prism-python.min.js"></script>
<script src="//unpkg.com/prismjs/components/prism-yaml.min.js"></script>
<script src="//unpkg.com/docsify/lib/plugins/emoji.min.js"></script>
<script src="//unpkg.com/docsify/lib/plugins/zoom-image.min.js"></script>
<script src="//unpkg.com/docsify-copy-code"></script>
<script src="//unpkg.com/docsify/lib/plugins/ga.min.js"></script>
</body>
</html>