quintel / documentation

Documentation for the Energytransitionmodel.
https://docs.energytransitionmodel.com
6 stars 6 forks source link

Auto-direct to selected subsection when clicked on #97

Open mabijkerk opened 3 years ago

mabijkerk commented 3 years ago

When I click on a subsection, for example "Demand", a dropdown expands and I am presented with two options. These two options are "Demand" and "Insulation". To get to the demand overview page, a user first has to click on the "Demand" in the dropdown.

Screenshot 2021-08-26 at 14 13 23

In my opinion seeing the path "Demand > Demand" in the interface is visually not very attractive. My preference would therefore be that when I click on the subsection "Demand", I immediately get sent to the demand overview page. This also makes the Documentation website more user-friendly, since users don't have to click on demand twice to go to the overview page.

What do you think of this idea @noracato @Charlottevm ?

noracato commented 3 years ago

Interesting! We could also choose to name the first dropdown item 'Overview' or 'Introduction', as that is basically what that first page aims to do in most dropdown cases.

Charlottevm commented 3 years ago

This would definitely be better :) However, it is not possible in Docusaurus (the current interface program we use for the documentation) to do this. I think for now @noracato's solution sounds good! When we adopt a new interface for the documentation we can adopt a better structure.