[py] Fix API doc generation script and include BiDi Emulation docs #16037
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
User description
💥 What does this PR do?
This PR fixes the
py/generate_api_module_listing.py
script used in generating the Python API documentation. It was creating duplicate module names in some areas of the table of contents.For example, it was creating an entry for all the
selenium.webdriver.common.actions
modules under both thewebdriver.common.actions
andwebdriver.common
sections.This PR also includes a newly generated
py/docs/source/api.rst
file that includes the newselenium.webdriver.common.bidi.emulation
module from #15819🔄 Types of changes
PR Type
Bug fix, Documentation
Description
Fix duplicate module entries in Python API documentation
Include new BiDi Emulation module in documentation
Clean up module listing generation logic
Changes diagram
Changes walkthrough 📝
generate_api_module_listing.py
Fix duplicate module generation logic
py/generate_api_module_listing.py
api.rst
Update API documentation with clean module listing
py/docs/source/api.rst