Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CU-86dtaf4yf - Fix Sphinx documentation generation #1241

Merged
merged 1 commit into from
Apr 23, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions docs/make-pdf.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,15 @@
if os.path.isdir(latex_build_dir):
shutil.rmtree(latex_build_dir)

print('\nChecking for MikTex updates...')
checkMiktexCmd = "miktex packages check-update"
os.system(checkMiktexCmd)

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Consider using subprocess.run() instead of os.system() for better error handling and security.


print('\nChecking for MikTex packages integrity...')
verifyMiktexCmd = "miktex packages verify"
os.system(verifyMiktexCmd)

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Consider using subprocess.run() instead of os.system() for better error handling and security.

print()

ext = '.bat' if sys.platform.startswith('win') else ''
os.system(f'{docs_dir}{os.sep}make{ext} latex')

Expand Down
Loading