diff --git a/docs/setup/extensions/python-markdown.md b/docs/setup/extensions/python-markdown.md index 48802fd0d..bf9856341 100644 --- a/docs/setup/extensions/python-markdown.md +++ b/docs/setup/extensions/python-markdown.md @@ -213,6 +213,19 @@ markdown_extensions: The following configuration options are supported: +`title`{ #toc-title } + +: :octicons-milestone-24: Default: _automatically set_ – This option sets the + title of the table of contents navigation in the right sidebar, which is + normally automatically sourced from the translations for the [site language] + as set in `mkdocs.yml`: + + ``` yaml + markdown_extensions: + - toc: + title: On this page + ``` + `permalink`{ #toc-permalink } : :octicons-milestone-24: Default: `false` – This option adds an anchor link @@ -301,6 +314,7 @@ own risk. [Table of Contents]: https://python-markdown.github.io/extensions/toc/ [Table of Contents support]: https://github.com/squidfunk/mkdocs-material/releases/tag/0.1.0 + [site language]: ../changing-the-language.md#site-language [Slugs]: https://facelessuser.github.io/pymdown-extensions/extras/slugs/ ### Tables diff --git a/material/partials/toc.html b/material/partials/toc.html index f28c49f2b..2fdb565c6 100644 --- a/material/partials/toc.html +++ b/material/partials/toc.html @@ -2,7 +2,11 @@ This file was automatically generated - do not edit -#} {% import "partials/language.html" as lang with context %} -