Skip to content

Commit

Permalink
Switch back to function name in catalog. (#326)
Browse files Browse the repository at this point in the history
  • Loading branch information
etefera authored May 27, 2021
1 parent 0d8dfd5 commit 1bf7a1b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/generate_catalog/generate_catalog.go
Original file line number Diff line number Diff line change
Expand Up @@ -303,7 +303,7 @@ func getRelativeFunctionPath(source string, funcName string) (string, error) {
func writeFunctionIndex(functions []function, source string, dest string) error {
out := []string{"# Functions Catalog", "", "| Name | Description | Tags |", "| ---- | ----------- | ---- |"}
for _, f := range functions {
functionEntry := fmt.Sprintf("| [%v](%v/) | %v | %v |", f.ImagePath, strings.Replace(f.Path, filepath.Join(source, "site"), "", 1), f.Description, f.Tags)
functionEntry := fmt.Sprintf("| [%v](%v/) | %v | %v |", f.FunctionName, strings.Replace(f.Path, filepath.Join(source, "site"), "", 1), f.Description, f.Tags)
out = append(out, functionEntry)
}

Expand Down

0 comments on commit 1bf7a1b

Please sign in to comment.