docs: fix rc docs and update anchors for new Hugo version

This commit is contained in:
Nick Craig-Wood
2020-05-17 11:44:34 +01:00
parent 038648aaca
commit 2bd786a452
2 changed files with 193 additions and 92 deletions

View File

@@ -290,11 +290,11 @@ func list(ctx context.Context) error {
if !ok {
return errors.New("bad JSON")
}
fmt.Printf("### %s: %s {#%s}\n\n", info["Path"], info["Title"], info["Path"])
fmt.Printf("### %s: %s {#%s}\n\n", info["Path"], info["Title"], strings.Replace(info["Path"].(string), "/", "-", -1))
fmt.Printf("%s\n\n", info["Help"])
if authRequired := info["AuthRequired"]; authRequired != nil {
if authRequired.(bool) {
fmt.Printf("Authentication is required for this call.\n\n")
fmt.Printf("**Authentication is required for this call.**\n\n")
}
}
}