summaryrefslogtreecommitdiffhomepage
path: root/website/cmd/syscalldocs
diff options
context:
space:
mode:
authorAdin Scannell <ascannell@google.com>2020-05-20 11:19:04 -0700
committergVisor bot <gvisor-bot@google.com>2020-05-20 11:20:40 -0700
commit5bf33a386348a3b07cfc60c3738bc0f9af7eabae (patch)
treec6270b85327099d072860e0b008f02c4a809d316 /website/cmd/syscalldocs
parent05c89af6edde6158844d4debfe68bc598fec4418 (diff)
Unbreak permalink.
The permalink should be "linux" not "Linux. PiperOrigin-RevId: 312518858
Diffstat (limited to 'website/cmd/syscalldocs')
-rw-r--r--website/cmd/syscalldocs/main.go6
1 files changed, 4 insertions, 2 deletions
diff --git a/website/cmd/syscalldocs/main.go b/website/cmd/syscalldocs/main.go
index 62d293a05..327537214 100644
--- a/website/cmd/syscalldocs/main.go
+++ b/website/cmd/syscalldocs/main.go
@@ -46,7 +46,7 @@ type SyscallDoc struct {
}
var mdTemplate = template.Must(template.New("out").Parse(`---
-title: {{.OS}}/{{.Arch}}
+title: {{.Title}}
description: Syscall Compatibility Reference Documentation for {{.OS}}/{{.Arch}}
layout: docs
category: Compatibility
@@ -134,6 +134,7 @@ func main() {
weight += 10
data := struct {
+ Title string
OS string
Arch string
Weight int
@@ -149,7 +150,8 @@ func main() {
URLs []string
}
}{
- OS: strings.Title(osName),
+ Title: strings.Title(osName) + "/" + archName,
+ OS: osName,
Arch: archName,
Weight: weight,
Total: 0,