mirror of
https://github.com/squidfunk/mkdocs-material.git
synced 2024-12-02 19:17:21 +01:00
Updated content tabs documentation
This commit is contained in:
parent
2fbf0e94f4
commit
aaba4cb3db
@ -18,6 +18,25 @@ grouping code blocks and other content.
|
|||||||
The [Tabbed][2] extension, which is part of [Python Markdown Extensions][3],
|
The [Tabbed][2] extension, which is part of [Python Markdown Extensions][3],
|
||||||
integrates with Material for MkDocs and can be enabled via `mkdocs.yml`:
|
integrates with Material for MkDocs and can be enabled via `mkdocs.yml`:
|
||||||
|
|
||||||
|
=== "Modern"
|
||||||
|
|
||||||
|
``` yaml
|
||||||
|
markdown_extensions:
|
||||||
|
- pymdownx.tabbed:
|
||||||
|
alternate_style: true # (1)
|
||||||
|
```
|
||||||
|
|
||||||
|
1. As of 7.3.1, support was added for the new [`alternate_style`][12] flag,
|
||||||
|
which has much better behavior on smaller screen sizes, as content tabs
|
||||||
|
are now scrollable and will overflow instead of break across multiple
|
||||||
|
lines.
|
||||||
|
|
||||||
|
__The legacy style will be deprecated with the next major release.__
|
||||||
|
|
||||||
|
[12]: https://facelessuser.github.io/pymdown-extensions/extensions/tabbed/#alternate-style
|
||||||
|
|
||||||
|
=== "Legacy"
|
||||||
|
|
||||||
``` yaml
|
``` yaml
|
||||||
markdown_extensions:
|
markdown_extensions:
|
||||||
- pymdownx.tabbed
|
- pymdownx.tabbed
|
||||||
|
Loading…
Reference in New Issue
Block a user