undocs icon indicating copy to clipboard operation
undocs copied to clipboard

feat: Replaced dropdown with toc component

Open itpropro opened this issue 1 year ago • 2 comments

Replaced dropdown with toc component to remove graphical glitches, improve usability and render sub headings.

itpropro avatar Apr 14 '24 20:04 itpropro

Deploying undocs with  Cloudflare Pages  Cloudflare Pages

Latest commit: 7debcc0
Status: ✅  Deploy successful!
Preview URL: https://b7a11622.undocs.pages.dev
Branch Preview URL: https://feature-toc.undocs.pages.dev

View logs

Hey @cpreston321 @pi0 anything that's blocking this from being merged? I think it's a very low hanging fruit for improving the UI in the docs ecosystem :)

itpropro avatar Jun 25 '24 18:06 itpropro

Sorry for late response @itpropro.

Actually it is part of new design that (similar to vue, vite docs) we have a compact and minimal TOC dropdown instead of sidebar.

One other reason was that we usually don't have a lot of headings (in current unjs project docs) and it was wasting sidebar.

How do you think? Maybe we can use a responsive method to only show it on larger screens?

pi0 avatar Sep 03 '24 10:09 pi0

b3e97699f07c30ecf74d1c20e49f2b10c268d625 add sidebar TOC it in large screens

pi0 avatar Sep 04 '24 16:09 pi0