forked from uber-go/sally
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
65 lines (63 loc) · 2.33 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
<!DOCTYPE html>
<html>
<head>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/skeleton/2.0.4/skeleton.min.css" />
</head>
<style>
.separator {
margin: 0.25em 0;
}
.description { color: #666; }
/* On narrow screens, switch to inline headers. */
.table-header { display: none; }
.inline-header { font-weight: bold; }
@media (min-width: 550px) {
.table-header { display: block; }
.inline-header { display: none; }
}
@media (prefers-color-scheme: dark) {
body { background-color: #333; color: #ddd; }
a { color: #ddd; }
a:visited { color: #bbb; }
.description { color: #bbb; }
.separator { border-color: #666; }
}
</style>
<body>
<div class="container">
<div class="row table-header">
<div class="five columns"><strong>Package</strong></div>
<div class="five columns"><strong>Source</strong></div>
<div class="two columns"><strong>Documentation</strong></div>
</div>
{{ range .Packages }}
<hr class="separator">
<div class="row">
<div class="five columns">
<span class="inline-header">Package:</span>
{{ .ModulePath }}
</div>
<div class="five columns">
<span class="inline-header">Source:</span>
<a href="//{{ .RepoURL }}">{{ .RepoURL }}</a>
</div>
<div class="two columns">
<a href="{{ .DocURL }}">
<img src="//pkg.go.dev/badge/{{ .ModulePath }}.svg" alt="Go Reference" />
</a>
</div>
</div>
{{ with .Desc }}
<div class="row">
<div class="one column">
<!-- indent -->
</div>
<div class="eleven columns description">
{{ . }}
</div>
</div>
{{ end }}
{{ end }}
</div>
</body>
</html>