(cmd Command)
| 87 | } |
| 88 | |
| 89 | func commandOutputFilename(cmd Command) string { |
| 90 | parts := commandPathParts(cmd) |
| 91 | if len(parts) == 0 { |
| 92 | return "index.mdx" |
| 93 | } |
| 94 | |
| 95 | last := len(parts) - 1 |
| 96 | parts[last] += ".mdx" |
| 97 | |
| 98 | return filepath.Join(parts...) |
| 99 | } |
| 100 | |
| 101 | func buildMdxSlug(parts []string) string { |
| 102 | if len(parts) == 0 { |
no test coverage detected