-
-
Notifications
You must be signed in to change notification settings - Fork 18.4k
CI: Use new documentation previewer #57112
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
I'll be merging this soon if there are no objections, so we can use the previewer again (with the new service). |
else | ||
curl -H "Authorization: token ${{ secrets.GITHUB_TOKEN }}" -d '{"body": "No preview found for PR #${{ github.event.issue.number }}. Did the docs build complete?"}' https://api.github.com/repos/${{ github.repository }}/issues/${{ github.event.issue.number }}/comments | ||
fi | ||
- uses: pandas-dev/github-doc-previewer@master |
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.
In the future it would be great if we could use a tag for stability but not a big issue
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.
Good point. At least for now I think all releases of the doc previewer will be done for pandas, but I created #57190 anyway, so we can decide when we upgrade.
Thanks all your hard work here @datapythonista |
I had to increase the timeout on nginx, since the requests stays life for a bit more than one minute until the preview is ready and the comment can be posted, but now everything seems to be working fine with the new version. |
We've got a documentation previewer service for few months now, but the whole infrastructure powering it was just a PoC not very suitable for the long term (it didn't have error control, was running in a screen session, the workflow wasn't optimal, a github token was hardcoded, it required to remove old previews manually...).
Now we've got a service that IMHO is ready for production. Everything is built independently from pandas in this repo:
https://github.com/pandas-dev/github-doc-previewer/. In the pandas side the only thing we need is to call a GitHub action (check the diff in this PR).
For most people there won't be a significant difference between the previous PoC and the new system, as the UX is the same. Besides stability the main differences are:
/preview
comment). Previously we published the previews of every PR.pandas-dev
organization is of course added. Not sure if we have any other repo where this can be useful, but only adding the GitHub action is enough to have previews enabled.Any feedback or problem please let me know.