Skip to content

Commit

Permalink
fix: make docs page work on windows (#512)
Browse files Browse the repository at this point in the history
Fixes #506
  • Loading branch information
lucacasonato committed May 14, 2024
1 parent e243ea0 commit 2ab639a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion frontend/routes/docs/[...id].tsx
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ export const handler: Handlers<Data, State> = {
if (!files.has(id)) return ctx.renderNotFound();

const title = files.get(id)!;
const path = new URL(`../../docs/${id}.md`, import.meta.url).pathname;
const path = new URL(`../../docs/${id}.md`, import.meta.url);
const markdown = await Deno.readTextFile(path);

const { body, attrs } = extract(markdown);
Expand Down

0 comments on commit 2ab639a

Please sign in to comment.