less-docs icon indicating copy to clipboard operation
less-docs copied to clipboard

Docs should begin with TOC

Open SetTrend opened this issue 10 years ago • 6 comments
trafficstars

It's quite annoying to be required to scroll through the whole document for finding information about a topic.

As a reference document, the LESS documentation (Language Features and Function Reference) should begin with a hyperlinked TOC containing all H1/H2/H3 headers.

SetTrend avatar Sep 10 '15 20:09 SetTrend

Well, the H1 TOC at the left navbar (also contaning H2 subitems). Technically it's neither a book nor a reference document (but more like a bunch of tutorials + a few distinct reference topics like "Functions"), so a TOC would be too chaotic and sort of useless (about 3-5 screens of pretty random stuff), imho. Maybe an index or sort of would make more sense.

seven-phases-max avatar Sep 10 '15 21:09 seven-phases-max

That's strange. When I open the doc's I don't see any TOC or index:

toc

TOC or index, it's all the same: Just a nested list of hyperlinks to H1/H2/H3 elements, reflecting their contents. That would help much in using LESS.

SetTrend avatar Sep 11 '15 08:09 SetTrend

what browser is that? what happens if the page is wider? looks like something responsive hides it..

lukeapage avatar Sep 11 '15 08:09 lukeapage

TOC or index, it's all the same

No, by index I mean something like this. And yes, what it's in the screenshot is an issue actually, on narrow width screens the navbar is hidden (probably ideally we should make it accessible there with another dropdown button).

seven-phases-max avatar Sep 11 '15 09:09 seven-phases-max

Aahhh.... sooo.... OK, now I see... YEEESSS ... That's what I've desperately been looking for.

Excellent!

Thanks for pointing me.

May I suggest to plain put it above content on smaller screens? The TOC is often the first place to look for information.

SetTrend avatar Sep 12 '15 07:09 SetTrend

We should do a mobile-style left-hand menu, where the page slides out of the way revealing the navigation. Stacking it above content will be too heavy.

matthew-dean avatar Sep 13 '15 17:09 matthew-dean