Closed 2394425147 closed 1 year ago
I'm facing the same issue.
Tried to use the quick install, lib is adding +page at the end of every URL and pages are 404.
Tried running the demo, same issue.
Tried copying the app that's running on the website, extracted it from this repo, still the same issue.
I've managed to write a small sidebar handler to fix it, but then the sidebar doesn't show the selected current page, and the previous and next buttons also don't work.
import { createSidebarRequestHandler } from "@svelteness/kit-docs/node";
export const GET = createSidebarRequestHandler({
resolveSlug: (data) => "/" + data.cleanDirname,
});
Issue
In the latest version (^1.1.1), using the sidebar for navigation currently appends a
+page
to the destination URLReproduction
npm init @svelteness/kit-docs ./
in an empty folderpnpm install
all the dependenciesdefault: true,
fromsvelte.config.js
(throws an error before building for the first time, since.svelte-kit/
doesn't exist yet)npm run dev -- --open
Documentation
in the navbarThis also happened when I tried to manually set the project up. I thought there might be a config parameter I'm missing somewhere that excluded the
.md
files, but this might also just be an issue with route handling in the sidebar, since thedocs/+page.js
redirects to the proper page just fine.Thanks!