Skip to content

Commit 9154bb3

Browse files
committed
🧹 Clean up IDs in generated documentation
1 parent 4dc14c3 commit 9154bb3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tools/generate-docs/main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ func (ca *CompositeAction) WriteOutputTable(w io.Writer, path string) {
126126
}
127127

128128
func (ca *CompositeAction) WriteExample(w io.Writer, path, version string) {
129-
id := strcase.ToKebab(strings.ReplaceAll(ca.Name, " ", "_"))
129+
id := strcase.ToKebab(strings.ReplaceAll(path, "/", "_"))
130130
fmt.Fprintf(w, "## Example\n")
131131
fmt.Fprintf(w, "\n")
132132
fmt.Fprintf(w, "Here is a very basic example of how to use the `%v` composite action\n", path)

0 commit comments

Comments
 (0)