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

[docs/ci] cleanup docs and add ci to check it #485

Merged
merged 1 commit into from
Mar 17, 2020
Merged

[docs/ci] cleanup docs and add ci to check it #485

merged 1 commit into from
Mar 17, 2020

Conversation

abejgonzalez
Copy link
Contributor

Related issue: Fixes #483

Type of change: other enhancement

Impact: other

Release Notes
This runs CI on the documentation to make sure that documentation changes still build properly (very strict checking and errors as soon as possible).

@abejgonzalez abejgonzalez self-assigned this Mar 17, 2020
Copy link
Contributor

@zhemao zhemao left a comment

Choose a reason for hiding this comment

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

Make sure this check actually catches warnings.

- run:
name: Check that documentation builds with no warnings/errors
command: |
make -C docs html
Copy link
Contributor

Choose a reason for hiding this comment

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

Are you sure this actually gives a failing error code if there are only warnings?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes because that's how I fixed the other documentation errors (missing references to labels).

@@ -2,8 +2,8 @@
#

# You can set these variables from the command line.
SPHINXOPTS = -w warnings.txt
SPHINXBUILD = python -msphinx
SPHINXOPTS = -w warnings.txt -n -W
Copy link
Contributor Author

@abejgonzalez abejgonzalez Mar 17, 2020

Choose a reason for hiding this comment

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

Here the -n makes sure that links are correct and the -W converts all warnings to errors. If the -W is not added then the errors that @zhemao found in the #482 PR would be ignored.

Copy link
Contributor

@alonamid alonamid left a comment

Choose a reason for hiding this comment

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

Seems useful!

Copy link
Contributor

@colinschmidt colinschmidt left a comment

Choose a reason for hiding this comment

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

LGTM

@abejgonzalez abejgonzalez merged commit e94dc28 into dev Mar 17, 2020
@abejgonzalez abejgonzalez deleted the ci-docs branch March 17, 2020 17:48
@alonamid alonamid mentioned this pull request May 30, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants