mirror of
https://github.com/fastapi/fastapi.git
synced 2026-04-04 15:13:26 -04:00
🛠️ Update mkdocs_hooks to handle headers with permalinks when building docs (#14025)
Co-authored-by: Yurii Motov <yurii.motov.monte@gmail.com>
This commit is contained in:
committed by
GitHub
parent
6db05770f6
commit
784f068aba
@@ -110,7 +110,7 @@ def generate_renamed_section_items(
|
||||
# Creating a new section makes it render it collapsed by default
|
||||
# no idea why, so, let's just modify the existing one
|
||||
# new_section = Section(title=new_title, children=new_children)
|
||||
item.title = new_title
|
||||
item.title = new_title.split("{ #")[0]
|
||||
item.children = new_children
|
||||
new_items.append(item)
|
||||
else:
|
||||
|
||||
Reference in New Issue
Block a user