Skip to content

Commit

Permalink
Update the post build script
Browse files Browse the repository at this point in the history
  • Loading branch information
ianhbell committed Jan 7, 2025
1 parent 289e65e commit b8c4863
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion doc/source/sphinx_post_run.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@ def remove_cell_outputs():
for path, dirs, files in os.walk('.'):
for file in files:
if file.endswith('.ipynb') and '.ipynb_checkpoints' not in path:
subprocess.check_output(f'git checkout "{file}"', shell=True, cwd=path)
# subprocess.check_output(f'git checkout "{file}"', shell=True, cwd=path)
subprocess.check_output(f'jupyter nbconvert --clear-output --inplace "{file}"', shell=True, cwd=path)

if __name__ == '__main__':
print('running sphinx_post_run.py...')
Expand Down

0 comments on commit b8c4863

Please sign in to comment.