python / python-docs-theme

Sphinx theme for Python documentation
Other
75 stars 58 forks source link

Previews in pull requests #105

Closed hugovk closed 1 year ago

hugovk commented 1 year ago

Fixes #70.

70 suggested Read the Docs and Netlify, but we have a bit of a bus factor problem with Netlify on the CPython docs due to only having a single account that can access the admin, so let's use Read the Docs as well. We're using it successfully in the PEPs repo.

Here's a demo build:

Draft because:

And we need to set up Read the Docs:

hugovk commented 1 year ago

Ping @Mariatta

JDLH commented 1 year ago

I wasn't aware of the term "bus factor". For the information of others like me, it refers to a risk that critical roles in a project are limited to a small number of people, in the sense of "in case they get hit by a bus". There is a nice Wikipedia article, Bus factor.

Mariatta commented 1 year ago

Project created: https://readthedocs.org/projects/python-docs-theme-previews/

Who else should I add as maintainers?

hugovk commented 1 year ago

Thanks! Maybe @JulienPalard, @ezio-melotti and me?

pradyunsg commented 1 year ago

I'd be happy to be listed as well, if we don't have enough people. :)

Mariatta commented 1 year ago

I'll need your readthedocs usernames: @hugovk, @pradyunsg, @JulienPalard, @ezio-melotti

pradyunsg commented 1 year ago

I'm pradyunsg (perhaps, unsurprisingly).

hugovk commented 1 year ago

I'm hugovk (perhaps, unsurprisingly).

Mariatta commented 1 year ago

Invites sent.

hugovk commented 1 year ago

I'll close this and re-open it as a new PR, and hopefully it will trigger an RTD build 🤞

hugovk commented 1 year ago

Nope, didn't trigger for https://github.com/python/python-docs-theme/pull/107, re-opening this.

It worked on my fork, I'll compare settings:

hugovk commented 1 year ago

OK, so the incoming GitHub webhook is good on my fork (at https://readthedocs.org/dashboard/hugovk-python-docs-theme/integrations/225260/):

Details image

And I also see a webhook (at https://github.com/hugovk/python-docs-theme/settings/hooks):

Details image

But not for this repo (at https://readthedocs.org/dashboard/python-docs-theme-previews/integrations/225787/):

Details image

If I click "Resync webhook" I get "Webhook activation failed. Make sure you have the necessary permissions", which makes sense as I don't have admin permissions here.


@Mariatta Please can you try the "Resync webhook" button at https://readthedocs.org/dashboard/python-docs-theme-previews/integrations/225787/?

And is there anything at https://github.com/python/python-docs-theme/settings/hooks?

hugovk commented 1 year ago

Łukasz has enabled we hooks. 🎣

Close/re-open to retrigger...

hugovk commented 1 year ago

Deploy preview is now built!

Ready for review!

https://python-docs-theme-previews--105.org.readthedocs.build/en/105/