Is it possible to set full-width on tabbed sections?
See original GitHub issueDescribe the problem
Hi there! Imagine I’m trying to list installation instructions for package across operating systems. I’m using tabbed sections like so (sorry in advance, getting this to render in GitHub wasn’t easy):
````{tabbed} Ubuntu
things for Ubuntu
````
````{tabbed} macOS
things for macOS
````
````{tabbed} Windows
things for windows
````
Some of the tab contents are code blocks, which would benefit from having more horizontal space. I’ve tried setting :class: full-width
and :container: +full-width
but couldn’t seem to enable the tabs to use up the full width of the page, like so:
````{tabbed} Ubuntu
:class: full-width
things for Ubuntu
````
````{tabbed} macOS
:class: full-width
things for macOS
````
````{tabbed} Windows
:class: full-width
things for windows
````
When I build the book, I see WARNING: Directive 'tabbed': Unknown option: class
. Am I missing something? Is it not yet possible to set the tabbed section size to the full width of the page?
Link to your repository or website
No response
Steps to reproduce
- Create a tabbed section like so:
````{tabbed} Ubuntu
things for Ubuntu
````
````{tabbed} macOS
things for macOS
````
````{tabbed} Windows
things for windows
````
- Attempt to set any/all tab widths to
full-width
and notice the warnings when building the book.
The version of Python you’re using
3.7.10
Your operating system
macOS
Versions of your packages
Jupyter Book: 0.10.2 MyST-NB: 0.12.3 Sphinx Book Theme: 0.1.0 MyST-Parser: 0.13.7 Jupyter-Cache: 0.4.3 NbClient: 0.5.3
Additional context
Please let me know if there’s any other context I can provide! No worries if this simply isn’t possible yet. Thank you again, this is a fantastic package.
Issue Analytics
- State:
- Created 2 years ago
- Comments:5 (2 by maintainers)
Ah yeh not at the moment I’m afraid. I’m actually just finishing off https://sphinx-design.readthedocs.io/en/sbt-theme/tabs.html, which is intended to eventually replace sphinx-panels extension here in jupyter-book, and there I just checked and you can indeed add
:class: full-width
to thetab-set
to achieve this.(see https://github.com/executablebooks/sphinx-design#comparison-to-sphinx-panels for how it currently differs)
Awesome — thanks Chris!