-
I want to change titles of navigation contents. For example on this picture, i want to do:
I don't want to change markdown titles from |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 13 replies
-
You can list all links in
I recommend reading from top to bottom, if you're interested to learn more about it. IMHO, this needs to be addressed in MkDocs, i.e., to fully define title handling and make it more flexible. It's currently too static to cater to all use cases and hard coded. From my knowledge of the code base, it could theoretically be made configurable to cater to different use cases. Technical remark to the informed reader: we could, theoretically, use
In this case, 2. and 1. would need to be switched, so we would deviate from MkDocs behavior, which we do in some cases (for the header and social cards already), but the navigation resembles |
Beta Was this translation helpful? Give feedback.
🤦♂️ @kamilkrzyskow I didn't realize we were talking about the TOC! In that case, you can set
data-toc-label
for a section headline to explicitly define the title in the navigation (remember to activate Attribute Lists extension):# sort() -> UDict[KT, VT, CDV] { data-toc-label="sort" }