(base string)
| 188 | } |
| 189 | |
| 190 | func isDocFile(base string) bool { |
| 191 | lower := strings.ToLower(strings.TrimSuffix(base, filepath.Ext(base))) |
| 192 | switch lower { |
| 193 | case "readme", "license", "licence", "contributing", "changelog", "code_of_conduct", "security": |
| 194 | return true |
| 195 | } |
| 196 | return false |
| 197 | } |
| 198 | |
| 199 | // parseManifest reads a markdown manifest and extracts name/description from |
| 200 | // YAML frontmatter when present, falling back to the provided default name and |