Skip to content

Commit

Permalink
action runs
Browse files Browse the repository at this point in the history
  • Loading branch information
bboynton97 committed Jul 26, 2024
1 parent d17a94a commit 0773bc0
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion docs/v1/examples/notebooks/generate.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,4 +34,12 @@ def convert_notebooks_to_html(source_dir: str, target_dir: str):


# Example usage:
convert_notebooks_to_html("../../../../examples", "./")
try:
convert_notebooks_to_html("../../../../examples", "./")
except FileNotFoundError:
try:
convert_notebooks_to_html("docs/v1/examples", "./")
except FileNotFoundError:
print(
"Could not find notebooks folder. Run this script from project root or at the script location."
)

0 comments on commit 0773bc0

Please sign in to comment.