(pathname: string)
| 43 | normalizeProcessedMarkdown(await page.data.getText('processed')); |
| 44 | |
| 45 | const getMarkdownRoute = (pathname: string) => { |
| 46 | if (!pathname.startsWith(docsPrefix) || !pathname.endsWith(markdownSuffix)) { |
| 47 | return null; |
| 48 | } |
| 49 | |
| 50 | return decodeURIComponent( |
| 51 | pathname.slice(docsPrefix.length, pathname.length - markdownSuffix.length), |
| 52 | ); |
| 53 | }; |
| 54 | |
| 55 | const renderAllDocsMarkdown = async () => { |
| 56 | const pages = source.getPages(); |
no outgoing calls
no test coverage detected