danielgtaylor / aglio

An API Blueprint renderer with theme support that outputs static HTML
4.75k stars 480 forks source link

Expanded vs. collapsed menu #219

Closed aichholzer closed 6 years ago

aichholzer commented 8 years ago

When serving my documentation, the items in the navigation menu on the left are randomly collapsed or expanded. Is there a way to make aglio serve this consistently? - For example, I would like all navigation sections to always be collapsed at the start.

PavelPolyakov commented 8 years ago

I would like to have it expanded.

I think it starts collapse when you have too many things in your list. That was my observation, unfortunately haven't found this configurable.

aichholzer commented 8 years ago

@PavelPolyakov In my case it seems to be completely random; one time the smaller navigation blocks are collapsed, sometimes expanded. Tried finding a setting for this as well... No luck, hence the question.

sangar82 commented 8 years ago

same here! completely random1!

leewaa commented 7 years ago

Yep, totally random! Anything happening here ?

danhawkes commented 7 years ago

This is due to the autoCollapse() function here: https://github.com/danielgtaylor/aglio/blob/c52a482e5392849de12ce1cf43245ad66da44745/templates/scripts.js#L140 Unfortunately can't see a means of configuring it that doesn't involve cloning the theme.

aichholzer commented 6 years ago

Over two years have passed and no solution/suggestion... Marking this as closed/dead. Anyone, feel free to PR a fix.