Skip to content

Figuring out our strategy for tabbed content #145

@pradyunsg

Description

@pradyunsg

Is your feature request related to a problem? Please describe.

Currently, sphinx-tabs and sphinx-panels both provide tabbed-content functionality. This overlap isn't super useful and creates a very weird dynamic. Right now, we have two implementations of the same fundamental thing living in 2 packages maintained by the same group of people.

  • sphinx-tabs: currently outdated, is generally more capable than sphinx-panel's CSS-only implementation of tabs.
  • sphinx-panels: A CSS-only package, providing (among other things) a tabbed directive that generates tabs adopted from mkdocs-material, looks great on the final page. :)

Describe the solution you'd like

We move the sphinx-panels implementation of tabs into sphinx-tabs and remove the tabbed directive from sphinx-panels. The sphinx-tabs implementation would be modernized, and, heck, we could even have the tabbed directive added to it directly.

Basically, I'm volunteering to rewrite sphinx-tabs to look nicer whilst also adding graceful degradation and solving executablebooks/sphinx-tabs#87 (and a few more) but I don't want to step on anyone's toes and I want to make sure we're all on the same page. :)

Open Questions

  • What does Chris think about this idea? :P
  • Directive design:
    • How important is it to preserve the current structure of sphinx-tabs's directives?
    • How important is it to preserve the current structure of the tabbed directive?
    • Should we include both or only one of them in the rewrite? If so, which one?

Metadata

Metadata

Assignees

No one assigned

    Labels

    documentationImprovements or additions to documentation

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions