-
Notifications
You must be signed in to change notification settings - Fork 5
/
header.empy
101 lines (83 loc) · 2.67 KB
/
header.empy
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
@# -*- html -*-
@# Globals that must be set before including this file:
@#
@# page_id (without .empy or .html)
@# page_title
@#####################################################################
@{import re}
@[def nav_link(id, name, link=None)]
@[if link is None]
@{link = "/" + id + ".html"}
@[end if]
@[if id == page_id]
@{cl = ' class="current"'}
@[else]
@{cl = ""}
@[end if]
<li@cl><a href="@link">@name</a></li>
@[end def]
@[def ext_link(name, link, level=1)]
@[if level == 2]
@{pre = "– "}
@[else]
@{pre = ""}
@[end if]
<li class="level@level"><a href="@link">@pre@name</a></li>
@[end def]
@[def ext_link2(name, link)]
@ext_link(name, link, 2)
@[end def]
@{latest_version = "4.10.2"}
@#####################################################################
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<title>Ccache — @page_title</title>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script>
<link rel="stylesheet" href="https://ccache.dev/ccache.css" type="text/css">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body>
<div id="banner">
<a href=".">
<span style="font-size: 500%; text-shadow: 5px 5px 5px #aaa">Ccache</span>
<span style="font-size: 150%">— a fast C/C++ compiler cache</span>
</a>
</div>
<div id="navigation">
<div class="group" style="margin-top: 0">About it:</div>
<ul>
@nav_link("overview", "Overview", "/")
@nav_link("platform-compiler-language-support", "Supported platforms and compilers")
@nav_link("performance", "Performance")
@nav_link("news", "News")
@nav_link("credits", "Credits")
@nav_link("license", "License", "/license.html")
</ul>
<div class="group">Get it:</div>
<ul>
@nav_link("download", "Download")
</ul>
<div class="group">Use it:</div>
<ul>
@nav_link("documentation", "Documentation", "/documentation.html")
</ul>
<div class="group">Discuss it:</div>
<ul>
@ext_link("Discussions", "https://github.com/ccache/ccache/discussions")
@ext_link("Mailing list", "https://lists.samba.org/mailman/listinfo/ccache/")
@ext_link2("Archive", "http://www.mail-archive.com/[email protected]")
</ul>
<div class="group">Improve it:</div>
<ul>
@nav_link("bugs", "Bug report")
@ext_link2("View existing", "https://github.com/ccache/ccache/issues")
@nav_link("repo", "Source repository")
@ext_link2("Browse", "https://github.com/ccache/ccache")
</ul>
</div>
<div id="content">
@[if page_title != "Compiler cache"]
<h1>@page_title</h1>
@[end if]