svelteness / kit-docs

Documentation integration for SvelteKit.
https://kitdocs.vercel.app
MIT License
457 stars 32 forks source link

fix: normalize windows paths to slashes #81

Closed gdagosto closed 1 year ago

gdagosto commented 1 year ago

43 without lockfile conflicts. Fixes #80.

Since I wasn't the author and the PR is 9 months old, I figured I would make a new one instead of waiting for the original author from the old one. Credits for this PR goes to @kling90.

gdagosto commented 1 year ago

No clue why the build failed. I tested it locally, ran into for building but I assume it's because I'm on windows.

I had to change build:node from package kit-docs to get it to build by passing all arguments directly to node.

{
    "build:node": "pnpm build:node:ext",
    "build:node:ext": "node ../../.scripts/build.js --external=vite,@sveltejs,shiki --entry=src/node/index.ts --outdir=node --platform=node --bundle --requireshim",
}

Working fine locally, here's a screenshot of the bug fixed image

As you can see, both categories and Previous / Next buttons are working fine