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

Avoid stopping build in presence of failing gallery examples in serve mode #71

Open
smarie opened this issue Aug 21, 2023 · 0 comments
Open

Comments

@smarie
Copy link
Owner

smarie commented Aug 21, 2023

When used with sphinx-autobuild, sphinx-gallery seems to avoid crashing in presence of failing examples. Instead one can browse the failing page, hopefully fix the problem in the gallery example, and watch the autobuild rebuild the fixed page.

We can't unfortunately do this today with mkdocs-gallery: mkdocs serve will be stopped by mkdocs-gallery's exception when a gallery example fails.

Proposal: maybe have a look at sphinx-gallery's code to make sure that there is actually an explicit code for this. If so, just copy it here. Otherwise, Let's add a try/except block when we detect that mkdocs runs in serve mode.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant