mirror of
https://github.com/DistSysCorp/ddia.git
synced 2024-12-25 12:20:22 +08:00
105 lines
3.9 KiB
HTML
105 lines
3.9 KiB
HTML
<!DOCTYPE html>
|
||
<html lang="en">
|
||
<head>
|
||
<meta charset="UTF-8">
|
||
<title>DDIA 逐章精读</title>
|
||
<meta name="keywords" content="设计数据密集型应用 DDIA 数据库 DDIA笔记 DDIA翻译 DDIA精读 分布式系统 数据库 大规模数据系统"/>
|
||
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
|
||
<meta name="description" content="DDIA读书笔记 DDIA精读笔记 DDIA翻译">
|
||
<meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0">
|
||
<link rel="stylesheet" href="js/vue.css" title="vue"/>
|
||
<script>
|
||
var _hmt = _hmt || [];
|
||
(function() {
|
||
var hm = document.createElement("script");
|
||
hm.src = "https://hm.baidu.com/hm.js?9e46dc21e48bb3056fcb775f11bddbc4";
|
||
var s = document.getElementsByTagName("script")[0];
|
||
s.parentNode.insertBefore(hm, s);
|
||
})();
|
||
</script>
|
||
<!-- Global site tag (gtag.js) - Google Analytics -->
|
||
<script async src="https://www.googletagmanager.com/gtag/js?id=G-MMJ5PY11XY"></script>
|
||
<script>
|
||
window.dataLayer = window.dataLayer || [];
|
||
function gtag(){dataLayer.push(arguments);}
|
||
gtag('js', new Date());
|
||
gtag('config', 'G-MMJ5PY11XY');
|
||
</script>
|
||
|
||
<link rel="stylesheet" href="//unpkg.com/gitalk/dist/gitalk.css">
|
||
|
||
|
||
|
||
</head>
|
||
<body>
|
||
<div id="app"></div>
|
||
<script>
|
||
window.$docsify = {
|
||
count: {
|
||
language: "chinese", // default:english|chinese
|
||
},
|
||
name: '《DDIA 逐章精读》',
|
||
repo: 'https://github.com/DistSysCorp/ddia',
|
||
loadSidebar: true,
|
||
subMaxLevel: 2,
|
||
themeColor: '#77AAC2',
|
||
auto2top: true,
|
||
pagination: {
|
||
previousText: "上一章",
|
||
nextText: "下一章",
|
||
crossChapter: true,
|
||
crossChapterText: true,
|
||
},
|
||
plugins: [
|
||
function pageFooter(hook, vm) {
|
||
var footer = [
|
||
'<footer style="text-align: center; color: #696773;">',
|
||
'<span><a href="https://www.qtmuniao.com/" style="color: #79D9CE;">作者:木鸟杂记</a> ❄ </span>',
|
||
'<span><a href="https://mp.weixin.qq.com/mp/appmsgalbum?__biz=Mzg5NTcxNzY2OQ==&action=getalbum&album_id=2164896217070206977&scene=126&devicetype=iOS15.4&version=18001d33&lang=zh_CN&nettype=WIFI&ascene=59&session_us=gh_80636260f9f9&fontScale=106&wx_header=3" style="color: #FCD765;">公众号</a> ❄ </span>',
|
||
'<span><a href="https://distsys.cn/" style="color: #F19A97;">分布式论坛</a> ❄ </span>',
|
||
'<span><a href="https://xiaobot.net/p/system-thinking" style="color: #77AAC2;">系统技术专栏</a></span>',
|
||
'</footer>',
|
||
].join('');
|
||
|
||
hook.afterEach(function (html) {
|
||
return html + footer;
|
||
});
|
||
},
|
||
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')
|
||
})
|
||
}
|
||
],
|
||
}
|
||
</script>
|
||
|
||
<script src="js/docsify.min.js"></script>
|
||
<script src="js/search.min.js"></script>
|
||
<script src="js/docsify-pagination.min.js"></script>
|
||
|
||
<script src="//unpkg.com/gitalk/dist/gitalk.min.js"></script>
|
||
<script src="https://cdn.jsdelivr.net/npm/gitalk/dist/gitalk.min.js"></script>
|
||
<script>
|
||
const gitalk = new Gitalk({
|
||
clientID: 'Ov23liYKNMwF7oVGo5AM',
|
||
clientSecret: 'bffc366adf82f40bc8e0fded441d7a7f0b3e09a9',
|
||
repo: 'ddia-comment',
|
||
owner: 'songpengwei',
|
||
admin: ['songpengwei'],
|
||
title: location.href,
|
||
})
|
||
</script>
|
||
</body>
|
||
</html>
|