(meta)
| 40 | ]; |
| 41 | |
| 42 | function buildFrontmatter(meta) { |
| 43 | const lines = ['---']; |
| 44 | lines.push(`title: "${escapeYaml(meta.title)}"`); |
| 45 | lines.push(`description: "${escapeYaml(meta.description)}"`); |
| 46 | lines.push(`keywords: [${meta.keywords.map(k => `"${k}"`).join(', ')}]`); |
| 47 | lines.push(`slug: ${meta.slug}`); |
| 48 | lines.push(`sidebar_position: ${meta.sidebar_position}`); |
| 49 | lines.push('format: md'); |
| 50 | lines.push('---'); |
| 51 | return lines.join('\n'); |
| 52 | } |
| 53 | |
| 54 | /** Adapt relative links to work within the docs site or fall back to GitHub URLs. */ |
| 55 | function adaptLinks(content) { |
no test coverage detected