Material for mkdocs collapse and expand table of contents

749 Views Asked by At

I want this:readthedocs

Instead of this: material

I haven't seen anything that would help with this in the material for mkdocs nav setup

2

There are 2 best solutions below

0
On

The default behaviour of Material for MkDocs is that sections are collapsible. It would require extra effort to change that. Perhaps your mkdocs.yaml contains a setting like the Navigation expansion?

0
On

There's a stack of good looking themes available for MkDocs.

Choose between the built in themes: mkdocs and readthedocs. Select one of the third-party themes listed on the MkDocs Themes wiki page, OR build your own.

Mixing layouts from different themes has a learning curve.

As a first step you'll need to install and try the ReadTheDocs-Dropdown.

enter image description here