mirror of
https://github.com/dokku/dokku.git
synced 2025-12-16 12:07:45 +01:00
Fix write-mkdocs
This commit is contained in:
@@ -70,7 +70,7 @@ def get_nav_from_selector(soup: BeautifulSoup, selector: str, docs_dir: str):
|
|||||||
children = os.listdir(docs_dir + "/" + child_dir)
|
children = os.listdir(docs_dir + "/" + child_dir)
|
||||||
|
|
||||||
children.sort(
|
children.sort(
|
||||||
key=lambda x: list(map(int, x.split("-")[0].split("."))),
|
key=lambda x: list(map(int, x.split("-")[0].split("."))) if "." in x else [-1, -1, -1],
|
||||||
reverse=True,
|
reverse=True,
|
||||||
)
|
)
|
||||||
children = [child_dir + c for c in children]
|
children = [child_dir + c for c in children]
|
||||||
|
|||||||
Reference in New Issue
Block a user