Skip to content

Commit

Permalink
fix(docs): print dependencies paths in unix format
Browse files Browse the repository at this point in the history
  • Loading branch information
manucorporat committed Aug 30, 2019
1 parent 645b5f9 commit 22d9c93
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/compiler/docs/readme/markdown-dependencies.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import * as d from '../../../declarations';
import { normalizePath } from '@utils';

export function depsToMarkdown(config: d.Config, cmp: d.JsonDocsComponent, cmps: d.JsonDocsComponent[]) {
const content: string[] = [];
Expand Down Expand Up @@ -50,7 +51,7 @@ export function depsToMarkdown(config: d.Config, cmp: d.JsonDocsComponent, cmps:
function getCmpLink(config: d.Config, from: d.JsonDocsComponent, to: string, cmps: d.JsonDocsComponent[]) {
const destCmp = cmps.find(c => c.tag === to);
if (destCmp) {
const cmpRelPath = config.sys.path.relative(from.dirPath, destCmp.dirPath);
const cmpRelPath = normalizePath(config.sys.path.relative(from.dirPath, destCmp.dirPath));
return `[${to}](${cmpRelPath})`;
}
return to;
Expand Down

0 comments on commit 22d9c93

Please sign in to comment.