-
Notifications
You must be signed in to change notification settings - Fork 39
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
Unify docs workflows #348
Unify docs workflows #348
Conversation
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.
Looks good, thank you!
Should delete the .doctrees from the uploaded artifact IMO. They aren't needed for anything related to the html as far as I understand. |
I do not know. Maybe they are usefull for some debug. I'm not such familiar with sphinx |
here's the info:
https://www.sphinx-doc.org/en/master/man/sphinx-build.html#cmdoption-sphinx-build-d They aren't needed for the website. I guess instead of delete, we could change the dir to not put them in the folder used for the artifact? |
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.
maybe rename the workflow to build_and_deploy.yml?
And I agree with @psobolewskiPhD that maybe we should just configure the .doctree dir to be in /tmp or something. And/or make a PR to sphinx to not put it in the build in the first place. 😂 |
Do you want to implement either or both of these, or none? |
I did some more digging around the sphinx docs, readthedocs docs, etc.
See for example: |
I second the motion to change the name to build_and_deploy Looking at the circleCI output of that PR, the artifact is ~126MB While the circleCI output of this current branch has the artifact ~700 Mb: |
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 second the motion to rename the new workflow to build_and_deploy.yml
Fantastic detective work @psobolewskiPhD! 🕵️ 🤓 |
Per docs here https://github.com/larsoner/circleci-artifacts-redirector-action |
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 think everything is good now.
@Czaki Can you sanity check the tags bit?
What tags? |
This fix: |
You suggest change in getting value from tags and point skipped action (caused by file rename I think). |
Sorry if I wasn't being clear.
Here's that code section before my fix: docs/.github/workflows/build_and_deploy.yml Lines 92 to 97 in 8b695ca
As far As I can tell, in |
Because this is for deployment, it's not easy to check, so hence asking you to sanity check before we merge this and find out docs don't deploy right! |
It looks like this is good to go, pending @psobolewskiPhD 's comment above? If so, I just want to point out that if the deploy fails it's an easy fix and doesn't break the website (it will only not show the latest version until we fix it). So I'd say this is pretty safe. |
I pushed the changes to the workflow from the video conversion PR. |
I am marking this as ready as I believe it's done - @Czaki last chance to take a look 😄 |
I think it is ready. Still do not know what with deploy trigger. |
# References and relevant issues After merged, docs deployment is failing, see: https://github.com/napari/napari/actions/runs/8569580333/job/23485774671 This is due to the napari/docs workflow change: napari/docs#348 # Description In this PR I change the name of the triggered workflow to the correct new name.
* Update `docs_deployment.md` now that we unified workflows in #348. * Change workflow name to be Build & Deploy PR Docs, since #348 * Add file paths to the workflow to aid other working on it --------- Co-authored-by: Peter Sobolewski <[email protected]>
#6814) # References and relevant issues I noticed CircleCI docs redirector is not working since napari/docs#348 See, e.g. https://output.circle-artifacts.com/output/job/f7b7b3bf-0e97-4ca0-a6dd-2f30998c625d/artifacts/0/docs/docs/_build/index.html?pr=6807 The docs build correctly, but the structure is different because of the change to the Makefile to put the html in `/html` # Description Updates config.yml to match the one in napari/docs https://github.com/napari/docs/blob/main/.circleci/config.yml and also fixes the redirector workflow to point to the right location.
Description
Closes: #284
This PR:
Unify build workflows from two to one.
Remove .doctree directory (save 400MB)