Skip to content

Commit 22d9c93

Browse files
committed
fix(docs): print dependencies paths in unix format
1 parent 645b5f9 commit 22d9c93

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/compiler/docs/readme/markdown-dependencies.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import * as d from '../../../declarations';
2+
import { normalizePath } from '@utils';
23

34
export function depsToMarkdown(config: d.Config, cmp: d.JsonDocsComponent, cmps: d.JsonDocsComponent[]) {
45
const content: string[] = [];
@@ -50,7 +51,7 @@ export function depsToMarkdown(config: d.Config, cmp: d.JsonDocsComponent, cmps:
5051
function getCmpLink(config: d.Config, from: d.JsonDocsComponent, to: string, cmps: d.JsonDocsComponent[]) {
5152
const destCmp = cmps.find(c => c.tag === to);
5253
if (destCmp) {
53-
const cmpRelPath = config.sys.path.relative(from.dirPath, destCmp.dirPath);
54+
const cmpRelPath = normalizePath(config.sys.path.relative(from.dirPath, destCmp.dirPath));
5455
return `[${to}](${cmpRelPath})`;
5556
}
5657
return to;

0 commit comments

Comments
 (0)