svelteness / kit-docs

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

Sidebar no longer visible (`sidebar === null`) since 0.9 #10

Open didier opened 2 years ago

didier commented 2 years ago

Kudos on the quick fixes of all the issues coming in!

Just noticed however, that when updating to 0.9.0, the sidebar no longer shows. There's no error, just nothing. I noticed that changing the formatting function to just return the regular string fixes it. Might be something wrong with the capitalize script.

mihar-22 commented 2 years ago

Strange I can't repro. In 0.9.2 I added a debug option to request handlers which may help us uncover what's wrong. Could you please upgrade and try the following in [dir].sidebar.json.js:

import { createSidebarRequestHandler } from '@svelteness/kit-docs/node';

export const get = createSidebarRequestHandler({
  debug: true,
});

Let me know if any error logs in your console after doing so.

mihar-22 commented 2 years ago

If this fails, a repro of your exact setup would be help me fix it.

phenomen commented 2 years ago

Same here. I just launched kit-docs demo with updated packages and there is no sidebar. debug: true does not show anything.

mihar-22 commented 2 years ago

This is really weird, I can't repro...?

mihar-22 commented 2 years ago

This might be a Windows specific bug again?

mihar-22 commented 2 years ago

If anyone can give me a repro of their exact setup I'll happily try to debug. Let me know what version of Node, if you're using NPM/PNPM (+ version) and anything else that might matter.

didier commented 2 years ago

@mihar-22 I'll try to make a repro later this week!