Skip to content

Add option to show Tabs within Table of Contents #2734

@ruralmeltdown

Description

@ruralmeltdown

Description

I created the following [1] issue over on the mkdocs-material repo, but it was suggested that I create an issue here, as it is out of scope for them. My request is that: I'm wondering, since Tabs work as URL slugs, is it possible to add them to the page Table of Contents, and, if possible switch to the tab? Obviously, some users may not want this, so having it as an option would probably be ideal, and/or if they are under a heading in the document, have them nest under that heading in the Table of Contents.

[1] squidfunk/mkdocs-material#8400

Benefits

This should improve the navigation of a document, especially a longer one, that may have multiple tabs. Tabs allow a document to not appear as long when compared to a document that doesn't have the same information within tabs, but the navigation ability of the document is lost when the information is placed into tabs.

Solution Idea

Here is a visual of what I'm thinking (I would like to see the two tabs under 'Installation method' appear under that entry in the Table of Contents list): Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    S: rejectedThe pull request is rejected for the stated reasons.T: featureFeature.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions