-
-
Notifications
You must be signed in to change notification settings - Fork 18.2k
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
DOC/BLD: host doc build artefacts of PRs #17921
Comments
cc @afeld for awareness. IMO the lowest-effort path forward is to
|
Would it become too complex to only clear the |
I think we should be able to use GitHub actions, to do the sync the docs into the server, and also to delete the directory once the PR is merged or closed. I think there could be a cron job that with certain periodicity deletes the directory of the PRs that are not open anymore, just in case. I see two challenges:
Maybe an option would be instead of publishing the docs of every PR, we could implement an action that when someone writes |
This was my main question when we were discussing this earlier today: is this possible security wise to push from a PR to our server? I agree that a comment bot would already be very nice (we recently added a If pushing to our server from a PR can't work, I was thinking of a potential alternative: we could also have a separate github repo to just host PR build reviews on github pages (assuming it might be easier to push to a github repo from github actions in a branch compared to pushing to our server, but that's just a guess) |
To access both our server or a separate repo we should have a key that should be stored as a secret, so I don't think that's an option (unless there is something I missing, but I don't think so). The best approach that came to my mind is having a call like There may be other ways, but this is the simplest that came to my mind. |
So actually saving the built docs as an artifact is something we could already start doing (https://docs.github.com/en/actions/guides/storing-workflow-data-as-artifacts). And then some service to get this and host it somewhere else. |
Made the built website+docs available for download, as a starting point: #39390 |
this can be closed as merged #39390 unless further enhancements needed |
Let's keep this open, as ideally we still serve the docs online as a preview |
@jorisvandenbossche We have #38996 for that, so I'm going to go ahead and close this one. |
In scikit-learn it is possible to see the docs for a PR (see contributing guide: http://scikit-learn.org/stable/developers/contributing.html#documentation) because they build and upload it with circle-ci, and make it available from a canonical url, eg http://scikit-learn.org/circle?13937/documentation.html
Would be cool to do something similar for pandas. Certainly for PRs that rework part of the documentation, it is useful to check how it is looking.
The text was updated successfully, but these errors were encountered: