[py] Include generated files in API docs published on Read the Docs - #17794
Conversation
PR Summary by QodoInclude generated Python modules in Read the Docs API build via TestPyPI sdist overlay
AI Description
Diagram
High-Level Assessment
Files changed (1)
|
Code Review by Qodo
Context used✅ Compliance rules (platform):
17 rules 1. Untrusted tar extraction risk
|
|
Code review by qodo was updated up to the latest commit 416b123 |
Code Review by Qodo
Context used✅ Compliance rules (platform):
17 rules 1. pipefail requires bash
|
💥 What does this PR do?
We publish the current Python API docs on Read the Docs with every commit: https://selenium-python-api-docs.readthedocs.io
RtD builds the docs directly from a clone of the source repo, and can't use bazel. Since some of the Python modules are generated during the build, they don't exist in the repo and are not included in the docs on RtD.
This PR makes it so when it builds the docs, it will first download the latest nightly sdist tarball from TestPyPI and overlay the files from that onto the source repo. This way, the generated Python files from the nightly build will be included in the docs on RtD.
🤖 AI assistance
🔄 Types of changes