(slug: string[])
| 165 | ]; |
| 166 | |
| 167 | function getGithubPath(slug: string[]): string { |
| 168 | slug = slug.filter((v) => v); |
| 169 | const lastPart = slug.slice(-1)[0]; |
| 170 | return slug.join("/") + (indexes.includes(lastPart) ? "/index.md" : ".md"); |
| 171 | } |
| 172 | |
| 173 | function extractTitleFromMarkdown(content: string) { |
| 174 | const lines = content.split("\n"); |
nothing calls this directly
no outgoing calls
no test coverage detected