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

Build documentation more strictly #239

Merged
merged 2 commits into from
Jan 19, 2021
Merged

Build documentation more strictly #239

merged 2 commits into from
Jan 19, 2021

Conversation

devmotion
Copy link
Member

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.

@willtebbutt
Copy link
Member

This looks good. I wonder whether we shouldn't also run the doctests as part of the usual testing cycle -- i.e. when test/runtests.jl is run? This would give you more feedback during the development cycle.

@devmotion
Copy link
Member Author

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.

@willtebbutt
Copy link
Member

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.

@devmotion
Copy link
Member Author

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"
Copy link
Member Author

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

Copy link
Member

Choose a reason for hiding this comment

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

Booooo

Copy link
Member

@willtebbutt willtebbutt left a 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.

@devmotion
Copy link
Member Author

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.

@devmotion devmotion merged commit 0ff8761 into master Jan 19, 2021
@devmotion devmotion deleted the dw/docs_strict branch January 19, 2021 20:32
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

Successfully merging this pull request may close these issues.

2 participants