-
Notifications
You must be signed in to change notification settings - Fork 29
/
index.html
97 lines (93 loc) · 2.61 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
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no" />
<title>Makefile 教程</title>
<link rel="stylesheet" href="https://unpkg.com/docute@4/dist/docute.css" />
<link rel="stylesheet" href="/assets/styles/docs.css" />
</head>
<body>
<div id="docute"></div>
<script src="https://unpkg.com/docute@4/dist/docute.js"></script>
<!-- Google tag (gtag.js) -->
<script async src="https://www.googletagmanager.com/gtag/js?id=G-W55D0DZH3L"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag() { dataLayer.push(arguments); }
gtag('js', new Date());
gtag('config', 'G-W55D0DZH3L');
</script>
<script>
new Docute({
target: '#docute',
highlight: ['makefile', 'bash'],
cssVariables: {
sidebarWidth: '220px',
},
nav: [
{
title: '原作仓库',
link: 'https://github.com/theicfire/makefiletutorial',
},
{
title: '作者推特',
link: 'https://twitter.com/chaselambda',
},
{
title: '译作仓库',
link: 'https://github.com/gavinliu6/Makefile-Tutorial-zh-CN',
},
],
sidebar: [
{
title: '起步',
link: '/docs/getting-started',
},
{
title: '目标',
link: '/docs/targets',
},
{
title: '自动变量和通配符',
link: '/docs/automatic-variables-and-wildcards',
},
{
title: '各种规则',
link: '/docs/fancy-rules',
},
{
title: '命令和执行',
link: '/docs/commands-and-execution',
},
{
title: '变量(第 2 部分)',
link: '/docs/variables-pt-2',
},
{
title: 'Makefiles 的条件判断',
link: '/docs/conditional-part-of-makefiles',
},
{
title: '函数',
link: '/docs/functions',
},
{
title: '其他特性',
link: '/docs/other-features',
},
{
title: 'Makefile Cookbook',
link: '/docs/makefile-cookbook',
},
],
footer: `
<div style="border-top:1px solid var(--border-color);padding-top:30px;margin: 40px 0;color:#999999;font-size: .9rem;">
© ${new Date().getFullYear()} Translated by <a href="https://gavinliu.me" target="_blank">Gavin Liu</a>.
💕 The site is built by <a href="https://docute.org/" target="_blank">Docute</a>.
</div>
`,
})
</script>
</body>
</html>