Browse Source
🛠️ Update `mkdocs_hooks` to handle headers with permalinks when building docs (#14025)
Co-authored-by: Yurii Motov <yurii.motov.monte@gmail.com>
pull/14026/head
Sebastián Ramírez
2 weeks ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with
1 additions and
1 deletions
-
scripts/mkdocs_hooks.py
|
@ -110,7 +110,7 @@ def generate_renamed_section_items( |
|
|
# Creating a new section makes it render it collapsed by default |
|
|
# Creating a new section makes it render it collapsed by default |
|
|
# no idea why, so, let's just modify the existing one |
|
|
# no idea why, so, let's just modify the existing one |
|
|
# new_section = Section(title=new_title, children=new_children) |
|
|
# new_section = Section(title=new_title, children=new_children) |
|
|
item.title = new_title |
|
|
item.title = new_title.split("{ #")[0] |
|
|
item.children = new_children |
|
|
item.children = new_children |
|
|
new_items.append(item) |
|
|
new_items.append(item) |
|
|
else: |
|
|
else: |
|
|