MCPcopy Create free account
hub / github.com/webdriverio/webdriverio / resolveRelativePath

Function resolveRelativePath

scripts/docs-generation/electronDocs.ts:47–50  ·  view source on GitHub ↗
(relativePath: string)

Source from the content-addressed store, hash-verified

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

Callers 1

generateElectronDocsFunction · 0.70

Calls 1

normalizeMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…