Skip to content

Commit

Permalink
make pipeline work
Browse files Browse the repository at this point in the history
  • Loading branch information
olinux committed Jun 29, 2023
1 parent 78ed138 commit 7370119
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pipeline/toctree.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ def create_toc_tree_page(version:str, relative_path:List[str]):
# TODO add some description -> but where does it come from?
doc.content(f".. toctree::")
doc.newline()
sub_dirs = os.listdir(os.path.join("target", version, "docs", "/".join(relative_path)))
sub_dirs = sorted(os.listdir(os.path.join("target", version, "docs", "/".join(relative_path))), key=str.casefold)
for sub_dir in sub_dirs:
sub_dir.replace(".rst", "")
doc.content(f"{relative_path[-1]}/{sub_dir}", indent=3)
Expand Down

0 comments on commit 7370119

Please sign in to comment.