diff --git a/docs/schema/extensions/pymdownx.json b/docs/schema/extensions/pymdownx.json index 093b98569..a821ca62c 100644 --- a/docs/schema/extensions/pymdownx.json +++ b/docs/schema/extensions/pymdownx.json @@ -640,6 +640,11 @@ ], "default": true }, + "combine_header_slug": { + "markdownDescription": "https://squidfunk.github.io/mkdocs-material/setup/extensions/python-markdown-extensions/#+pymdownx.tabbed.combine_header_slug", + "type": "boolean", + "default": true + }, "slugify": { "markdownDescription": "https://squidfunk.github.io/mkdocs-material/setup/extensions/python-markdown-extensions/#+pymdownx.tabbed.slugify", "default": "!!python/object/apply:pymdownx.slugs.slugify {kwds: {case: lower}}" diff --git a/docs/setup/extensions/python-markdown-extensions.md b/docs/setup/extensions/python-markdown-extensions.md index 69eafa2ad..3b19859ce 100644 --- a/docs/setup/extensions/python-markdown-extensions.md +++ b/docs/setup/extensions/python-markdown-extensions.md @@ -665,6 +665,18 @@ The following configuration options are supported: alternate_style: true ``` + + +: This option enables the content tabs + [combine_header_slug style] flag, which prepends the id of the header to + the id of the tab: + + ``` yaml + markdown_extensions: + - pymdownx.tabbed: + combine_header_slug: true + ``` + : This option allows for @@ -702,6 +714,7 @@ See reference for usage: [Tabbed]: https://facelessuser.github.io/pymdown-extensions/extensions/tabbed/ [alternate style]: https://facelessuser.github.io/pymdown-extensions/extensions/tabbed/#alternate-style + [combine_header_slug style]: https://facelessuser.github.io/pymdown-extensions/extensions/tabbed/#tab-ids [better behavior on mobile viewports]: https://twitter.com/squidfunk/status/1424740370596958214 [Grouping code blocks]: ../../reference/content-tabs.md#grouping-code-blocks [Grouping other content]: ../../reference/content-tabs.md#grouping-other-content