SkygearIO / skygear-doc

[Deprecated] Doc site generator for all the platform guides of Skygear; Content are here: https://github.com/SkygearIO/guides/tree/v1
https://docs.skygear.io/
MIT License
4 stars 19 forks source link

[Design Update] Add document ToC #496

Closed ben181231 closed 7 years ago

ben181231 commented 7 years ago

The responsiveness will be:

  1. Large screen - Pin on the right of the document and not scroll with the document.
  2. Smaller screen / Mobile screen - Move to the top of the document.

For the ToC generation, may use this plugin

Design: desktop and mobile

ben181231 commented 7 years ago

This task is split from #462.

chpapa commented 7 years ago

Now if I clicked a section in TOC, the section name will be highlighted in blue. But if I scroll the main content to another part, the highlight won't change.

Is it possible to make the highlight change with the main content?

If it is really impossible or very difficult, let's see if we just not highlight anything, will it be better? (This is a question, not sure)

chpapa commented 7 years ago

@ben181231 @rickmak Actually I have added comments above and moved the issue back to WIP. Please only consider this issue fix after the above have been addressed.

ben181231 commented 7 years ago

@chpapa Okay. I am going to remove the highlight first.

chpapa commented 7 years ago

@ben181231 please let us look at it when you do that quick fix (and open another issue for that?) to see if it actually works as a quick fix.