-
Notifications
You must be signed in to change notification settings - Fork 36
Add GH action for commenting with link to docs preview #227
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
Conversation
Once the build has completed, you can preview your PR at this URL: https://juliagaussianprocesses.github.io/KernelFunctions.jl/previews/PR227/ |
Oooo I like this. In some ways it's a little redundant since, as @devmotion pointed out, you can just click on the |
If we want to have a more prominent comment (I am not sure about this since the preview is already quite accessible) I think it would make more sense to add a final step to the documentation action. It seems a bit weird to just post a comment with the link, even it the build fails and the link is broken. |
That's what I did for #225, but then I realised it's also pretty bothersome to go through all those clicks 😅 @devmotion That's a good point. It's just going to be a bit more tricky: |
I imagined that there would a comment such as "Preview of documentation deployed: https://...." if it succeeds and "Preview of documentation could not be deployed" in the other case. One would have to rerun the action every time the documentation is built since otherwise you might check an outdated and incorrect preview. |
Alternatively, we could just always post a comment saying "click on the |
But since this would lead to quite many comments I have even more doubts about this action than before. |
Hmm I'm not sure, I assumed the main intention of this PR was to reduce the number of clicks or lookups for getting to the preview build. I guess by now all contributors know how to access the preview, so I am not sure how helpful it would be to post this information in every PR 😉 |
I didn't before seeing this PR 😅 |
AFAICT |
Yeah that doesn't look like it's particularly trivial to change. How about simply adding a "contributing.md" that explicitly points out where to find the doc preview (can then also explain running JuliaFormatter, and anything else that'd be useful to make it easier for newcomers to start contributing)? Not sure how much work that'd be to make work here but I've also seen GitHub bots that post a comment when someone new to the repo opens their first PR, in which the bot can then point to contributing.md and/or explain the doc preview link? |
"contributing.md" sounds like a good thing! Another option would be to put some of these info in a PR template? |
Oh yeah! I had thought of that when adding the formatter to the CI. |
Should I just close this PR then? |
I thought it would be practical to automatically get a comment with a link to the preview of the docs.