Skip to content

Commit c82a4c1

Browse files
dimaMachinabenface
andauthored
Update website/scripts/fetch-remote-docs.ts
Co-authored-by: Benoît Rouleau <[email protected]>
1 parent 34b345d commit c82a4c1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

website/scripts/fetch-remote-docs.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ async function fetchRemoteDocs({ user, repo, branch, docsPath, outputPath, filte
3636
result.filePaths = result.filePaths.filter(filterDocs)
3737
}
3838
for (const fp of result.filePaths) {
39-
const response = await fetch(`https://raw.githubusercontent.com/${user}/${repo}/main/${docsPath}${fp}`)
39+
const response = await fetch(`https://raw.githubusercontent.com/${user}/${repo}/${branch}/${docsPath}${fp}`)
4040
if (!response.ok) {
4141
throw new Error(`Failed to fetch remote file. ${response.status} ${response.statusText}`)
4242
}

0 commit comments

Comments
 (0)