Skip to content

Commit

Permalink
handle op type folders - fix
Browse files Browse the repository at this point in the history
  • Loading branch information
amattioc committed Apr 18, 2024
1 parent dfd14cc commit 6b3c839
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion v2.1/docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ def name_norm(value):
# Apply templates in each op type folder
for op_type in next(os.walk("operators"))[1]:
# Apply templates in each op folder
for op_folder in next(Path("operators").joinpath(op_type))[1]:
for op_folder in next(os.walk(Path("operators").joinpath(op_type)))[1]:
# Write the op main page
op_path = Path("operators").joinpath(op_type).joinpath(op_folder)
with open(op_path.joinpath("index.rst"), "w") as f:
Expand Down

0 comments on commit 6b3c839

Please sign in to comment.