webpro-nl / knip

✂️ Find unused files, dependencies and exports in your JavaScript and TypeScript projects. Knip it before you ship it!
https://knip.dev
ISC License
7.04k stars 174 forks source link

💡 docs should have hover links #783

Closed Zamiell closed 2 months ago

Zamiell commented 2 months ago

Suggest an idea for this project

Right now, if I hover over a heading in the knip docs, nothing happens.

But with other documentation, such as Docusaurus, React.dev, etc., it shows a chain symbol that you can mouse over and click to change the URL with an anchor to the section that you clicked on, and then you can copy paste the URL to link a specific part of the docs to someone else.

Maybe this seems like a small thing, but it is very important, because it can be non-straightforward to manually compile an anchor link to a section with special characters and so on.

webpro commented 2 months ago

That's a nice detail indeed. You could also do this using the side nav on the right, but I've added clickable # text on hover.

webpro commented 2 months ago

:rocket: This issue has been resolved in v5.30.3. See Release 5.30.3 for release notes.

Using Knip in a commercial project? Please consider becoming a sponsor.