Lightning-AI / pytorch-lightning

Pretrain, finetune ANY AI model of ANY size on multiple GPUs, TPUs with zero code changes.
https://lightning.ai
Apache License 2.0
28.47k stars 3.39k forks source link

CI: Enable readthedocs to build docs on pull requests #13572

Closed akihironitta closed 2 years ago

akihironitta commented 2 years ago

(this feature requires the admin privilege on Read the Docs)

🚀 Feature

Can be configured from https://readthedocs.org/projects/pytorch-lightning/. See https://docs.readthedocs.io/en/stable/pull-requests.html#configuration for details.

Motivation

Pitch

Alternatives

Continue to use CircleCI.

Additional context

https://github.com/readthedocs/readthedocs-docker-images/issues/186


If you enjoy Lightning, check out our other projects! ⚡

cc @carmocca @akihironitta @borda

akihironitta commented 2 years ago

@Borda @ethanwharris Could you take this? (as I see you two are the maintainers at https://readthedocs.org/projects/pytorch-lightning/)

Borda commented 2 years ago

@akihironitta does this support building multiple docs built from single repo as we have it atm? Maybe we can hold this till we fuse both docs :rabbit:

akihironitta commented 2 years ago

Had a look at the readthedocs documentation, but still not sure if one repository can have multiple documentations...


Maybe we can hold this till we fuse both docs 🐰

Yes, definitely. (I'm not really following the plan of docs fusion... are we going to host both of them in readthedocs or in gh-pages? I'm asking because if we plan to migrate to gh-pages from readthedocs completely, this is no longer relevant :dog:)

carmocca commented 2 years ago

Drop (docs) CircleCI job.

Why can't we do this already? The job has been commented out for a while

akihironitta commented 2 years ago

@carmocca I think we can proceed forward with this because we'll keep hosting the pl docs on readthedocs after pl and app docs are fused, AFAIK.

cc @Borda as this is something only the readthedocs admin can address.

carmocca commented 2 years ago

CircleCI has been removed now. Can we close this?

akihironitta commented 2 years ago

Looking at the change in #15460, we will not be using readthedocs.org anymore.

@Borda Could you close this issue if it's no longer relevant?

Borda commented 2 years ago

Looking at the change in #15460, we will not be using readthedocs.org anymore.

we will, but readhedocs does not allow build multiple packages from single repo AFAIK sp, we still keep rtfd.org and building our own

akihironitta commented 2 years ago

Could we consider moving forward with this again just for PL docs? Enabling docs build in each PR could've prevented PL docs build failure which is currently being fixed by #15511.

Borda commented 2 years ago

@akihironitta just set, could you pls verify?

akihironitta commented 2 years ago
image