Skip to content

Commit

Permalink
format
Browse files Browse the repository at this point in the history
  • Loading branch information
thomas-bc committed Nov 2, 2023
1 parent ade11d2 commit 99f8fff
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion cmake/docs/docs.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@
CURRENT_DIR = Path(".")
CURRENT_OFFSET = 0


class DocState(enum.IntEnum):
"""
Holds the documentation generation states.
Expand Down Expand Up @@ -88,7 +89,11 @@ def process_file(file_name, outdir):
CURRENT_OFFSET = len(Path(file_name).relative_to(CURRENT_DIR).parents)
print(f"## {CURRENT_DIR}")
print(" " * CURRENT_OFFSET, end="")
print("- [{}](../api/cmake/{})".format(os.path.basename(out_fn).replace(".md", ""), relative_fn))
print(
"- [{}](../api/cmake/{})".format(
os.path.basename(out_fn).replace(".md", ""), relative_fn
)
)
with open(file_name, "r") as in_file_handle:
with open(out_fn, "w") as out_file_handle:
state = DocState.SEARCH
Expand Down

0 comments on commit 99f8fff

Please sign in to comment.