-
Notifications
You must be signed in to change notification settings - Fork 5
/
documentation.empy
99 lines (80 loc) · 2.19 KB
/
documentation.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
@# -*- html -*-
@{page_id = "documentation"}
@{page_title = "Documentation"}
@empy.include("header.empy")
@{
import os
def s(x):
return ".".join(str(n) for n in x)
all_versions = [
tuple(int(n) for n in x.replace(".html", "").split("."))
for x in os.listdir("manual") if x.endswith(".html") and x != "latest.html"
]
all_versions.sort(reverse=True)
latest_version = s(all_versions[0])
older_manual_versions = [s(x) for x in all_versions[1:]]
}@
<h2>Manual</h2>
<ul>
<li>
<a href="manual/@(latest_version).html">Version @latest_version (latest)</a>
</li>
<li>
<a onclick="$(this).parent().hide(); $('.manual-version').show()">
Older versions
</a>
</li>
@[for x in older_manual_versions]
<li class="manual-version" style="display: none">
<a href="manual/@(x).html">Version @x</a>
</li>
@[end for]
</ul>
<h2>Release notes</h2>
<ul>
<li>
<a href="https://ccache.dev/releasenotes.html#_ccache_@(latest_version.replace(".",
"_"))">Release notes for version @latest_version</a>
</li>
</ul>
<h2>Installation</h2>
<ul>
<li>
<a href="https://github.com/ccache/ccache/blob/master/doc/INSTALL.md">
Installation instructions for version 4.x
</a>
</li>
<li>
<a href="https://github.com/ccache/ccache/blob/3.7-maint/doc/INSTALL-from-release-archive.md">
Installation instructions for version 3.x
</a>
</li>
</ul>
<h2>How-to guides</h2>
<h3>Remote storage</h3>
<ul>
<li>
<a href="https://github.com/ccache/ccache/wiki/File-storage">How to set up
remote file storage (e.g. over NFS)</a>
</li>
<li>
<a href="https://github.com/ccache/ccache/wiki/HTTP-storage">How to set up
remote HTTP storage</a>
</li>
<li>
<a href="https://github.com/ccache/ccache/wiki/Redis-storage">How to set up
remote Redis storage</a>
</li>
</ul>
<h3>Usage tips</h3>
<ul>
<li><a href="https://github.com/ccache/ccache/wiki/CMake">CMake tips</a></li>
<li><a href="https://github.com/ccache/ccache/wiki/MS-Visual-Studio">MS Visual Studio tips</a></li>
</ul>
<h2>Contribution</h2>
<ul>
<li>
<a href="https://github.com/ccache/ccache/blob/master/CONTRIBUTING.md">Contributing to ccache</a>
</li>
</ul>
@empy.include("footer.empy")