-
Notifications
You must be signed in to change notification settings - Fork 32
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
Build documentation more strictly #239
Conversation
This looks good. I wonder whether we shouldn't also run the doctests as part of the usual testing cycle -- i.e. when |
I thought about it (e.g., they are included as a separate test set in AbstractGPs) but assumed that it would be sufficient if the build errors if they fail (which is not the case in AbstractGPs currently). I don't have a strong opinion though, I'm fine with adding it to the test pipeline as well. |
I agree that it is sufficient for the sake of getting CI to complain when the doctests fail, I'm just thinking about the overall development cycle. If you're happy to add it to the test pipeline, that would be great. |
OK, done. |
@@ -17,6 +18,7 @@ Zygote = "e88e6eb3-aa80-5325-afca-941959d7151f" | |||
[compat] | |||
AxisArrays = "0.4.3" | |||
Distances = "0.9, 0.10" | |||
Documenter = "0.25" |
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.
JuliaFormatter is not compatible with Documenter 0.26
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.
Booooo
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'm happy with this now. I'll leave it up to you to figure out what to do about the compat issues.
I opened a PR (domluna/JuliaFormatter.jl#354) but for the tests it should not matter. The webpage is still built with the most recent version since it uses a different project environment. |
This PR ensures that failures when building the documentation and in doctests actually cause a failing build. It contains some of the fixes in #232 and takes inspiration from AbstractGPs.