# toRelativePath

**Kind:** Function

**Source:** [`atloria-monorepo/packages/doc-automation/src/v2/stages/stage-01-parse/services/entity-mapper.service.ts`](https://github.com/sherkety/atloria/blob/main/atloria-monorepo/packages/doc-automation/src/v2/stages/stage-01-parse/services/entity-mapper.service.ts#L312)

Convert an absolute file path to a path relative to the repo root.
Always uses forward slashes.

## Signature

```ts
function toRelativePath(absolutePath: string, normalizedRepoPath: string): string
```

## Parameters

| Name | Type |
|---|---|
| `absolutePath` | `string` |
| `normalizedRepoPath` | `string` |

**Returns:** `string`
