Skip to content

Commit

Permalink
fix: fix windows paths for deeper nested paths as well
Browse files Browse the repository at this point in the history
  • Loading branch information
j0g3sc committed Dec 14, 2022
1 parent 994eb00 commit afe9f35
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/docs/VuepressDocumentationSiteGenerator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ function getMarkdownFiles(dir: string) {
(x) => x.isFile() && !x.name.startsWith(".") && x.name.endsWith(".md")
)
.map((x) => "/" + path.relative("docs/", path.join(dir, x.name)))
.map((x) => x.replace(path.sep, '/')); //on windows, this needs to be done to cleanly define URL paths
.map((x) => x.replaceAll(path.sep, '/')); //on windows, this needs to be done to cleanly define URL paths
return mdFiles;
}
Expand Down
2 changes: 1 addition & 1 deletion src/info.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// see https://stackoverflow.com/questions/61829367/node-js-dirname-filename-equivalent-in-deno
export const VERSION = "0.15.1";
export const VERSION = "0.15.2";

/**
* The flags we want collie to be invoked with.
Expand Down

0 comments on commit afe9f35

Please sign in to comment.