desihub / nightwatch

DESI Nightwatch: online data quality assurance
BSD 3-Clause "New" or "Revised" License
2 stars 2 forks source link

integrate Nightwatch with readthedocs #372

Closed sybenzvi closed 5 months ago

sybenzvi commented 5 months ago

Set up a readthedocs page for Nightwatch to document the software and various bits of setup needed to maintain it at KPNO and NERSC. Caution should be used to avoid posting any sensitive information about access to the DESI machines.

sybenzvi commented 5 months ago

The documentation skeleton is set up (see #373). The last step requires a readthedocs webhook to be enabled for generating the docs. Presumably @sbailey or @weaverba137 need to do this.

weaverba137 commented 5 months ago

I can take care of this. If for some reason nightwatch.readthedocs.io is already taken, I'll use desi-nightwatch.readthedocs.io. This follows the pattern of desi-specter.readthedocs.io.

weaverba137 commented 5 months ago

Actually, I take that back. https://nightwatch.readthedocs.io/ already exists and @sybenzvi is the maintainer. That means that @sybenzvi has to set up the webhook.

sybenzvi commented 5 months ago

@weaverba137, thanks for checking into this. I should have clarified that I was able to set up a readthedocs site for Nightwatch but I don't have admin access in desihub to change package settings. Specifically, I don't see the usual Settings "gear" icon that lets me access the GitHub menu to set up webhooks, and in readthedocs.io I have a warning message indicating I don't have the proper GitHub permissions.

You could give me admin permission in desihub or maybe just desihub/nightwatch. That's probably less work for you, assuming you are willing to trust me with that.

Or I could send you the link from the readthedocs integration settings (and maybe the secret key too) and you enter the values into the GitHub webhooks setup dialog.

Let me know which you prefer.

weaverba137 commented 5 months ago

Thank you @sybenzvi, that makes more sense. I think the best way to proceed would be to add me as a maintainer of nightwatch in the ReadTheDocs system. My ReadTheDocs username is the same as my GitHub username.

sybenzvi commented 5 months ago

@weaverba137, I added you as a Nightwatch maintainer in readthedocs. I agree this is a more sustainable solution; it's better to have more than one maintainer. Check your email for the invitation link.

weaverba137 commented 5 months ago

OK, I think the webhook is synchronized now. If you make any changes in the near future, make sure those are reflected on ReadTheDocs.

sybenzvi commented 5 months ago

Thanks @weaverba137, I confirm that merges with main automatically initiate a build on readthedocs.