docusaurus icon indicating copy to clipboard operation
docusaurus copied to clipboard

Collapsus - The Collapsible Menu

Open clearwaterstream opened this issue 8 years ago • 7 comments

🚀 Feature

Collapsible menu . Sub-categories will get collapsed under the main categories. Examples: https://reactjs.org/docs/getting-started.html or https://docs.gitbook.com/getting-started

Have you read the Contributing Guidelines on issues?

Yes I have

Motivation

We have a sizable amount of content and having a large (expanded) menu would overwhelm a user upon visiting our documentation area. Those with weaker nerves may get spooked and run away from our site.

Pitch

We have an "enterprise" level product which comes with sizable documentation. I am sure we are not the only ones. I think having this feature would attract other companies who have similar documentation requirements. Let the Collapsus out!

Thanks!!

clearwaterstream avatar Nov 02 '18 15:11 clearwaterstream

🚀 Feature

Collapsible menu . Sub-categories will get collapsed under the main categories. Examples: https://reactjs.org/docs/getting-started.html or https://docs.gitbook.com/getting-started

Have you read the Contributing Guidelines on issues?

Yes I have

Motivation

We have a sizable amount of content and having a large (expanded) menu would overwhelm a user upon visiting our documentation area. Those with weaker nerves may get spooked and run away from our site.

Pitch

We have an "enterprise" level product which comes with sizable documentation. I am sure we are not the only ones. I think having this feature would attract other companies who have similar documentation requirements. Let the Collapsus out!

Thanks!!

Yes.this is indeed.this would be an awesome feature.I also want to show a huge list of content in the side bar.without the expand collapse option the huge list would be ugly

eliyasbaby avatar Nov 03 '18 05:11 eliyasbaby

@endiliey @yangshun

Are there any plans to consider using React to add interactivity? Or should this be worked on using script injection?

https://github.com/facebook/Docusaurus/issues/582#issuecomment-382488782

Docusaurus uses React mainly to render the components statically into HTML on the server, so your code wouldn't work. There's no React library being sent to the client to hydrate the markup and add interactivity.

tsmrachel avatar Nov 22 '18 12:11 tsmrachel

@tsmrachel that's our plan for Docusaurus v2

You can read on https://github.com/facebook/Docusaurus/issues/789 or https://docusaurus.io/blog/2018/09/11/Towards-Docusaurus-2

Instead of pure static HTML, during build time we will create a server-rendered version of the app and render the corresponding HTML. A Docusaurus site will be essentially an isomorphic/universal application. This approach is heavily inspired by Gatsby.

endiliey avatar Nov 22 '18 12:11 endiliey

I could see this being useful for Redux as well.

markerikson avatar Dec 06 '18 01:12 markerikson

I would prefer a multiple level treeview structure as implemeted with readthedocs than just a single or 2 level collapsable menu as give in the examples given by @clearwaterstream Example: https://sphinx-rtd-theme.readthedocs.io/en/latest/demo/structure.html#document-subsubsection

giddev avatar Dec 17 '18 20:12 giddev

This has been released in 1.7.1.

yangshun avatar Jan 25 '19 08:01 yangshun

Awesome, much thanks!!!

clearwaterstream avatar Jan 30 '19 21:01 clearwaterstream