Skip to content

Conversation

Xiaokang2022
Copy link
Contributor

  1. When option toc_title is specified as a value, the specified value is used;
  2. If no value is specified, the default value provided by markdown extensions will be used;
  3. When markdown extensions does not provide any value, "Table of Contents" is used as the default;

It's important to note point 3 above, according to https://squidfunk.github.io/mkdocs-material/setup/extensions/python-markdown/#+toc.title, when no value is specified, mkdocs-material actually automatically calculates the default value based on the language of the page, rather than using "Table of Contents" as the default value directly (unless the language of the page is English). But for that, I don't have a way to get the value that mkdocs-material automatically calculates.

@Xiaokang2022 Xiaokang2022 marked this pull request as draft May 3, 2025 08:15
@Xiaokang2022 Xiaokang2022 marked this pull request as ready for review May 3, 2025 08:35
@timvink timvink merged commit 08648ce into timvink:master May 7, 2025
15 checks passed
@timvink
Copy link
Owner

timvink commented May 7, 2025

Nice work!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants