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

🧪 CI: Make documentation builds fail on warnings #1005

Merged
merged 8 commits into from
Sep 28, 2023
Merged

Conversation

chrisjsewell
Copy link
Member

@chrisjsewell chrisjsewell commented Aug 31, 2023

closes #1004

Adds https://docs.readthedocs.io/en/stable/pull-requests.html

image

@danwos I believe this would be the best solution, however, it is currently failing due to jbms/sphinx-immaterial#283 😒 (you can see this warning in all our docs builds)

@chrisjsewell chrisjsewell changed the title 🧪 CI: Fail on sphinx-build warnings 🧪 CI: Test documentation builds Aug 31, 2023
@2bndy5

This comment was marked as off-topic.

@chrisjsewell
Copy link
Member Author

I added similar in the myst-parser docs @2bndy5 lol https://github.com/executablebooks/MyST-Parser/blob/350c6331da4738057556d966b0bfd9d98d570352/myst_parser/_docs.py#L275

@2bndy5
Copy link

2bndy5 commented Aug 31, 2023

Yeah, I tried using that when adding a copy of MyST typography page to our docs, but it wasn't as bulletproof (I forget why and how). So I added the ability to highlight and parse the content as MD syntax if the doc source was MD.

@chrisjsewell
Copy link
Member Author

Yeah, I tried using that when adding a copy of MyST typography page to our docs, but it wasn't as bulletproof

Oh indeed, it's very much only meant only for internal use 👍

@2bndy5
Copy link

2bndy5 commented Aug 31, 2023

Ours isn't meant to be internal only. It does use theme-specific assets (CSS) like our .. md-tab-set (modeled after sphinx-design 😉 but with different JS for tab syncing and horizontally scroll-able overflow), so getting publicly exposed/packaged with the theme was a good fit. I kinda regret not documenting it now...

@chrisjsewell
Copy link
Member Author

I kinda regret not documenting it now...

Never too late 😉

In the same file I have a decent myst syntax renderer, should probably make that public at some point

@danwos danwos marked this pull request as draft September 13, 2023 05:58
@chrisjsewell chrisjsewell marked this pull request as ready for review September 27, 2023 12:26
@chrisjsewell chrisjsewell requested a review from danwos September 27, 2023 12:26
@chrisjsewell
Copy link
Member Author

Good to go @danwos

@chrisjsewell chrisjsewell changed the title 🧪 CI: Test documentation builds 🧪 CI: Make documentation builds fail on warnings Sep 27, 2023
Copy link
Member

@danwos danwos left a comment

Choose a reason for hiding this comment

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

Thanks for the PR 👍

I guess we still need to configure github to allow passed RTD builds only, right?

@chrisjsewell
Copy link
Member Author

I guess we still need to configure github to allow passed RTD builds only, right?

You can indeed add it as required in the branch protection rules

@chrisjsewell chrisjsewell merged commit 8fd73a7 into master Sep 28, 2023
@chrisjsewell chrisjsewell deleted the rtd-pr-ci branch September 28, 2023 01:55
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.

Build official docs in own action workflow
3 participants