MCPcopy
hub / github.com/facebook/docusaurus / toMessageRelativeFilePath

Function toMessageRelativeFilePath

packages/docusaurus-utils/src/pathUtils.ts:79–81  ·  view source on GitHub ↗
(filePath: string)

Source from the content-addressed store, hash-verified

77 * probably good enough
78 */
79export function toMessageRelativeFilePath(filePath: string): string {
80 return posixPath(path.relative(process.cwd(), filePath));
81}
82
83/**
84 * Alias filepath relative to site directory, very useful so that we

Callers 8

pathUtils.test.tsFile · 0.90
checkSidebarsDocIdsFunction · 0.90
asFunctionFunction · 0.90
asFunctionFunction · 0.90
asFunctionFunction · 0.90

Calls 1

posixPathFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…