-
Notifications
You must be signed in to change notification settings - Fork 478
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
Fix device docs - allow imports to continue but log error #614
base: master
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I see what you are doing here, but outside of fixing the docs, it may not make sense to put pynput import in a try-catch?
Perhaps we should just localize this change to the ci-docs
branch? Or maybe it isnt that big of a deal. What do you think?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah I agree that putting it in a try block might not be ideal. Not sure how much sense this makes, but maybe what we can do is set an env variable prior to building the docs. Then, in the code, we can add some check that says if BUILD_DOCS=true (or something of that nature), ignore importing pynput (and other packages causing issues with the docs).
Yeah, ideally the program exits, so this was the choice I landed on for telling the user that the import won't work. I think localizing it to
Do you mean something like this?
|
Yeah, like that. I think we can add the BUILD_DOCS env var in the workflow. |
yeah I think this makes the most sense |
What this does
Allow imports to continue but log error. Exiting program on error means the docs can't build.