docs: adds package description to the stdlib Index
Signed-off-by: Sam Alba <sam.alba@gmail.com>
This commit is contained in:
@@ -407,6 +407,7 @@ func walkStdlib(ctx context.Context, output, format string) {
|
||||
// Generate index from sorted list of packages
|
||||
sort.Strings(indexKeys)
|
||||
for _, p := range indexKeys {
|
||||
fmt.Fprintf(index, "- [%s](./%s)\n", p, getFileName(p))
|
||||
description := mdEscape(packages[p].Description)
|
||||
fmt.Fprintf(index, "- [%s](./%s) - %s\n", p, getFileName(p), description)
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user