(relativePath: string)
| 45 | |
| 46 | const sourceFileDir = path.posix.dirname(remotePath) |
| 47 | const resolveRelativePath = (relativePath: string) => { |
| 48 | const resolved = path.posix.normalize(`${sourceFileDir}/${relativePath}`) |
| 49 | return `https://raw.githubusercontent.com/${GITHUB_REPO}/${DOCS_SHA}/${resolved}` |
| 50 | } |
| 51 | |
| 52 | const transformed = rewriteLinks(stripped) |
| 53 | // Rewrite repo-relative image paths in markdown syntax to absolute raw GitHub URLs |
no test coverage detected
searching dependent graphs…