Skip to content

Commit

Permalink
alter logging
Browse files Browse the repository at this point in the history
  • Loading branch information
srosam committed Feb 3, 2023
1 parent 1b05232 commit a055d4f
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions main.py
Original file line number Diff line number Diff line change
Expand Up @@ -213,18 +213,21 @@ def main():

#log(f"Nav replacement built\n {nav_replacement}")


log("files near end")
for path in Path("").iterdir():
log(f"{path}")

# get the nav file
nav_files = get_files(path_to_docs, 'mkdocs.yml')
if len(nav_files) == 0:
log("mkdocs.yml not found")
raise Exception(f"mkdocs.yml not found in {path_to_docs}")

#log(f"Updating nav file: {nav_files[0].full_path}")

update_nav(nav_files[0].full_path, nav_replacement_placeholder, "\n".join(nav_replacement))

log("files at end")
for path in Path("").iterdir():
log(f"{path}")

except Exception as e:
print(f"Error: {traceback.print_exc()}")
Expand Down

0 comments on commit a055d4f

Please sign in to comment.