Skip to content

Commit 4a85e08

Browse files
authored
fix(jsdoc) Normalize generated path on Windows (#14018)
1 parent bdf282c commit 4a85e08

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

scripts/docs.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,8 @@ function buildRepoDocsLinks(outputDir: string): Map<string, string> {
182182
markdownFiles.forEach((filePath) => {
183183
const relativePath = path
184184
.relative(outputDir, filePath)
185-
.replace(/\.md$/, "");
185+
.replace(/\.md$/, "")
186+
.replace(/\\/g, "/");
186187
const apiName = path.basename(relativePath);
187188

188189
if (apiName !== "index") {

0 commit comments

Comments
 (0)